OSB_APP::LockLog Class Reference

Inheritance diagram for OSB_APP::LockLog:

Inheritance graph
Collaboration diagram for OSB_APP::LockLog:

Collaboration graph
List of all members.

Detailed Description

Locked logging to a file.

Definition at line 60 of file locklog.h.

Public Member Functions

All function lock, do their job, unlock and return.

Private Member Functions

Private Attributes

Constructor & Destructor Documentation

OSB_APP::LockLog::LockLog ( int  logLevel  )  [explicit]

Constructor with log level.

It initializes mutex_.

OSB_APP::LockLog::~LockLog (  ) 

Destructor: destroys mutex_.

OSB_APP::LockLog::LockLog ( const LockLog  )  [private]

Prevent copying: not implemented.

Member Function Documentation

void OSB_APP::LockLog::elog (  )  [virtual]

End a log message with a new-line.

Calls OSB_LIB::ConsoleLog::elog() and unlocks.

Reimplemented from OSB_LIB::ConsoleLog.

void OSB_APP::LockLog::endlog (  )  [virtual]

End a log message without a new-line.

Calls OSB_LIB::ConsoleLog::endlog() and unlocks.

Reimplemented from OSB_LIB::ConsoleLog.

void OSB_APP::LockLog::lock (  )  const [private]

Lock the logging interface: locks mutex_.

int OSB_APP::LockLog::logLevel (  )  const [virtual]

Reimplemented from OSB_LIB::LogBase.

LockLog& OSB_APP::LockLog::operator== ( const LockLog  )  [private]

Prevent assignment: not implemented.

void OSB_APP::LockLog::setLevel ( int  logLevel  )  [virtual]

Reimplemented from OSB_LIB::LogBase.

void OSB_APP::LockLog::setVerbose ( bool  on  )  [virtual]

Reimplemented from OSB_LIB::LogBase.

OSB_LIB::LogBase& OSB_APP::LockLog::start ( int  level,
bool  noHead 
) [virtual]

Start a log message.

Locks and calls OSB_LIB::ConsoleLog::start(), see there for a detailed description.

Reimplemented from OSB_LIB::ConsoleLog.

void OSB_APP::LockLog::unlock (  )  const [private]

Unlock the logging interface: unlocks mutex_.

bool OSB_APP::LockLog::verbose (  )  const [virtual]

Reimplemented from OSB_LIB::LogBase.

Member Data Documentation

pthread_mutex_t OSB_APP::LockLog::mutex_ [mutable, private]

Mutex to lock the log file.

Definition at line 119 of file locklog.h.

The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:17:29 2006 for OSB Library by  doxygen 1.4.7