ns3::RocketfuelTopologyReader implementation. More...
#include "rocketfuel-topology-reader.h"#include "ns3/log.h"#include "ns3/names.h"#include "ns3/node-container.h"#include <cstdlib>#include <fstream>#include <iostream>#include <regex>#include <string>
Include dependency graph for rocketfuel-topology-reader.cc:Go to the source code of this file.
Namespaces | |
| namespace | ns3 |
| Every class exported by the ns3 library is enclosed in the ns3 namespace. | |
Macros | |
| #define | END "$" |
| End of a line. | |
| #define | MAYSPACE "[ \t]*" |
| Zero or more spaces. | |
| #define | ROCKETFUEL_MAPS_LINE |
| Regex expression matching a MAP line. | |
| #define | ROCKETFUEL_WEIGHTS_LINE START "([^ \t]+)" SPACE "([^ \t]+)" SPACE "([0-9.]+)" MAYSPACE END |
| Regex expression matching a WEIGHT line. | |
| #define | SPACE "[ \t]+" |
| One or more spaces. | |
| #define | START "^" |
| Start of a line. | |
Functions | |
| static void | ns3::PrintNodeInfo (std::string &uid, std::string &loc, bool dns, bool bb, std::vector< std::string >::size_type neighListSize, std::string &name, int radius) |
| Print node info. | |
| static const std::regex | ns3::rocketfuel_maps_regex (ROCKETFUEL_MAPS_LINE) |
| Build a Regex object for RocketFuel topology maps file type. | |
| static const std::regex | ns3::rocketfuel_weights_regex (ROCKETFUEL_WEIGHTS_LINE) |
| Build a Regex object for RocketFuel topology weights file type. | |
ns3::RocketfuelTopologyReader implementation.
Definition in file rocketfuel-topology-reader.cc.
| #define END "$" |
End of a line.
Definition at line 72 of file rocketfuel-topology-reader.cc.
| #define MAYSPACE "[ \t]*" |
Zero or more spaces.
Definition at line 76 of file rocketfuel-topology-reader.cc.
| #define ROCKETFUEL_MAPS_LINE |
Regex expression matching a MAP line.
Definition at line 79 of file rocketfuel-topology-reader.cc.
Regex expression matching a WEIGHT line.
Definition at line 85 of file rocketfuel-topology-reader.cc.
| #define SPACE "[ \t]+" |
One or more spaces.
Definition at line 74 of file rocketfuel-topology-reader.cc.
| #define START "^" |
Start of a line.
Definition at line 70 of file rocketfuel-topology-reader.cc.