Message, error, warning, and logging functionality.
More...
#include <Console.hh>
|
| virtual | ~Console () |
| | Destructor.
|
| |
| 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.
|
| |
| ConsoleStream & | Log (const std::string &lbl, const std::string &file, unsigned int line) |
| | Use this to output a message to a log file.
|
| |
| void | SetQuiet (bool _q) |
| | Set quiet output.
|
| |
|
| static void | Clear () |
| | Clear out the current console to make room for a new one.
|
| |
| static ConsolePtr | Instance () |
| | Return an instance to this class.
|
| |
Message, error, warning, and logging functionality.
◆ ~Console()
| virtual sdf::Console::~Console |
( |
| ) |
|
|
virtual |
◆ Clear()
| static void sdf::Console::Clear |
( |
| ) |
|
|
static |
Clear out the current console to make room for a new one.
◆ ColorMsg()
| 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.
- Parameters
-
| [in] | _lbl | Text label |
| [in] | _file | File containing the error |
| [in] | _line | Line containing the error |
| [in] | _color | Color to make the label |
- Returns
- Reference to an output stream
◆ Instance()
◆ Log()
| 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.
- Returns
- Reference to output stream
◆ SetQuiet()
| void sdf::Console::SetQuiet |
( |
bool | _q | ) |
|
Set quiet output.
- Parameters
-
| [in] | q | True to prevent warning |
The documentation for this class was generated from the following file: