class UnixFileLogDriver

Class UnixFileLogDriver More...

Full nameLog::UnixFileLogDriver
Definition#include <unixfilelogdriver.h>
InheritsLog::LogDriver [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Private Methods

Private Members


Detailed Description

Class UnixFileLogDriver

UnixfileLogdriver will log into a file, that is not createtd at the moment If several components chose to log in the same file, it will work with this driver UnixFileLogDriver is not thread safe (the whole framework is not)

 ~UnixFileLogDriver ()
throw()

~UnixFileLogDriver

[virtual]

Destructor If _isCloned is false, it will close all descriptors in the FDMap

 UnixFileLogDriver ()
throw (bad_exception)

UnixFileLogDriver

Constructor for the first UnixFileLogDriver object Constructor will register the object by the MRC with the name UnixFileLogDriver

auto_ptr  clone ()
throw (bad_exception)

clone

[const virtual]

Method that is called by the MRC to duplicate the whole object

Reimplemented from LogDriver.

void  logMessage (const string& message)
throw (IOException, bad_exception)

logMessage

[virtual]

Parameters:
messageMessage that will be logged in the file If logger object was not initialized properly, this method will only throw an exception

Reimplemented from LogDriver.

void  setLogDriverParameters (const string& logDriverParameters)
throw (IOException, bad_exception)

setLogDriverParameters

[virtual]

Parameters:
logDriverParametersThe parameter has to be in the form file:filename, for example file:/tmp/foo If the specified file already exists or it cannot be created, this method will throw an exception and the UnixFileLogDriver object will not work. If the file was already opened by another component of the same process, logging will work properly.

Reimplemented from LogDriver.

bool _isCloned

_isCloned

[private]

bool _isInitialized

_isInitialized

[private]

int _fd

_fd

[private]

auto_ptr< map > _rootFDMap

_rootFDMap

[private]

map < long long int, int >* _clonedFDMap

_clonedFDMap

[private]

 UnixFileLogDriver (int isInitialized, int fd, map < long long int, int > *clonedFDMap)
throw ()

UnixFileLogDriver

[private]

Constructor used in the clone Method to create a clone of the current object according to the prototype pattern

long long int  computePosition (const struct stat& statbuf)
throw()

computePosition

[private const]

Computes the position of a file for the index in the map


Generated by: jonico on sc8-pr-shell1.sourceforge.net on Fri May 27 06:03:12 2005, using kdoc 2.0a54.