21 #ifndef SAT_OUTPUT_FSTREAM_DOUBLE_CONTAINER_H
22 #define SAT_OUTPUT_FSTREAM_DOUBLE_CONTAINER_H
26 #include "ns3/object.h"
27 #include <ns3/gnuplot.h>
65 std::ios::openmode filemode,
66 uint32_t valuesInRow);
105 std::string keyPosition,
107 Gnuplot2dDataset::Style style);
Class for output file stream container for double values.
std::string m_title
Figure title.
double ConvertValue(double value)
Function for converting the container data samples.
void OpenStream()
Function for opening the output file stream.
std::vector< std::vector< double > > m_container
Container for value rows.
void Reset()
Function for resetting the variables.
SatOutputFileStreamWrapper * m_outputFileStreamWrapper
Pointer to output file stream wrapper.
bool m_printFigure
Enable / disable printing of container contents into a figure.
Gnuplot2dDataset GetGnuplotDataset()
Function for creating Gnuplot datasets.
void DoDispose()
Do needed dispose actions.
uint32_t m_valuesInRow
Number of values in a row.
std::string m_keyPosition
Figure legend position.
void ClearContainer()
Function for clearing the container.
SatOutputFileStreamDoubleContainer()
Constructor.
Gnuplot2dDataset::Style m_style
2D dataset figure style
FigureUnitConversion_t m_figureUnitConversionType
Describes which unit conversion should be used with the figure.
std::ios::openmode m_fileMode
File mode.
void AddToContainer(std::vector< double > newItem)
Function for adding the values to container.
void PrintFigure()
Function for printing the container contents into a figure.
void ResetStream()
Function for resetting the stream.
std::ofstream * m_outputFileStream
Pointer to output file stream.
std::string m_legendY
Figure Y-axis title.
std::string m_legendX
Figure X-axis title.
std::string m_fileName
File name.
void EnableFigureOutput(std::string title, std::string legendY, std::string legendX, std::string keyPosition, FigureUnitConversion_t figureUnitConversionType, Gnuplot2dDataset::Style style)
Function for enabling the figure output.
Gnuplot GetGnuplot()
Function for creating Gnuplots.
~SatOutputFileStreamDoubleContainer()
Destructor.
void WriteContainerToFile()
Function for writing the container contents to file.
static TypeId GetTypeId(void)
NS-3 function for type id.
A class encapsulating an STL output stream.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.