Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CmtLog Class Reference

#include <cmt_log.h>

List of all members.

Public Member Functions

 CmtLog ()
CmtLogoperator<< (const cmt_string &s)
CmtLogoperator<< (const char *c)
CmtLogoperator<< (int i)
CmtLogoperator<< (double d)
CmtLogoperator<< (void *p)
CmtLogoperator<< (CmtLogEnd &end)
CmtLogoperator<< (CmtLogDummy &dummy)

Static Public Member Functions

CmtLogEndend ()

Private Member Functions

bool check ()


Constructor & Destructor Documentation

CmtLog::CmtLog  ) 
 

Definition at line 17 of file cmt_log.cxx.

00018 {
00019 }


Member Function Documentation

bool CmtLog::check  )  [private]
 

Definition at line 28 of file cmt_log.cxx.

References Cmt::get_debug().

Referenced by operator<<().

00029 {
00030   if (Cmt::get_debug ()) return (true);
00031   return (false);
00032 }

CmtLogEnd & CmtLog::end  )  [static]
 

Definition at line 21 of file cmt_log.cxx.

00022 {
00023   static CmtLogEnd me;
00024 
00025   return (me);
00026 }

CmtLog & CmtLog::operator<< CmtLogDummy dummy  ) 
 

Definition at line 82 of file cmt_log.cxx.

00083 {
00084   return (*this);
00085 }

CmtLog & CmtLog::operator<< CmtLogEnd end  ) 
 

Definition at line 74 of file cmt_log.cxx.

References check().

00075 {
00076   if (!check ()) return (*this);
00077 
00078   cout << endl;
00079   return (*this);
00080 }

CmtLog & CmtLog::operator<< void *  p  ) 
 

Definition at line 66 of file cmt_log.cxx.

References check().

00067 {
00068   if (!check ()) return (*this);
00069 
00070   cout << p;
00071   return (*this);
00072 }

CmtLog & CmtLog::operator<< double  d  ) 
 

Definition at line 58 of file cmt_log.cxx.

References check().

00059 {
00060   if (!check ()) return (*this);
00061 
00062   cout << d;
00063   return (*this);
00064 }

CmtLog & CmtLog::operator<< int  i  ) 
 

Definition at line 50 of file cmt_log.cxx.

References check().

00051 {
00052   if (!check ()) return (*this);
00053 
00054   cout << i;
00055   return (*this);
00056 }

CmtLog & CmtLog::operator<< const char *  c  ) 
 

Definition at line 34 of file cmt_log.cxx.

References check().

00035 {
00036   if (!check ()) return (*this);
00037 
00038   cout << c;
00039   return (*this);
00040 }

CmtLog & CmtLog::operator<< const cmt_string s  ) 
 

Definition at line 42 of file cmt_log.cxx.

References check().

00043 {
00044   if (!check ()) return (*this);
00045 
00046   cout << s;
00047   return (*this);
00048 }


The documentation for this class was generated from the following files:
Generated on Mon May 2 10:25:33 2005 for CMT by doxygen 1.3.5