fs::sys::LogImpl_t Class Reference

Inheritance diagram for fs::sys::LogImpl_t:

Inheritance graph
[legend]
Collaboration diagram for fs::sys::LogImpl_t:

Collaboration graph
[legend]
List of all members.

Detailed Description

Implementation for Log_t class.

LogImpl_t is used for internal use only, see Log_t instead.

Definition at line 77 of file fsLog.cpp.

Public Member Functions

 LogImpl_t (unsigned int fMode, size_t uHist, const char *pszFile)
virtual ~LogImpl_t ()
virtual void SetTgt (Log_t *pTgt)
 Sets a new target log (dumps history, redirects future records).

Protected Member Functions

virtual void RegSrc (Log_t *pSrc, bool bReg=true)
 Links / unlinks log instances.
virtual void PushLn (const char *pszText, bool bMsgBrk=false)
 Logs a text line.

Private Types

typedef std::vector< Log_t * > TSrcs
typedef std::deque< std::string > Hist_t

Private Member Functions

 LogImpl_t ()
 LogImpl_t (const LogImpl_t &)
LogImpl_toperator= (const LogImpl_t &)

Private Attributes

unsigned int m_fMode
 Configuration flags.
Log_tm_pTgt
 Target log.
TSrcs m_Srcs
 List of log sources.
void * m_hFile
 File handle (if a log file is bound).
Hist_t m_Hist
 Log history.
size_t m_uHist
 Maximum depth of log history.
size_t m_uWrns
 Number of caught warnings.
size_t m_uErrs
 Number of caught errors.


Member Typedef Documentation

typedef std::deque<std::string> fs::sys::LogImpl_t::Hist_t [private]

Definition at line 105 of file fsLog.cpp.

typedef std::vector<Log_t *> fs::sys::LogImpl_t::TSrcs [private]

Definition at line 100 of file fsLog.cpp.


Constructor & Destructor Documentation

LogImpl_t::LogImpl_t ( unsigned int  fMode,
size_t  uHist,
const char *  pszFile 
)

Definition at line 115 of file fsLog.cpp.

References fs::sys::Log_t::LOG_FILE, and m_hFile.

LogImpl_t::~LogImpl_t (  )  [virtual]

Definition at line 128 of file fsLog.cpp.

References m_hFile, m_Srcs, m_uErrs, m_uWrns, PushLn(), and SetTgt().

Here is the call graph for this function:

fs::sys::LogImpl_t::LogImpl_t (  )  [private]

fs::sys::LogImpl_t::LogImpl_t ( const LogImpl_t  )  [private]


Member Function Documentation

LogImpl_t& fs::sys::LogImpl_t::operator= ( const LogImpl_t  )  [private]

void LogImpl_t::PushLn ( const char *  pszText,
bool  bMsgBrk = false 
) [protected, virtual]

Logs a text line.

Reimplemented from fs::sys::Log_t.

Definition at line 187 of file fsLog.cpp.

References FS_ASSERT_MSG, fs::sys::Log_t::LOG_DBGOUT, fs::sys::Log_t::LOG_HIST, fs::sys::Log_t::LOG_RTMBRK, fs::sys::Log_t::LOG_STDOUT, m_fMode, m_hFile, m_Hist, m_pTgt, m_uErrs, m_uHist, m_uWrns, and fs::sys::Log_t::PushLn().

Here is the call graph for this function:

void LogImpl_t::RegSrc ( Log_t pSrc,
bool  bReg = true 
) [protected, virtual]

Links / unlinks log instances.

Reimplemented from fs::sys::Log_t.

Definition at line 173 of file fsLog.cpp.

References FS_ASSERT, and m_Srcs.

void LogImpl_t::SetTgt ( Log_t pTgt  )  [virtual]

Sets a new target log (dumps history, redirects future records).

Parameters:
pTgt A new log target or 0 to reset current link.

Reimplemented from fs::sys::Log_t.

Definition at line 150 of file fsLog.cpp.

References m_Hist, m_pTgt, fs::sys::Log_t::PushLn(), and fs::sys::Log_t::RegSrc().

Here is the call graph for this function:


Member Data Documentation

unsigned int fs::sys::LogImpl_t::m_fMode [private]

Configuration flags.

Definition at line 97 of file fsLog.cpp.

void* fs::sys::LogImpl_t::m_hFile [private]

File handle (if a log file is bound).

Definition at line 103 of file fsLog.cpp.

Hist_t fs::sys::LogImpl_t::m_Hist [private]

Log history.

Definition at line 106 of file fsLog.cpp.

Log_t* fs::sys::LogImpl_t::m_pTgt [private]

Target log.

Definition at line 99 of file fsLog.cpp.

TSrcs fs::sys::LogImpl_t::m_Srcs [private]

List of log sources.

Definition at line 101 of file fsLog.cpp.

size_t fs::sys::LogImpl_t::m_uErrs [private]

Number of caught errors.

Definition at line 110 of file fsLog.cpp.

size_t fs::sys::LogImpl_t::m_uHist [private]

Maximum depth of log history.

Definition at line 107 of file fsLog.cpp.

size_t fs::sys::LogImpl_t::m_uWrns [private]

Number of caught warnings.

Definition at line 109 of file fsLog.cpp.


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

FipS' Code (Thu Feb 15 22:43:54 2007) - (c) Filip STOKLAS (FipS) - [ www ] [ Guest Book ]