# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::IDisplayer Class Reference

Displayer interface. More...

#include <displayer.h>

Inheritance diagram for NLMISC::IDisplayer

Inheritance graph
[legend]
Collaboration diagram for NLMISC::IDisplayer:

Collaboration graph
[legend]
List of all members.

Public Methods

 IDisplayer ()
 Constructor. More...

virtual ~IDisplayer ()
 Destructor. More...

void display ( const TDisplayInfo& args, const char *message )
 Display the string where it does. More...


Protected Methods

virtual void doDisplay ( const TDisplayInfo& args, const char *message) = 0
 Method to implement in the deriver.


Static Protected Methods

const char* logTypeToString (CLog::TLogType logType, bool longFormat = false)
 Convert log type to string. More...

const char* dateToHumanString ()
 Convert the current date to human string. More...

const char* dateToHumanString (time_t date)
 Convert date to "2000/01/14 10:05:17" string. More...

const char* dateToComputerString (time_t date)
 Convert date to "784551148" string (time in second from 1975). More...

const char* HeaderString ()

Private Attributes

CMutex_Mutex

Detailed Description

Displayer interface.

Used to specialize a displayer to display a string. How to log information (for debugging purpose) ?

Author(s):
Vianney Lecroart , Nevrax France
Date:
2000

Definition at line 61 of file displayer.h.


Constructor & Destructor Documentation

NLMISC::IDisplayer::IDisplayer ( )
 

Constructor.

Definition at line 97 of file displayer.cpp.

NLMISC::IDisplayer::~IDisplayer ( ) [virtual]
 

Destructor.

Definition at line 102 of file displayer.cpp.


Member Function Documentation

const char * NLMISC::IDisplayer::HeaderString ( ) [static, protected]
 

Definition at line 89 of file displayer.cpp.

const char * NLMISC::IDisplayer::dateToComputerString ( time_t date ) [static, protected]
 

Convert date to "784551148" string (time in second from 1975).

Definition at line 82 of file displayer.cpp.

const char * NLMISC::IDisplayer::dateToHumanString ( time_t date ) [static, protected]
 

Convert date to "2000/01/14 10:05:17" string.

Definition at line 75 of file displayer.cpp.

const char * NLMISC::IDisplayer::dateToHumanString ( ) [static, protected]
 

Convert the current date to human string.

Definition at line 68 of file displayer.cpp.

void NLMISC::IDisplayer::display ( const TDisplayInfo & args,
const char * message )
 

Display the string where it does.

Definition at line 110 of file displayer.cpp.

void NLMISC::IDisplayer::doDisplay ( const TDisplayInfo & args,
const char * message ) [protected, pure virtual]
 

Method to implement in the deriver.

Reimplemented in NLMISC::CStdDisplayer, NLMISC::CFileDisplayer, and NLMISC::CMsgBoxDisplayer.

const char * NLMISC::IDisplayer::logTypeToString ( CLog::TLogType logType,
bool longFormat = false ) [static, protected]
 

Convert log type to string.

Definition at line 60 of file displayer.cpp.


Member Data Documentation

CMutex * NLMISC::IDisplayer::_Mutex [private]
 

Definition at line 97 of file displayer.h.


The documentation for this class was generated from the following files: