A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::DataOutputCallback Class Referenceabstract

Callback class for the DataOutput classes. More...

#include "data-output-interface.h"

+ Inheritance diagram for ns3::DataOutputCallback:

Public Member Functions

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.
 

Detailed Description

Callback class for the DataOutput classes.

Definition at line 72 of file data-output-interface.h.

Constructor & Destructor Documentation

◆ ~DataOutputCallback()

virtual ns3::DataOutputCallback::~DataOutputCallback ( )
inlinevirtual

Destructor.

Definition at line 78 of file data-output-interface.h.

Member Function Documentation

◆ OutputSingleton() [1/5]

virtual void ns3::DataOutputCallback::OutputSingleton ( std::string key,
std::string variable,
double val )
pure virtual

Associates the double value with the variable name for a specific output format.

Parameters
keyKey value of a DataCalculator
variableName of the variable for which statistics are being provided
valValue to be stored

Implemented in ns3::OmnetDataOutput::OmnetOutputCallback, and ns3::SqliteDataOutput::SqliteOutputCallback.

◆ OutputSingleton() [2/5]

virtual void ns3::DataOutputCallback::OutputSingleton ( std::string key,
std::string variable,
int val )
pure virtual

Associates the integer value with the variable name for a specific output format.

Parameters
keyKey value of a DataCalculator
variableName of the variable for which statistics are being provided
valValue to be stored

Implemented in ns3::OmnetDataOutput::OmnetOutputCallback, and ns3::SqliteDataOutput::SqliteOutputCallback.

Referenced by ns3::CounterCalculator< T >::Output(), and ns3::TimeMinMaxAvgTotalCalculator::Output().

+ Here is the caller graph for this function:

◆ OutputSingleton() [3/5]

virtual void ns3::DataOutputCallback::OutputSingleton ( std::string key,
std::string variable,
std::string val )
pure virtual

Associates the string value with the variable name for a specific output format.

Parameters
keyKey value of a DataCalculator
variableName of the variable for which statistics are being provided
valValue to be stored

Implemented in ns3::OmnetDataOutput::OmnetOutputCallback, and ns3::SqliteDataOutput::SqliteOutputCallback.

◆ OutputSingleton() [4/5]

virtual void ns3::DataOutputCallback::OutputSingleton ( std::string key,
std::string variable,
Time val )
pure virtual

Associates the Time value with the variable name for a specific output format.

Parameters
keyKey value of a DataCalculator
variableName of the variable for which statistics are being provided
valValue to be stored

Implemented in ns3::OmnetDataOutput::OmnetOutputCallback, and ns3::SqliteDataOutput::SqliteOutputCallback.

◆ OutputSingleton() [5/5]

virtual void ns3::DataOutputCallback::OutputSingleton ( std::string key,
std::string variable,
uint32_t val )
pure virtual

Associates the uint32_t value with the variable name for a specific output format.

Parameters
keyKey value of a DataCalculator
variableName of the variable for which statistics are being provided
valValue to be stored

Implemented in ns3::OmnetDataOutput::OmnetOutputCallback, and ns3::SqliteDataOutput::SqliteOutputCallback.

◆ OutputStatistic()

virtual void ns3::DataOutputCallback::OutputStatistic ( std::string key,
std::string variable,
const StatisticalSummary * statSum )
pure virtual

Outputs the data from the specified StatisticalSummary.

Parameters
keyKey value of a DataCalculator
variableName of the variable for which statistics are being provided
statSumPointer to a StatisticalSummary object

Implemented in ns3::OmnetDataOutput::OmnetOutputCallback, and ns3::SqliteDataOutput::SqliteOutputCallback.

Referenced by ns3::MinMaxAvgTotalCalculator< T >::Output().

+ Here is the caller graph for this function:

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