Statistics
| Branch: | Revision:

root / custompackages / graph-parser / src / parser.h @ ee0dd796

History | View | Annotate | Download (532 Bytes)

1
//
2
// Created by quynh on 12/13/15.
3
//
4

    
5
#ifndef GRAPH_PARSER_PARSER_H
6
#define GRAPH_PARSER_PARSER_H
7

    
8
#include <boost/algorithm/string.hpp>
9
#include <boost/property_tree/json_parser.hpp>
10
#include <boost/foreach.hpp>
11
#include "common.h"
12

    
13
template<typename NameVertexMap>
14
void addLinkToGraph(string s1, string s2, double cost, Graph &g, NameVertexMap &routers);
15

    
16
void readEdgeFile(string filePath, Graph &g);
17
void readJson(string filePath, Graph &g);
18
void readComplexJson(string filePath, Graph &g);
19

    
20

    
21
#endif //GRAPH_PARSER_PARSER_H
22

    
23