FNSS C++ library
C++ API for the Fast Network Simulation Setup (FNSS) toolchain
 All Classes Functions Typedefs Pages
parser.h
1 #ifndef PARSER_H
2 #define PARSER_H
3 
4 #include "topology.h"
5 #include "edge.h"
6 #include "quantity.h"
7 #include "event-schedule.h"
8 #include "traffic-matrix-sequence.h"
9 
10 #include <string>
11 #include "rapidxml.hpp"
12 
13 namespace fnss {
14 
20 class Parser {
21 public:
28  static Topology parseTopology(const std::string &file);
29 
36  static EventSchedule parseEventSchedule(const std::string &file);
37 
44  static TrafficMatrixSequence parseTrafficMatrixSequence(const std::string &file);
45 
46 private:
47  Parser();
48  static PropertyContainer parseProperties(rapidxml::xml_node<>* node);
49  static std::string getAttribute(rapidxml::xml_node<>* node,
50  const std::string &name);
51  static double AtoI(const std::string &value);
52 };
53 
54 
55 } //namespace
56 
57 #endif //PARSER_H
Definition: traffic-matrix-sequence.h:20
Definition: event-schedule.h:21
Definition: topology.h:22
Definition: parser.h:20
static EventSchedule parseEventSchedule(const std::string &file)
Definition: parser.cpp:118
static TrafficMatrixSequence parseTrafficMatrixSequence(const std::string &file)
Definition: parser.cpp:169
static Topology parseTopology(const std::string &file)
Definition: parser.cpp:9
Definition: property-container.h:15