Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (552 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 <iostream>
9
#include <boost/algorithm/string.hpp>
10
#include <boost/property_tree/json_parser.hpp>
11
#include <boost/foreach.hpp>
12
#include "common.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

    
22
#endif //GRAPH_PARSER_PARSER_H
23

    
24