# 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::CFileDisplayer Class Reference

File displayer. More...

#include <displayer.h>

Inheritance diagram for NLMISC::CFileDisplayer:

NLMISC::IDisplayer List of all members.

Public Methods

 CFileDisplayer (const std::string &filename, bool eraseLastLog=false, const char *displayerName="")
 Constructor. More...

 CFileDisplayer ()
void setParam (const std::string &filename, bool eraseLastLog=false)
 Set Parameter of the displayer if not set at the ctor time. More...


Protected Methods

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


Private Attributes

std::string _FileName
FILE * _FilePointer
bool _NeedHeader

Detailed Description

File displayer.

Put string into a file. How to log information (for debugging purpose) ?

Author:
Vianney Lecroart , Nevrax France
Date:
2000

Definition at line 135 of file displayer.h.


Constructor & Destructor Documentation

NLMISC::CFileDisplayer::CFileDisplayer const std::string &    filename,
bool    eraseLastLog = false,
const char *    displayerName = ""
 

Constructor.

Definition at line 293 of file displayer.cpp.

References _FilePointer, and setParam.

NLMISC::CFileDisplayer::CFileDisplayer  
 

Definition at line 299 of file displayer.cpp.

References _FilePointer.


Member Function Documentation

void NLMISC::CFileDisplayer::doDisplay const TDisplayInfo   args,
const char *    message
[protected, virtual]
 

Put the string into the file.

Implements NLMISC::IDisplayer.

Definition at line 333 of file displayer.cpp.

References _FileName, _FilePointer, _NeedHeader, NLMISC::IDisplayer::dateToHumanString, NLMISC::IDisplayer::HeaderString, and NLMISC::IDisplayer::logTypeToString.

void NLMISC::CFileDisplayer::setParam const std::string &    filename,
bool    eraseLastLog = false
 

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

Definition at line 304 of file displayer.cpp.

References _FileName, and nlwarning.

Referenced by CFileDisplayer.


Member Data Documentation

std::string NLMISC::CFileDisplayer::_FileName [private]
 

Definition at line 152 of file displayer.h.

Referenced by doDisplay, and setParam.

FILE* NLMISC::CFileDisplayer::_FilePointer [private]
 

Definition at line 154 of file displayer.h.

Referenced by CFileDisplayer, and doDisplay.

bool NLMISC::CFileDisplayer::_NeedHeader [private]
 

Definition at line 156 of file displayer.h.

Referenced by doDisplay.


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