The piece of code that desires interaction with an action or an output handler should use an instance of this class. This class connects to the active OutputHandler (if any) and forwards messages. More...
#include <Console.h>
Public Member Functions | |
Interface (const std::string &prefix="") | |
The text that will appear in front of every message forwarded by this Interface instance can be optionally set as a constructor argument. | |
void | setPrefix (const std::string &prefix) |
Set the text that will appear in front of every message forwarded by this Interface instance. | |
const std::string & | getPrefix (void) const |
Get the text that appears in front of every forwarded message. | |
void | inform (const std::string &text) const |
Forward information. | |
void | warn (const std::string &text) const |
Forward a warning. | |
void | error (const std::string &text) const |
Forward an error. | |
void | debug (const std::string &text) const |
Forward a debug message. | |
void | inform (const char *msg,...) const |
Forward information. | |
void | warn (const char *msg,...) const |
Forward a warning. | |
void | error (const char *msg,...) const |
Forward an error. | |
void | debug (const char *msg,...) const |
Forward a debug message. | |
Protected Attributes | |
std::string | prefix_ |
The string that appears in front of very forwarded message. |
The piece of code that desires interaction with an action or an output handler should use an instance of this class. This class connects to the active OutputHandler (if any) and forwards messages.