Message, error, warning, and logging functionality. More...
#include <Console.hh>
Classes | |
| class | ConsoleStream |
| An ostream-like class that we'll use for logging. More... | |
Public Member Functions | |
| virtual | ~Console () |
| Destructor. More... | |
| ConsoleStream & | ColorMsg (const std::string &lbl, const std::string &file, unsigned int line, int color) |
| Use this to output a colored message to the terminal. More... | |
| ConsoleStream & | Log (const std::string &lbl, const std::string &file, unsigned int line) |
| Use this to output a message to a log file. More... | |
| void | SetQuiet (bool _q) |
| Set quiet output. More... | |
Static Public Member Functions | |
| static void | Clear () |
| Clear out the current console to make room for a new one. More... | |
| static ConsolePtr | Instance () |
| Return an instance to this class. More... | |
Message, error, warning, and logging functionality.
|
virtual |
Destructor.
|
static |
Clear out the current console to make room for a new one.
| ConsoleStream& sdf::Console::ColorMsg | ( | const std::string & | lbl, |
| const std::string & | file, | ||
| unsigned int | line, | ||
| int | color | ||
| ) |
Use this to output a colored message to the terminal.
| [in] | _lbl | Text label |
| [in] | _file | File containing the error |
| [in] | _line | Line containing the error |
| [in] | _color | Color to make the label |
|
static |
Return an instance to this class.
Referenced by sdf::Console::ConsoleStream::operator<<().
| ConsoleStream& sdf::Console::Log | ( | const std::string & | lbl, |
| const std::string & | file, | ||
| unsigned int | line | ||
| ) |
Use this to output a message to a log file.
| void sdf::Console::SetQuiet | ( | bool | _q | ) |
Set quiet output.
| [in] | q | True to prevent warning |