libgexf  0.1.3
typedefs.h
Go to the documentation of this file.
1 
6 /*
7 # Copyright (c) <2009> <Sebastien Heymann>
8 #
9 # Permission is hereby granted, free of charge, to any person obtaining a copy
10 # of this software and associated documentation files (the "Software"), to deal
11 # in the Software without restriction, including without limitation the rights
12 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 # copies of the Software, and to permit persons to whom the Software is
14 # furnished to do so, subject to the following conditions:
15 #
16 # The above copyright notice and this permission notice shall be included in
17 # all copies or substantial portions of the Software.
18 #
19 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 # THE SOFTWARE.
26 */
27 
28 #ifndef _TYPEDEFS_H
29 #define _TYPEDEFS_H
30 
31 #include <string>
32 
33 namespace libgexf {
34 
35 typedef std::string t_id;
40 typedef enum { GRAPH_UNDEF, GRAPH_DIRECTED, GRAPH_UNDIRECTED, GRAPH_MIXED } t_graph;
41 
45 typedef enum { EDGE_TYPE, EDGE_WEIGHT } t_edge_property;
46 
50 typedef enum { EDGE_UNDEF, EDGE_DIRECTED, EDGE_UNDIRECTED, EDGE_MUTUAL } t_edge_type;
51 
55 typedef enum { INTEGER, DOUBLE, FLOAT, LONG, BOOLEAN, STRING, LISTSTRING, ANYURI } t_attr_type;
56 
57 typedef float t_edge_value;
59 }
60 
61 #endif /* _TYPEDEFS_H */
62 
std::string t_id
Definition: typedefs.h:35
Definition: abstractiter.h:32
t_edge_type
Available edge types.
Definition: typedefs.h:50
t_graph
Available graph types.
Definition: typedefs.h:40
t_edge_property
Available edge topological properties.
Definition: typedefs.h:45
t_attr_type
Available types of attributes.
Definition: typedefs.h:55
float t_edge_value
Definition: typedefs.h:57