#include <cdebug.hxx>
Public Member Functions | |
cdebug () | |
cdebug (int ichan, const char *filename, const char *func, int line) | |
template<typename t> | |
std::ofstream & | operator<< (t &_arg) |
void | end () |
~cdebug () | |
string | getfilename () |
Static Public Member Functions | |
static bool | init (const string &app_name="debug") |
static const std::string & | appname () |
static void | disable (int c=-1) |
static void | enable () |
Private Attributes | |
unsigned int | _ch |
Static Private Attributes | |
static dbch::dictionary | _channels |
static std::ofstream | Os |
static bool | started |
static std::string | _appname |
static int | indentation |
static bool | __enabled |
static std::string | function |
static int | line |
static string | filename |
Definition at line 57 of file cdebug.hxx.
|
|
|
|
|
|
|
Definition at line 72 of file cdebug.hxx. References _appname. 00072 { 00073 return _appname; 00074 }
|
|
Definition at line 86 of file cdebug.hxx. 00086 { cdebug::__enabled = false; }
|
|
Definition at line 91 of file cdebug.hxx. 00091 { cdebug::__enabled = true; }
|
|
Definition at line 77 of file cdebug.hxx. 00077 { 00078 cdebug::os.flush(); 00079 cdebug::os.close(); 00080 }
|
|
|
|
|
|
Definition at line 102 of file cdebug.hxx. References _ch. 00102 { 00103 00104 dbch::iterator it = cdebug::_channels.find(_ch); 00105 if(it == cdebug::_channels.end() ) return cdebug::Os; 00106 if( !(*it)._active || !cdebug::__enabled ) return cdebug::Os; 00107 string f = getFilename() + ':'; 00108 string i((*it)._indent*4, ' '); 00109 cdebug::Os << (*it).id <<':' << f << cdebug::function << ':' << cdebug::line << ':' << i << _arg; 00110 return cdebug::Os; 00111 }
|
|
Definition at line 64 of file cdebug.hxx. |
|
Definition at line 62 of file cdebug.hxx. Referenced by appname(). |
|
Definition at line 97 of file cdebug.hxx. Referenced by operator<<(). |
|
Definition at line 59 of file cdebug.hxx. |
|
Definition at line 96 of file cdebug.hxx. |
|
Definition at line 65 of file cdebug.hxx. |
|
Definition at line 63 of file cdebug.hxx. |
|
Definition at line 66 of file cdebug.hxx. |
|
Definition at line 60 of file cdebug.hxx. |
|
Definition at line 61 of file cdebug.hxx. |