Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/io/Monitor.h>
Public Member Functions | |
Monitor (void) | |
Monitor (const Monitor &monitor) | |
virtual | ~Monitor (void) |
virtual void | info (const string &message) |
virtual void | error (const string &message) |
virtual void | warn (const string &message) |
void | setOut (OutStream &out) |
void | setErr (OutStream &err) |
void | setLog (OutStream &log) |
Public Attributes | |
Output | out |
Output | err |
Output | log |
The monitor is a standard way to provide user interface that may be adapted to the current environment of an application. In its default implementation, it provides access to standard input/output to communicate with the user but it may be customized in any way without need of customization of classes based on this class.
elm::io::Monitor::Monitor | ( | void | ) |
Default configuration monitor constructor.
elm::io::Monitor::Monitor | ( | const Monitor & | monitor | ) |
Cloning constructor.
monitor | Monitor to clone. |
|
virtual |
|
virtual |
Display an error to the user (on error output).
message | Message to display. |
References elm::io::endl, and err.
|
virtual |
Display an information to the user (on error output).
message | Message to display. |
References elm::io::endl, and err.
void elm::io::Monitor::setErr | ( | OutStream & | err | ) |
Change error stream.
err | New error stream. |
void elm::io::Monitor::setLog | ( | OutStream & | log | ) |
Change log stream.
log | New log stream. |
void elm::io::Monitor::setOut | ( | OutStream & | out | ) |
Change output stream.
out | New output stream. |
|
virtual |
Display a warning to the user (on error output).
message | Message to display. |
References elm::io::endl, and err.
Output elm::io::Monitor::log |
Output elm::io::Monitor::out |