Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (625 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
#include "graph_manager.h"
13

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

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

    
21
void readEdgeFileGraphManager(string filePath, GraphManager& gm);
22

    
23
#endif //GRAPH_PARSER_PARSER_H
24

    
25