-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraph_io.hpp
More file actions
42 lines (31 loc) · 1.63 KB
/
Copy pathgraph_io.hpp
File metadata and controls
42 lines (31 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) 2024-2026 Jakub Musiał
// This file is part of the CPP-GL project (https://github.com/SpectraL519/cpp-gl).
// Licensed under the MIT License. See the LICENSE file in the project root for full license information.
#pragma once
#include "io/stream_options_manipulator.hpp"
namespace gl {
namespace io {
enum class graph_option : bit_position_type {
verbose = 0ul,
with_vertex_properties = 1ul,
with_edge_properties = 2ul,
gsf = 3ul // graph specification format
};
inline const stream_options_manipulator verbose = set_option(graph_option::verbose);
inline const stream_options_manipulator concise = unset_option(graph_option::verbose);
inline const stream_options_manipulator with_vertex_properties =
set_option(graph_option::with_vertex_properties);
inline const stream_options_manipulator without_vertex_properties =
unset_option(graph_option::with_vertex_properties);
inline const stream_options_manipulator with_edge_properties =
set_option(graph_option::with_edge_properties);
inline const stream_options_manipulator without_edge_properties =
unset_option(graph_option::with_edge_properties);
inline const stream_options_manipulator with_properties =
set_options({graph_option::with_vertex_properties, graph_option::with_edge_properties});
inline const stream_options_manipulator without_properties =
unset_options({graph_option::with_vertex_properties, graph_option::with_edge_properties});
inline const stream_options_manipulator enable_gsf = set_option(graph_option::gsf);
inline const stream_options_manipulator disable_gsf = unset_option(graph_option::gsf);
} // namespace io
} // namespace gl