Generic class to handle output from a piece of code. More...
#include <Console.h>
Public Member Functions | |
virtual void | error (const std::string &text)=0 |
Print an error message: "Error: ....". | |
virtual void | warn (const std::string &text)=0 |
Print an warning message: "Warning: ....". | |
virtual void | inform (const std::string &text)=0 |
Print some information: "Information: ....". | |
virtual void | debug (const std::string &text)=0 |
Print a debug message. |
Generic class to handle output from a piece of code.
In order to handle output from the library in different ways, an implementation of this class needs to be provided. The Interface class forwards calls to an instance of OutputHandler. This instance can be set with the useOutputHandler function.