|
dune-common
2.3.1
|
Generic class to implement debug output streams. More...
#include <dune/common/debugstream.hh>

Public Member Functions | |
| DebugStream (std::ostream &out=std::cerr) | |
| Create a DebugStream and set initial output stream. More... | |
| DebugStream (DebugStreamState &master, std::ostream &fallback=std::cerr) | |
| Create a DebugStream and directly tie to another DebugStream. More... | |
| ~DebugStream () | |
| Destroy stream. More... | |
| template<class T > | |
| DebugStream & | operator<< (const T data) |
| Generic types are passed on to current output stream. More... | |
| DebugStream & | operator<< (const int data) |
| explicit specialization so that enums can be printed More... | |
| DebugStream & | operator<< (std::ostream &(*f)(std::ostream &)) |
| pass on manipulators to underlying output stream More... | |
| DebugStream & | flush () |
| pass on flush to underlying output stream More... | |
| void | push (bool b) |
| set activation flag and store old value More... | |
| void | pop () throw (DebugStreamError) |
| restore previously set activation flag More... | |
| bool | active () const |
| reports if this stream will produce output More... | |
| void | attach (std::ostream &stream) |
| set output to a different stream. More... | |
| void | detach () throw (DebugStreamError) |
| detach current output stream and restore to previous stream More... | |
| void | tie (DebugStreamState &to) throw (DebugStreamError) |
| void | untie () throw (DebugStreamError) |
| Untie stream. More... | |
Public Attributes | |
| StreamWrap * | current |
| current output stream and link to possibly pushed old output streams More... | |
| bool | _active |
| flag to switch output during runtime More... | |
| bool | _tied |
| are we tied to another DebugStream? More... | |
| unsigned int | _tied_streams |
| how many streams are tied to this state More... | |
Generic class to implement debug output streams.
The main function of a DebugStream is to provide output in a standard ostream fashion that is fully deactivated if the level of the stream does not meet the current requirements. More information in Debug output
| thislevel | this level |
| dlevel | level needed for any output to happen |
| alevel | level needed to switch activation flag on |
| activator | template describing the activation policy |
1.8.7