Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbDebugStreamTest.cc

Go to the documentation of this file.
00001 #include "BaBar/BaBar.hh"
00002 #include "CdbBase/CdbDebugStream.hh"
00003 using std::endl;
00004 
00005 /// A trivial test for the "debug" stream
00006 /**
00007   * The test will illustrate how the debug stream can be used. Set the "BDBDEBUG1"
00008   * environment variable to any value and see results. More details on the stream
00009   * can be found in the class's description.
00010   *
00011   * @see class CdbDebugStream
00012   */
00013 int
00014 main( int argc, char* argv[] )
00015 {
00016   // Use convenience macros
00017 
00018     CDB_DEBUG_STREAM << "Hello!" << endl;
00019     CDB_DEBUG_STREAM << "Hello, that's me again!" << endl;
00020 
00021   // Get the stream directly.
00022 
00023     CdbDebugStream::instance( ).stream( )
00024         << "This line should begin with this sentense. No autogenerated" << endl
00025         << "timestamps as it happens for the previous two lines!" << endl;
00026 
00027     return 0;
00028 }
00029 
00030 /////////////////
00031 // End Of File //
00032 /////////////////

Generated on Mon Dec 5 18:22:05 2005 for CDB by doxygen1.3-rc3