Class for output file stream container for strings. More...
#include "satellite-output-fstream-string-container.h"
Inheritance diagram for ns3::SatOutputFileStreamStringContainer:
Collaboration diagram for ns3::SatOutputFileStreamStringContainer:Public Member Functions | |
| SatOutputFileStreamStringContainer () | |
| Constructor. More... | |
| SatOutputFileStreamStringContainer (std::string filename, std::ios::openmode filemode) | |
| Constructor. More... | |
| ~SatOutputFileStreamStringContainer () | |
| Destructor. More... | |
| void | AddToContainer (std::string newLine) |
| Function for adding the line to container. More... | |
| void | DoDispose () |
| Do needed dispose actions. More... | |
| void | WriteContainerToFile () |
| Function for writing the container contents to file. More... | |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| NS-3 function for type id. More... | |
Private Member Functions | |
| void | ClearContainer () |
| Function for clearing the container. More... | |
| void | OpenStream () |
| Function for opening the output file stream. More... | |
| void | Reset () |
| Function for resetting the variables. More... | |
| void | ResetStream () |
| Function for resetting the stream. More... | |
Private Attributes | |
| std::vector< std::string > | m_container |
| Container for lines. More... | |
| std::ios::openmode | m_fileMode |
| File mode. More... | |
| std::string | m_fileName |
| File name. More... | |
| std::ofstream * | m_outputFileStream |
| Pointer to output file stream. More... | |
| SatOutputFileStreamWrapper * | m_outputFileStreamWrapper |
| Pointer to output file stream wrapper. More... | |
Class for output file stream container for strings.
The class implements storing the values and writing the stored values into a file.
Definition at line 41 of file satellite-output-fstream-string-container.h.
| ns3::SatOutputFileStreamStringContainer::SatOutputFileStreamStringContainer | ( | std::string | filename, |
| std::ios::openmode | filemode | ||
| ) |
Constructor.
| filename | file name |
| filemode | file mode |
Definition at line 43 of file satellite-output-fstream-string-container.cc.
References m_fileMode, and m_fileName.
| ns3::SatOutputFileStreamStringContainer::SatOutputFileStreamStringContainer | ( | ) |
Constructor.
Definition at line 54 of file satellite-output-fstream-string-container.cc.
| ns3::SatOutputFileStreamStringContainer::~SatOutputFileStreamStringContainer | ( | ) |
Destructor.
Definition at line 66 of file satellite-output-fstream-string-container.cc.
References Reset().
Here is the call graph for this function:| void ns3::SatOutputFileStreamStringContainer::AddToContainer | ( | std::string | newLine | ) |
Function for adding the line to container.
Definition at line 106 of file satellite-output-fstream-string-container.cc.
References m_container.
|
private |
Function for clearing the container.
Definition at line 148 of file satellite-output-fstream-string-container.cc.
References m_container.
Referenced by Reset().
Here is the caller graph for this function:| void ns3::SatOutputFileStreamStringContainer::DoDispose | ( | void | ) |
Do needed dispose actions.
Definition at line 74 of file satellite-output-fstream-string-container.cc.
References Reset().
Here is the call graph for this function:
|
static |
NS-3 function for type id.
Definition at line 35 of file satellite-output-fstream-string-container.cc.
|
private |
Function for opening the output file stream.
Definition at line 114 of file satellite-output-fstream-string-container.cc.
References ns3::SatOutputFileStreamWrapper::GetStream(), m_fileMode, m_fileName, m_outputFileStream, and m_outputFileStreamWrapper.
Referenced by WriteContainerToFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Function for resetting the variables.
Definition at line 123 of file satellite-output-fstream-string-container.cc.
References ClearContainer(), and ResetStream().
Referenced by ~SatOutputFileStreamStringContainer(), DoDispose(), and WriteContainerToFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Function for resetting the stream.
Definition at line 132 of file satellite-output-fstream-string-container.cc.
References m_fileMode, m_fileName, m_outputFileStream, and m_outputFileStreamWrapper.
Referenced by Reset().
Here is the caller graph for this function:| void ns3::SatOutputFileStreamStringContainer::WriteContainerToFile | ( | ) |
Function for writing the container contents to file.
Definition at line 83 of file satellite-output-fstream-string-container.cc.
References m_container, m_outputFileStream, OpenStream(), and Reset().
Here is the call graph for this function:
|
private |
Container for lines.
Definition at line 116 of file satellite-output-fstream-string-container.h.
Referenced by AddToContainer(), ClearContainer(), and WriteContainerToFile().
|
private |
File mode.
Definition at line 126 of file satellite-output-fstream-string-container.h.
Referenced by SatOutputFileStreamStringContainer(), OpenStream(), and ResetStream().
|
private |
File name.
Definition at line 121 of file satellite-output-fstream-string-container.h.
Referenced by SatOutputFileStreamStringContainer(), OpenStream(), and ResetStream().
|
private |
Pointer to output file stream.
Definition at line 111 of file satellite-output-fstream-string-container.h.
Referenced by OpenStream(), ResetStream(), and WriteContainerToFile().
|
private |
Pointer to output file stream wrapper.
Definition at line 106 of file satellite-output-fstream-string-container.h.
Referenced by OpenStream(), and ResetStream().