Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBtraceCounter.cxx

Go to the documentation of this file.
00001 
00006 /*----------------------------------------------------------------------------*/
00007 /* C Tool Box: Designed and implemented by:                                   */
00008 /*    Walter F.J. Mueller   Gesellschaft fuer Schwerionenforschung (GSI)      */
00009 /*                          Planckstrasse 1, D-64291 Darmstadt, Germany       */
00010 /*                  Email:  W.F.J.Mueller@gsi.de                              */
00011 /*                  WWW:    http://www-kp3.gsi.de/www/kp3/people/mueller.html */
00012 /*------------------------------------------+---------------------------------*/
00013 
00014 #include "CTB.hxx"
00015 #include "CTBtraceCounter.hxx"
00016 
00022 //------------------------------------------+-----------------------------------
00024 
00025 CTBtraceCounter::~CTBtraceCounter()
00026 {
00027   if (mb_autoprint) ToStream(cerr);         // print on destruct if requested
00028 }
00029 
00030 /*------------------------------------------+---------------------------------*/
00032 
00033 void CTBtraceCounter::Trace()
00034 {
00035   cout << "++" << mc_text << endl;
00036   operator++();
00037 }
00038 
00039 /*------------------------------------------+---------------------------------*/
00041 
00042 void CTBtraceCounter::ToStream(ostream& os) const
00043 {
00044   os << mc_text << " : " << mi_cnt << endl;
00045 }
00046 
00047 /*------------------------------------------+---------------------------------*/
00048 
00049 #if (defined(CTB__OutLine) || defined(CTBtraceCounter__OutLine))
00050 #define inline
00051 #include "CTBtraceCounter.icc"
00052 #undef  inline
00053 #endif

Generated at Fri Oct 24 18:11:30 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001