NLMISC::CMemDisplayer Class Reference

Display into a string vector. More...

#include <mem_displayer.h>

Inherits NLMISC::IDisplayer.

Inherited by NLMISC::CLightMemDisplayer.

List of all members.

Public Member Functions

 CMemDisplayer (const char *displayerName="")
 Constructor.
void setParam (uint32 maxStrings=50)
 Set Parameter of the displayer if not set at the ctor time.
void write (CLog *log=NULL, bool quiet=true)
 Write N last line into a displayer (InfoLog by default).
void write (std::string &str, bool crLf=false)
const std::deque< std::string > & lockStrings ()
void unlockStrings ()
void clear ()

Protected Member Functions

virtual void doDisplay (const CLog::TDisplayInfo &args, const char *message)
 Put the string into the file.

Protected Attributes

bool _NeedHeader
uint32 _MaxStrings
bool _CanUseStrings
std::deque< std::string > _Strings

Detailed Description

Display into a string vector.

Author:
Benjamin Legros
Nevrax France
Date:
2001

Definition at line 43 of file mem_displayer.h.


Constructor & Destructor Documentation

NLMISC::CMemDisplayer::CMemDisplayer ( const char *  displayerName = ""  ) 

Constructor.

Definition at line 338 of file mem_displayer.cpp.

References setParam().


Member Function Documentation

void NLMISC::CMemDisplayer::clear ( void   )  [inline]

Definition at line 60 of file mem_displayer.h.

References _CanUseStrings, and _Strings.

Referenced by NLNET::IService::main(), NLNET::serviceGetView(), and NLNET::updateAdmin().

void NLMISC::CMemDisplayer::doDisplay ( const CLog::TDisplayInfo args,
const char *  message 
) [protected, virtual]
const std::deque<std::string>& NLMISC::CMemDisplayer::lockStrings (  )  [inline]
void NLMISC::CMemDisplayer::setParam ( uint32  maxStrings = 50  ) 

Set Parameter of the displayer if not set at the ctor time.

Definition at line 343 of file mem_displayer.cpp.

References _MaxStrings.

Referenced by CMemDisplayer(), and NLNET::serviceGetView().

void NLMISC::CMemDisplayer::unlockStrings (  )  [inline]
void NLMISC::CMemDisplayer::write ( std::string &  str,
bool  crLf = false 
)

Definition at line 450 of file mem_displayer.cpp.

References _Strings.

void NLMISC::CMemDisplayer::write ( CLog log = NULL,
bool  quiet = true 
)

Write N last line into a displayer (InfoLog by default).

Definition at line 423 of file mem_displayer.cpp.

References _Strings, NLMISC::displayCallStack(), NLMISC::CLog::forceDisplayRaw(), and NLMISC::InfoLog.

Referenced by NLMISC::getCallStackAndLog(), and NLMISC::NLMISC_CATEGORISED_COMMAND().


Member Data Documentation

Definition at line 68 of file mem_displayer.h.

Referenced by NLMISC::CLightMemDisplayer::doDisplay(), doDisplay(), and setParam().

Definition at line 66 of file mem_displayer.h.

Referenced by doDisplay().

std::deque<std::string> NLMISC::CMemDisplayer::_Strings [protected]

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

Generated on Thu Jan 7 08:30:18 2010 for NeL by  doxygen 1.6.1