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