Public Member Functions | Private Attributes

BulkDataNTDDSLoggable Class Reference

#include <bulkDataNTDDSLoggable.h>

Inheritance diagram for BulkDataNTDDSLoggable:
Inheritance graph
[legend]
Collaboration diagram for BulkDataNTDDSLoggable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BulkDataNTDDSLoggable (const std::string &loggerName)
virtual ~BulkDataNTDDSLoggable ()
void initalizeLogging ()
virtual
Logging::Logger::LoggerSmartPtr 
getLogger ()
 we override getLogger, so that we can initialize logging system if needed

Private Attributes

LoggingProxylogger_mp
unsigned int loggerInitCount_m

Detailed Description

The purpose of this class is to make possible to log from classes that are used by threads created by DDS, where we do not have possibility to do the (per-thread) initialization of the logging system. The class just override getLogger and inside detects if the logging has been already initialized for the thread if not it does the initialization. TBD: at the moment the logs do not go to centralized logger. It has to be added functionality to set centralized logger.


Constructor & Destructor Documentation

BulkDataNTDDSLoggable::BulkDataNTDDSLoggable ( const std::string &  loggerName  )  [inline]
virtual BulkDataNTDDSLoggable::~BulkDataNTDDSLoggable (  )  [virtual]

Member Function Documentation

virtual Logging::Logger::LoggerSmartPtr BulkDataNTDDSLoggable::getLogger (  )  [virtual]

we override getLogger, so that we can initialize logging system if needed

void BulkDataNTDDSLoggable::initalizeLogging (  ) 

it checks if the logging has been initialized for current thread, and if not it initialize it


Member Data Documentation


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