OSB_APP::FileLockLog Class Reference

Inheritance diagram for OSB_APP::FileLockLog:

Inheritance graph
[legend]
Collaboration diagram for OSB_APP::FileLockLog:

Collaboration graph
[legend]
List of all members.

Detailed Description

Locked logging to a file.

Definition at line 62 of file filelocklog.h.

Public Member Functions

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

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

Constructor with log level.

It initializes mutex_.

OSB_APP::FileLockLog::~FileLockLog (  ) 

Destructor: flushes the temp. buffer and closes the file output stream.

The destructor frist flushes the temporary output buffer and closes the file output stream.
If the temp. buffer is not empty afterwards, its content is written to std::cerr.

Note:
Call clearTemp() to prevent the automatic output of the temp. buffer.

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

Prevent copying: not implemented.


Member Function Documentation

void OSB_APP::FileLockLog::lock (  )  const [private, virtual]

Lock the logging interface: locks mutex_.

Reimplemented from OSB_APP::FileLogBase.

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

Prevent assignment: not implemented.

void OSB_APP::FileLockLog::unlock (  )  const [private, virtual]

Unlock the logging interface: unlocks mutex_.

Reimplemented from OSB_APP::FileLogBase.


Member Data Documentation

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

Mutex to lock the log file.

Definition at line 98 of file filelocklog.h.


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