![]() |
PUMA Library Reference Manual
|
#include <Puma/VerboseMgr.h>
Inheritance diagram for Puma::VerboseMgr:Indented output stream with a adjustable verbosity level.
If the level reaches the verbosity level, all messages printed on the stream are ignored. Use the stream manipulator Puma::endvm to finish a message on the stream.
Public Member Functions | |
| VerboseMgr (std::ostream &out) | |
| Constructor. | |
| VerboseMgr (std::ostream &out, int verbose) | |
| Construct a new verbosity manager. | |
| void | verbose (int verbose) |
| Set the verbosity level. | |
| int | verbose () |
| Get the verbosity level. | |
| void | operator++ (int) |
| Increase the current level starting at 0. | |
| void | operator-- (int) |
| Decrease the current level starting at 0. | |
| void | endl () |
| Finish the message and write it on the destination output stream if the verbosity level is not yet reached. | |
|
inline |
Constructor.
Default verbosity level is 10.
| out | The destination output stream. |
|
inline |
Construct a new verbosity manager.
| out | The destination output stream. |
| verbose | The default verbosity level. |
| void Puma::VerboseMgr::endl | ( | ) |
Finish the message and write it on the destination output stream if the verbosity level is not yet reached.
|
inline |
Increase the current level starting at 0.
|
inline |
Decrease the current level starting at 0.
|
inline |
Get the verbosity level.
|
inline |
Set the verbosity level.
| verbose | The verbosity level. |