GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
virtual std::ostringstream& ADF::LogMessage::operator() ( )
inlinevirtual

Allow to pass the underlying stream to funtions/methods.

For instance, within a TestDump class, the Print method is defined and required an ostream. Default is to print out on the standard output. However, the content of the message could be redirected into the log with:

...
LogMessage mylog;
...
...
// we would like to write in the log system, the current statics
mylog << info << " Statics because I would like to see it " ;
dumpfile.Print( mylog() );
mylog << dolog;
...

Definition at line 190 of file ADFLogMessage.h.