20 #ifndef SATELLITE_LOG_H
21 #define SATELLITE_LOG_H
23 #include <ns3/satellite-output-fstream-string-container.h>
74 typedef std::pair<LogType_t, std::string>
key_t;
79 typedef std::map<key_t, Ptr<SatOutputFileStreamStringContainer>>
container_t;
135 Ptr<SatOutputFileStreamStringContainer>
CreateLog(
LogType_t logType, std::string fileTag);
143 Ptr<SatOutputFileStreamStringContainer>
FindLog(
LogType_t logType, std::string fileTag);
Class for simulator output logging such as warnings and error messages.
void DoDispose()
Do needed dispose actions.
std::map< key_t, Ptr< SatOutputFileStreamStringContainer > > container_t
typedef for map of containers
void WriteToFile()
Write the contents of a container matching to the key into a file.
Ptr< SatOutputFileStreamStringContainer > CreateLog(LogType_t logType, std::string fileTag)
Function for creating a log.
std::pair< LogType_t, std::string > key_t
typedef for container key
std::string GetFileTag(LogType_t logType)
Function for getting the file tag for predefined log types.
void Reset()
Function for resetting the variables.
Ptr< SatOutputFileStreamStringContainer > FindLog(LogType_t logType, std::string fileTag)
Function for finding a log based on the key.
void AddToLog(LogType_t logType, std::string fileTag, std::string message)
Function for adding a line to a specific log.
container_t m_container
Map for containers.
static TypeId GetTypeId(void)
NS-3 type id function.
TypeId GetInstanceTypeId(void) const
NS-3 instance type id function.
LogType_t
Enum for log types.
@ LOG_WARNING
LOG_WARNING.
@ LOG_GENERIC
LOG_GENERIC.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.