nConsoleDateFilter Class Reference

Inheritance diagram for nConsoleDateFilter:

Inheritance graph
[legend]
Collaboration diagram for nConsoleDateFilter:

Collaboration graph
[legend]

List of all members.

Private Member Functions

virtual void DoFilterLine (tString &line)
 filter an output line
virtual int DoGetPriority () const
 return filter priority


Detailed Description

Definition at line 51 of file master.cpp.


Member Function Documentation

virtual void nConsoleDateFilter::DoFilterLine ( tString line  )  [inline, private, virtual]

filter an output line

Parameters:
line the line to filter
Returns:
the filtered line

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

Returns:

Reimplemented from tConsoleFilter.

Definition at line 67 of file master.cpp.

00067 { return 1; }


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:47:25 2008 for Armagetron Advanced by  doxygen 1.5.4