This component can be used to display messages on the standard output. More...
#include <HMIConsoleOutput.hpp>
Public Member Functions | |
HMIConsoleOutput (const std::string &name="cout") | |
void | updateHook () |
void | enableColor (bool yesno=true) |
Enable or disable using a colored prompt. | |
void | setPrompt (const std::string &prompt) |
Set the prompt text. | |
void | display (const std::string &what) |
Display a message on standard output. | |
template<class T > | |
void | enqueue (const T &what) |
Put a message in the queue. | |
void | displayBool (bool what) |
Display a boolean on standard output. | |
void | displayInt (int what) |
Display an integer on standard output. | |
void | displayDouble (double what) |
Display a double on standard output. | |
template<class T > | |
void | dolog (const T &what) |
void | log (const std::string &what) |
void | logBool (bool what) |
Log a boolean on standard output. | |
void | logInt (int what) |
Log an integer on standard output. | |
void | logDouble (double what) |
Log a double on standard output. |
This component can be used to display messages on the standard output.
It is known as the 'cout' component in scripts.
HMI == Human-Machine Interface
Definition at line 51 of file HMIConsoleOutput.hpp.
void enqueue | ( | const T & | what | ) | [inline] |
Put a message in the queue.
The message must be convertible to a stream using operator<<().
Definition at line 167 of file HMIConsoleOutput.hpp.