#include <sglOStream.hpp>
Public Types | |
| typedef void (* | callback )(void) |
| enum | PrintLevelEnum { eALWAYS, eWARNING, eINFO, eDEBUG } |
Public Methods | |
| sglOStream (PrintLevelEnum level=eALWAYS) | |
| virtual | ~sglOStream () |
| ostream& | getOStream () |
Static Public Methods | |
| void | setStream (ostream *stream) |
| ostream* | getStream () |
| void | setThreshold (PrintLevelEnum threshold) |
| PrintLevelEnum | getThreshold () |
| void | setPreFunc (callback func) |
| callback | getPreFunc () |
| void | setPostFunc (callback func) |
| callback | getPostFunc () |
Definition at line 38 of file sglOStream.hpp.
|
|
Callback function prototype.
|
|
|
Verbosity levels for printing.
Definition at line 42 of file sglOStream.hpp. |
|
|
Constructor. The new stream will print at the given verbosity level.
Definition at line 108 of file sglOStream.hpp. |
|
|
Destructor.
Definition at line 115 of file sglOStream.hpp. |
|
|
Set the c++ ostream to use for printing.
|
|
|
Get the c++ ostream to use for printing.
|
|
|
Set the print threshold. Messages with a greater verbosity level than the given threshold will not print.
|
|
|
Get the print threshold.
|
|
|
Set the callback function to call before each print stream. This can be used to implement stream locking.
|
|
|
Get the callback function to call before each print stream.
|
|
|
Set the callback function to call after each print stream. This can be used to implement stream (un)locking.
|
|
|
Get the callback function to call after each print stream.
|
|
|
Returns an ostream that can be used this print level.
Definition at line 121 of file sglOStream.hpp. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001