Message, error, warning, and logging functionality.
More...
#include <Console.hh>
Public Member Functions |
| 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 Public Member Functions |
| static Console * | Instance () |
| | Return an instance to this class.
|
Detailed Description
Message, error, warning, and logging functionality.
Constructor & Destructor Documentation
| virtual sdf::Console::~Console |
( |
| ) |
|
|
virtual |
Member Function Documentation
| 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
| static Console* sdf::Console::Instance |
( |
| ) |
|
|
static |
| 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
| 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: