|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
24 #ifndef FILE_AGGREGATOR_H
25 #define FILE_AGGREGATOR_H
30 #include "ns3/data-collection-object.h"
180 void Write1d (std::string context,
190 void Write2d (std::string context,
202 void Write3d (std::string context,
216 void Write4d (std::string context,
232 void Write5d (std::string context,
250 void Write6d (std::string context,
270 void Write7d (std::string context,
292 void Write8d (std::string context,
316 void Write9d (std::string context,
389 #endif // FILE_AGGREGATOR_H
a unique identifier for an interface.
void Write10d(std::string context, double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8, double v9, double v10)
Writes 10 values to the file.
std::string m_8dFormat
Format string for 8D C-style sprintf() function.
void SetFileType(enum FileType fileType)
Set the file type to create, which determines the separator to use when printing values to the file.
std::string m_9dFormat
Format string for 9D C-style sprintf() function.
static TypeId GetTypeId()
Get the type ID.
void Write7d(std::string context, double v1, double v2, double v3, double v4, double v5, double v6, double v7)
Writes 7 values to the file.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void Set8dFormat(const std::string &format)
Sets the 8D format string for the C-style sprintf() function.
std::string m_7dFormat
Format string for 7D C-style sprintf() function.
void Write9d(std::string context, double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8, double v9)
Writes 9 values to the file.
void Set2dFormat(const std::string &format)
Sets the 2D format string for the C-style sprintf() function.
std::string m_6dFormat
Format string for 6D C-style sprintf() function.
std::string m_heading
Heading line for the outputfile.
void Set1dFormat(const std::string &format)
Sets the 1D format string for the C-style sprintf() function.
void Write2d(std::string context, double v1, double v2)
Writes 2 values to the file.
std::string m_3dFormat
Format string for 3D C-style sprintf() function.
void Set7dFormat(const std::string &format)
Sets the 7D format string for the C-style sprintf() function.
Base class for data collection framework objects.
std::string m_1dFormat
Format string for 1D C-style sprintf() function.
void Write1d(std::string context, double v1)
Writes 1 value to the file.
void Set10dFormat(const std::string &format)
Sets the 10D format string for the C-style sprintf() function.
void Write4d(std::string context, double v1, double v2, double v3, double v4)
Writes 4 values to the file.
void Set5dFormat(const std::string &format)
Sets the 5D format string for the C-style sprintf() function.
void Set4dFormat(const std::string &format)
Sets the 4D format string for the C-style sprintf() function.
FileAggregator(const std::string &outputFileName, enum FileType fileType=SPACE_SEPARATED)
FileType
The type of file written by the aggregator.
std::string m_4dFormat
Format string for 4D C-style sprintf() function.
std::string m_outputFileName
The file name.
std::string m_5dFormat
Format string for 5D C-style sprintf() function.
enum FileType m_fileType
Determines the kind of file written by the aggregator.
bool m_hasHeadingBeenSet
Indicates if the heading line for the file has been set.
void Write6d(std::string context, double v1, double v2, double v3, double v4, double v5, double v6)
Writes 6 values to the file.
void Write3d(std::string context, double v1, double v2, double v3)
Writes 3 values to the file.
void Set6dFormat(const std::string &format)
Sets the 6D format string for the C-style sprintf() function.
virtual ~FileAggregator()
std::string m_separator
Printed between values in the file.
void SetHeading(const std::string &heading)
Sets the heading string that will be printed on the first line of the file.
This aggregator sends values it receives to a file.
void Write8d(std::string context, double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8)
Writes 8 values to the file.
std::string m_2dFormat
Format string for 2D C-style sprintf() function.
std::string m_10dFormat
Format string for 10D C-style sprintf() function.
void Write5d(std::string context, double v1, double v2, double v3, double v4, double v5)
Writes 5 values to the file.
std::ofstream m_file
Used to write values to the file.
void Set3dFormat(const std::string &format)
Sets the 3D format string for the C-style sprintf() function.
void Set9dFormat(const std::string &format)
Sets the 9D format string for the C-style sprintf() function.