A Discrete-Event Network Simulator
API
rocketfuel-topology-reader.cc File Reference
#include <fstream>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <regex.h>
#include "ns3/log.h"
#include "ns3/unused.h"
#include "rocketfuel-topology-reader.h"
+ Include dependency graph for rocketfuel-topology-reader.cc:

Go to the source code of this file.

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Macros

#define END   "$"
 
#define MAYSPACE   "[ \t]*"
 
#define REGMATCH_MAX   16
 
#define ROCKETFUEL_MAPS_LINE
 
#define ROCKETFUEL_WEIGHTS_LINE   START "([^ \t]+)" SPACE "([^ \t]+)" SPACE "([0-9.]+)" MAYSPACE END
 
#define SPACE   "[ \t]+"
 
#define START   "^"
 

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. More...
 

Macro Definition Documentation

#define END   "$"

Definition at line 65 of file rocketfuel-topology-reader.cc.

#define MAYSPACE   "[ \t]*"

Definition at line 67 of file rocketfuel-topology-reader.cc.

#define REGMATCH_MAX   16
#define ROCKETFUEL_MAPS_LINE
Value:
START "(-*[0-9]+)" SPACE "(@[?A-Za-z0-9,+]+)" SPACE \
"(\\+)*" MAYSPACE "(bb)*" MAYSPACE \
"\\(([0-9]+)\\)" SPACE "(&[0-9]+)*" MAYSPACE \
"->" MAYSPACE "(<[0-9 \t<>]+>)*" MAYSPACE \
"(\\{-[0-9\\{\\} \t-]+\\})*" SPACE \
"=([A-Za-z0-9.!-]+)" SPACE "r([0-9])" \
#define SPACE
#define MAYSPACE
#define START

Definition at line 69 of file rocketfuel-topology-reader.cc.

Referenced by ns3::RocketfuelTopologyReader::GetFileType(), and ns3::RocketfuelTopologyReader::Read().

#define ROCKETFUEL_WEIGHTS_LINE   START "([^ \t]+)" SPACE "([^ \t]+)" SPACE "([0-9.]+)" MAYSPACE END
#define SPACE   "[ \t]+"

Definition at line 66 of file rocketfuel-topology-reader.cc.

#define START   "^"

Definition at line 64 of file rocketfuel-topology-reader.cc.