Helper class which makes it easier to configure and use a generic TopologyReader. More...
#include "topology-reader-helper.h"
Public Member Functions | |
TopologyReaderHelper () | |
Ptr< TopologyReader > | GetTopologyReader () |
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. More... | |
Private Attributes | |
std::string | m_fileName |
Name of the input file. More... | |
std::string | m_fileType |
Type of the input file (e.g., "Inet", "Orbis", etc.). More... | |
Ptr< TopologyReader > | m_inputModel |
Smart pointer to the actual topology model. More... | |
Helper class which makes it easier to configure and use a generic TopologyReader.
Definition at line 42 of file topology-reader-helper.h.
ns3::TopologyReaderHelper::TopologyReaderHelper | ( | ) |
Definition at line 40 of file topology-reader-helper.cc.
References m_inputModel.
Ptr< TopologyReader > ns3::TopologyReaderHelper::GetTopologyReader | ( | ) |
Gets a Ptr<TopologyReader> to the actual TopologyReader.
Definition at line 58 of file topology-reader-helper.cc.
References m_fileName, m_fileType, m_inputModel, NS_ASSERT_MSG, and NS_LOG_INFO.
void ns3::TopologyReaderHelper::SetFileName | ( | const std::string | fileName | ) |
Sets the input file name.
[in] | fileName | The input file name. |
Definition at line 46 of file topology-reader-helper.cc.
References m_fileName.
void ns3::TopologyReaderHelper::SetFileType | ( | const std::string | fileType | ) |
Sets the input file type.
Supported file types are "Orbis", "Inet", "Rocketfuel".
[in] | fileType | The input file type. |
Definition at line 52 of file topology-reader-helper.cc.
References m_fileType.
|
private |
Name of the input file.
Definition at line 67 of file topology-reader-helper.h.
Referenced by GetTopologyReader(), and SetFileName().
|
private |
Type of the input file (e.g., "Inet", "Orbis", etc.).
Definition at line 68 of file topology-reader-helper.h.
Referenced by GetTopologyReader(), and SetFileType().
|
private |
Smart pointer to the actual topology model.
Definition at line 66 of file topology-reader-helper.h.
Referenced by TopologyReaderHelper(), and GetTopologyReader().