OFFIS DCMTK  Version 3.6.0
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
log4cplus::spi::ObjectRegistryBase Class Referenceabstract

This is the base class used to implement the functionality required by the ObjectRegistry template class. More...

Inheritance diagram for log4cplus::spi::ObjectRegistryBase:
[legend]
Collaboration diagram for log4cplus::spi::ObjectRegistryBase:
[legend]

Public Member Functions

bool exists (const log4cplus::tstring &name) const
 Tests to see whether or not an object is bound in the registry as name.
 
OFList< log4cplus::tstringgetAllNames () const
 Returns the names of all registered objects.
 

Protected Types

typedef OFMap
< log4cplus::tstring, void * > 
ObjectMap
 

Protected Member Functions

bool putVal (const log4cplus::tstring &name, void *object)
 Used to enter an object into the registry.
 
void * getVal (const log4cplus::tstring &name) const
 Used to retrieve an object from the registry.
 
virtual void deleteObject (void *object) const =0
 Deletes object.
 
virtual void clear ()
 Deletes all objects from this registry.
 

Protected Attributes

LOG4CPLUS_MUTEX_PTR_DECLARE mutex
 
ObjectMap data
 

Detailed Description

This is the base class used to implement the functionality required by the ObjectRegistry template class.

Definition at line 43 of file objreg.h.

Member Function Documentation

void* log4cplus::spi::ObjectRegistryBase::getVal ( const log4cplus::tstring name) const
protected

Used to retrieve an object from the registry.

(The registry owns the returned pointer.)

bool log4cplus::spi::ObjectRegistryBase::putVal ( const log4cplus::tstring name,
void *  object 
)
protected

Used to enter an object into the registry.

(The registry now owns object.)


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


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2