A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

namespace  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

 ns3::NS_LOG_COMPONENT_DEFINE ("RocketfuelTopologyReader")
 ns3::NS_OBJECT_ENSURE_REGISTERED (RocketfuelTopologyReader)
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)

Variables

int ns3::linksNumber = 0
std::map< std::string, Ptr
< Node > > 
ns3::nodeMap
int ns3::nodesNumber = 0

Macro Definition Documentation

#define END   "$"

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

#define MAYSPACE   "[ \t]*"

Definition at line 62 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])" \
MAYSPACE END

Definition at line 64 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 61 of file rocketfuel-topology-reader.cc.

#define START   "^"

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