Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Monitor Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Monitor() [1/2]

Monitor ( void  )

Default configuration monitor constructor.

◆ Monitor() [2/2]

Monitor ( const Monitor monitor)

Cloning constructor.

Parameters
monitorMonitor to clone.

◆ ~Monitor()

~Monitor ( void  )
virtual

Member Function Documentation

◆ error()

void error ( const string message)
virtual

Display an error to the user (on error output).

Parameters
messageMessage to display.

References elm::io::endl, and Monitor::err.

◆ info()

void info ( const string message)
virtual

Display an information to the user (on error output).

Parameters
messageMessage to display.

References elm::io::endl, and Monitor::err.

◆ setErr()

void setErr ( OutStream err)

Change error stream.

Parameters
errNew error stream.

References Monitor::err.

◆ setLog()

void setLog ( OutStream log)

Change log stream.

Parameters
logNew log stream.

References Monitor::log.

◆ setOut()

void setOut ( OutStream out)

Change output stream.

Parameters
outNew output stream.

References Monitor::out.

◆ warn()

void warn ( const string message)
virtual

Display a warning to the user (on error output).

Parameters
messageMessage to display.

References elm::io::endl, and Monitor::err.

Member Data Documentation

◆ err

◆ log

Output log

Referenced by Monitor::setLog().

◆ out

Output out

Referenced by Monitor::setOut().


The documentation for this class was generated from the following files: