Trace & indentation enabled stream. More...
Inherits std::ostream.
Public Member Functions | |
int | getMinLevel () const |
int | getMaxLevel () const |
int | setMinLevel (int) |
int | setMaxLevel (int) |
int | getLevel () const |
int | setLevel (int) |
bool | enabled () const |
bool | enabled (int) const |
tstream & | log (int level, int count=0) |
tstream & | tabw (int level, int count) |
Trace & indentation enabled stream.
Traced stream are a derived class of std::ostream that provides integrated indentation and selective printing according to a verbosity level. Only messages comprised between minLevel
and maxLevel
are to be printed:
The cdebug instance of this class, in conjunction with Hurricane::DebugSession is provided to create tailored program traces. cdebug is a global variable which is put in the root namespace (not the Hurricane namespace).
|
inline |
Returns: The current mimimum level for the messages to be printeds (equal or superior).
Referenced by Hurricane::DebugSession::open().
|
inline |
Returns: The current maximum level for the messages to be printeds (strictly inferior).
Referenced by Hurricane::DebugSession::open().
|
inline |
Sets the minimum level, returns the previous value of the level.
Referenced by Hurricane::DebugSession::close(), and Hurricane::DebugSession::open().
|
inline |
Sets the maximum level, returns the previous value of the level.
Referenced by Hurricane::DebugSession::close(), and Hurricane::DebugSession::open().
|
inline |
Returns: The level of the latest message that was submitted to the stream. It is automatically set up after any call to tstream::log() or tstream::tabw().
|
inline |
|
inline |
Returns: true if the currently memorised level is inside the current valid range.
|
inline |
Returns: true if this level is inside the current valid range.
|
inline |
level | The level into which to print. |
count | Increment/decrement the number of tabulations to print at the beginning of a line. |
<<
can be used.Send a message into the stream, that will be displayed if level
is enabled. The number of tabulations printed at the beginning of the line will be changed after this message has been printed (or discarted).
References setLevel().
|
inline |
level | The level into which to print. |
count | Increment/decrement the number of tabulations to print at the beginning of a line. |
This function is dedicated to change the indentation level, but not print something on the stream (event if it returns a reference to it).
References setLevel().
Generated by doxygen 1.9.1 on Thu Aug 11 2022 | Return to top of page |
Hurricane VLSI Database | Copyright © 2000-2020 Bull S.A. All rights reserved |