Private Member Functions | |
virtual void | DoFilterLine (tString &line) |
filter an output line | |
virtual int | DoGetPriority () const |
return filter priority |
Definition at line 51 of file master.cpp.
virtual void nConsoleDateFilter::DoFilterLine | ( | tString & | line | ) | [inline, private, virtual] |
filter an output line
line | the line to filter |
Reimplemented from tConsoleFilter.
Definition at line 53 of file master.cpp.
References NULL.
00054 { 00055 char szTemp[128]; 00056 time_t now; 00057 struct tm *pTime; 00058 now = time(NULL); 00059 pTime = localtime(&now); 00060 strftime(szTemp,sizeof(szTemp),"[%Y/%m/%d %H:%M:%S] ",pTime); 00061 00062 tString orig = line; 00063 line = ""; 00064 line << szTemp << orig; 00065 }
virtual int nConsoleDateFilter::DoGetPriority | ( | void | ) | const [inline, private, virtual] |
return filter priority
Reimplemented from tConsoleFilter.
Definition at line 67 of file master.cpp.