#include <omnet-data-output.h>
Classes | |
class | OmnetOutputCallback |
Public Member Functions | |
OmnetDataOutput () | |
virtual | ~OmnetDataOutput () |
virtual void | Output (DataCollector &dc) |
void | SetFilePrefix (const std::string prefix) |
std::string | GetFilePrefix () const |
Protected Member Functions | |
virtual void | DoDispose () |
Private Attributes | |
std::string | m_filePrefix |
Definition at line 33 of file omnet-data-output.h.
OmnetDataOutput::OmnetDataOutput | ( | ) |
Definition at line 37 of file omnet-data-output.cc.
References NS_LOG_FUNCTION_NOARGS.
OmnetDataOutput::~OmnetDataOutput | ( | ) | [virtual] |
Definition at line 42 of file omnet-data-output.cc.
References NS_LOG_FUNCTION_NOARGS.
void OmnetDataOutput::DoDispose | ( | void | ) | [protected, virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
Reimplemented from ns3::DataOutputInterface.
Definition at line 47 of file omnet-data-output.cc.
References NS_LOG_FUNCTION_NOARGS.
std::string OmnetDataOutput::GetFilePrefix | ( | ) | const |
Definition at line 61 of file omnet-data-output.cc.
References m_filePrefix.
void OmnetDataOutput::Output | ( | DataCollector & | dc | ) | [virtual] |
Implements ns3::DataOutputInterface.
Definition at line 68 of file omnet-data-output.cc.
References ns3::DataCollector::DataCalculatorBegin(), ns3::DataCollector::DataCalculatorEnd(), ns3::DataCollector::GetDescription(), ns3::DataCollector::GetExperimentLabel(), ns3::DataCollector::GetInputLabel(), ns3::DataCollector::GetRunLabel(), ns3::DataCollector::GetStrategyLabel(), m_filePrefix, ns3::DataCollector::MetadataBegin(), and ns3::DataCollector::MetadataEnd().
void OmnetDataOutput::SetFilePrefix | ( | const std::string | prefix | ) |
Definition at line 56 of file omnet-data-output.cc.
References m_filePrefix.
std::string ns3::OmnetDataOutput::m_filePrefix [private] |
Definition at line 76 of file omnet-data-output.h.
Referenced by GetFilePrefix(), Output(), and SetFilePrefix().