A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::TopologyReaderHelper Class Reference

Helper class which makes it easier to configure and use a generic TopologyReader. More...

#include <topology-reader-helper.h>

Public Member Functions

Ptr< TopologyReaderGetTopologyReader ()
 Gets a Ptr<TopologyReader> to the actual TopologyReader. More...
 
void SetFileName (const std::string fileName)
 Sets the input file name. More...
 
void SetFileType (const std::string fileType)
 Sets the input file type. Supported file types are "Orbis", "Inet", "Rocketfuel". More...
 

Private Attributes

std::string m_fileName
 
std::string m_fileType
 
Ptr< TopologyReaderm_inFile
 

Detailed Description

Helper class which makes it easier to configure and use a generic TopologyReader.

Definition at line 35 of file topology-reader-helper.h.

Member Function Documentation

Ptr< TopologyReader > ns3::TopologyReaderHelper::GetTopologyReader ( )

Gets a Ptr<TopologyReader> to the actual TopologyReader.

Returns
the created Topology Reader (or null if there was an error).

Definition at line 52 of file topology-reader-helper.cc.

References NS_ASSERT_MSG, and NS_LOG_INFO.

void ns3::TopologyReaderHelper::SetFileName ( const std::string  fileName)

Sets the input file name.

Parameters
fileNamethe input file name.

Definition at line 39 of file topology-reader-helper.cc.

void ns3::TopologyReaderHelper::SetFileType ( const std::string  fileType)

Sets the input file type. Supported file types are "Orbis", "Inet", "Rocketfuel".

Parameters
fileTypethe input file type.

Definition at line 45 of file topology-reader-helper.cc.


The documentation for this class was generated from the following files: