mmCEsim 0.3.0
mmWave Channel Estimation Simulation
|
Log support during compilation. More...
#include <log.h>
Public Member Functions | |
Log () | |
Construct a new Log object. More... | |
~Log () | |
Destroy the Log object. More... | |
std::ofstream & | write () |
Write contents to the log file. More... | |
std::ofstream & | info () |
Write infomation to the log file. More... | |
std::ofstream & | war () |
Write warning message to the log file. More... | |
std::ofstream & | err () |
Write error message to the log file. More... | |
std::ofstream & | msg () |
Write a message to the log file. More... | |
void | flush () |
Flush the buff into the log file. More... | |
void | writeArg (int argc, char *argv[]) |
Write CLI arguments information to log. More... | |
Private Attributes | |
std::ofstream | _f |
output file stream More... | |
bool | _open = false |
whether the file successfully opened More... | |
Log support during compilation.
Log::Log | ( | ) |
Construct a new Log object.
The file initialization is processed here.
Log::~Log | ( | ) |
Destroy the Log object.
Close the ostream file.
|
inline |
Write error message to the log file.
The line is started with [ERROR]
|
inline |
Flush the buff into the log file.
This is equivalent to Log::write() << std::endl.
|
inline |
Write infomation to the log file.
The line is started with [INFO]
|
inline |
Write a message to the log file.
The line is started with [MESSAGE]
|
inline |
Write warning message to the log file.
The line is started with [WARNING]
|
inline |
Write contents to the log file.
void Log::writeArg | ( | int | argc, |
char * | argv[] | ||
) |
Write CLI arguments information to log.
argc | The number of CLI arguments. |
argv | The CLI arguments. |
|
private |
output file stream
|
private |
whether the file successfully opened