A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::OmnetDataOutput::OmnetOutputCallback Class Reference

Class to generate OMNeT output. More...

+ Inheritance diagram for ns3::OmnetDataOutput::OmnetOutputCallback:
+ Collaboration diagram for ns3::OmnetDataOutput::OmnetOutputCallback:

Public Member Functions

 OmnetOutputCallback (std::ostream *scalar)
 Constructor.
 
void OutputSingleton (std::string context, std::string name, double val) override
 Generates a single data output.
 
void OutputSingleton (std::string context, std::string name, int val) override
 Generates a single data output.
 
void OutputSingleton (std::string context, std::string name, std::string val) override
 Generates a single data output.
 
void OutputSingleton (std::string context, std::string name, Time val) override
 Generates a single data output.
 
void OutputSingleton (std::string context, std::string name, uint32_t val) override
 Generates a single data output.
 
void OutputStatistic (std::string context, std::string name, const StatisticalSummary *statSum) override
 Generates data statistics.
 
- Public Member Functions inherited from ns3::DataOutputCallback
virtual ~DataOutputCallback ()
 Destructor.
 
virtual void OutputSingleton (std::string key, std::string variable, double val)=0
 Associates the double value with the variable name for a specific output format.
 
virtual void OutputSingleton (std::string key, std::string variable, int val)=0
 Associates the integer value with the variable name for a specific output format.
 
virtual void OutputSingleton (std::string key, std::string variable, std::string val)=0
 Associates the string value with the variable name for a specific output format.
 
virtual void OutputSingleton (std::string key, std::string variable, Time val)=0
 Associates the Time value with the variable name for a specific output format.
 
virtual void OutputSingleton (std::string key, std::string variable, uint32_t val)=0
 Associates the uint32_t value with the variable name for a specific output format.
 
virtual void OutputStatistic (std::string key, std::string variable, const StatisticalSummary *statSum)=0
 Outputs the data from the specified StatisticalSummary.
 

Private Attributes

std::ostream * m_scalar
 output stream
 

Detailed Description

Class to generate OMNeT output.

Definition at line 61 of file omnet-data-output.h.

Constructor & Destructor Documentation

◆ OmnetOutputCallback()

OmnetDataOutput::OmnetOutputCallback::OmnetOutputCallback ( std::ostream *  scalar)

Constructor.

Parameters
scalarthe output stream

Definition at line 157 of file omnet-data-output.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ OutputSingleton() [1/5]

void OmnetDataOutput::OmnetOutputCallback::OutputSingleton ( std::string  context,
std::string  name,
double  val 
)
overridevirtual

Generates a single data output.

Parameters
contextthe output context
namethe output name
valthe value

Implements ns3::DataOutputCallback.

Definition at line 248 of file omnet-data-output.cc.

References NS_LOG_FUNCTION.

◆ OutputSingleton() [2/5]

void OmnetDataOutput::OmnetOutputCallback::OutputSingleton ( std::string  context,
std::string  name,
int  val 
)
overridevirtual

Generates a single data output.

Parameters
contextthe output context
namethe output name
valthe value

Implements ns3::DataOutputCallback.

Definition at line 210 of file omnet-data-output.cc.

References NS_LOG_FUNCTION.

◆ OutputSingleton() [3/5]

void OmnetDataOutput::OmnetOutputCallback::OutputSingleton ( std::string  context,
std::string  name,
std::string  val 
)
overridevirtual

Generates a single data output.

Parameters
contextthe output context
namethe output name
valthe value

Implements ns3::DataOutputCallback.

Definition at line 267 of file omnet-data-output.cc.

References NS_LOG_FUNCTION.

◆ OutputSingleton() [4/5]

void OmnetDataOutput::OmnetOutputCallback::OutputSingleton ( std::string  context,
std::string  name,
Time  val 
)
overridevirtual

Generates a single data output.

Parameters
contextthe output context
namethe output name
valthe value

Implements ns3::DataOutputCallback.

Definition at line 286 of file omnet-data-output.cc.

References ns3::Time::GetTimeStep(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ OutputSingleton() [5/5]

void OmnetDataOutput::OmnetOutputCallback::OutputSingleton ( std::string  context,
std::string  name,
uint32_t  val 
)
overridevirtual

Generates a single data output.

Parameters
contextthe output context
namethe output name
valthe value

Implements ns3::DataOutputCallback.

Definition at line 229 of file omnet-data-output.cc.

References NS_LOG_FUNCTION.

◆ OutputStatistic()

void OmnetDataOutput::OmnetOutputCallback::OutputStatistic ( std::string  context,
std::string  name,
const StatisticalSummary statSum 
)
overridevirtual

Generates data statistics.

Parameters
contextthe output context
namethe output name
statSumthe stats to print

Implements ns3::DataOutputCallback.

Definition at line 164 of file omnet-data-output.cc.

References ns3::StatisticalSummary::getCount(), ns3::StatisticalSummary::getMax(), ns3::StatisticalSummary::getMean(), ns3::StatisticalSummary::getMin(), ns3::StatisticalSummary::getSqrSum(), ns3::StatisticalSummary::getStddev(), ns3::StatisticalSummary::getSum(), ns3::isNaN(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_scalar

std::ostream* ns3::OmnetDataOutput::OmnetOutputCallback::m_scalar
private

output stream

Definition at line 121 of file omnet-data-output.h.


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