All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DibapGraphReader.h
Go to the documentation of this file.
1 /*
2  * DibapGraphReader.h
3  *
4  * Created on: Jun 12, 2013
5  * Author: Henning
6  */
7 
8 #ifndef DIBAPGRAPHREADER_H_
9 #define DIBAPGRAPHREADER_H_
10 
11 #if !defined _WIN32 && !defined _WIN64 && !defined WIN32 && !defined WIN64
12 
13 #include "GraphReader.h"
14 #include "../graph/Graph.h"
15 
16 #include <cstdio>
17 #include <netinet/in.h>
18 
19 // codes in file headers to distinguish type
20 #define IO_TYPE_XX (('X' << 8) | 'X')
21 #define IO_TYPE_GI (('G' << 8) | 'I')
22 #define IO_TYPE_GF (('G' << 8) | 'F')
23 #define IO_TYPE_HI (('H' << 8) | 'I')
24 #define IO_TYPE_HF (('H' << 8) | 'F')
25 #define IO_TYPE_P2 (('P' << 8) | '2')
26 #define IO_TYPE_P4 (('P' << 8) | '4')
27 #define IO_TYPE_AA (('A' << 8) | 'A')
28 #define IO_TYPE_T2 (('T' << 8) | '2')
29 #define IO_TYPE_TE (('T' << 8) | 'E')
30 
31 
32 namespace NetworKit {
33 
39 public:
40  DibapGraphReader() = default;
41 
42  virtual Graph read(const std::string& path) override;
43 };
44 
45 } /* namespace NetworKit */
46 
47 #endif /* check for non-Windows */
48 
49 #endif /* DIBAPGRAPHREADER_H_ */
TODO: class documentation.
Definition: DibapGraphReader.h:38
Abstract base class for graph readers.
Definition: GraphReader.h:21
virtual Graph read(const std::string &path) override
Given the path of an input file, read the graph contained.
Definition: DibapGraphReader.cpp:15
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79