FNSS ns-3 adapter
ns-3 adapter for the Fast Network Simulation Setup (FNSS) toolchain
 All Classes Files Functions Typedefs Pages
parser.h
1 #ifndef PARSER_H
2 #define PARSER_H
3 
4 #include "topology.h"
5 #include "event-schedule.h"
6 #include "traffic-matrix-sequence.h"
7 
8 #include <string>
9 #include "rapidxml.hpp"
10 
11 namespace fnss {
12 
18 class Parser {
19 public:
26  static Topology parseTopology(const std::string &file);
27 
34  static EventSchedule parseEventSchedule(const std::string &file);
35 
42  static TrafficMatrixSequence parseTrafficMatrixSequence(const std::string &file);
43 
44 private:
45  Parser();
46  static PropertyContainer parseProperties(rapidxml::xml_node<>* node);
47  static std::string getAttribute(rapidxml::xml_node<>* node,
48  const std::string &name);
49  static double AtoI(const std::string &value);
50 };
51 
52 
53 } //namespace
54 
55 #endif //PARSER_H
Definition: traffic-matrix-sequence.h:20
This file contains rapidxml parser and DOM implementation.
Definition: event-schedule.h:21
Definition: topology.h:22
Definition: parser.h:18
static EventSchedule parseEventSchedule(const std::string &file)
Definition: parser.cpp:100
static TrafficMatrixSequence parseTrafficMatrixSequence(const std::string &file)
Definition: parser.cpp:151
static Topology parseTopology(const std::string &file)
Definition: parser.cpp:9
Definition: rapidxml.hpp:137
Definition: property-container.h:15