#include <objectregistry.h>
Inheritance diagram for log4cplus::spi::ObjectRegistryBase:
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 . | |
std::vector< log4cplus::tstring > | getAllNames () const |
Returns the names of all registered objects. | |
Protected Types | |
typedef std::map< log4cplus::tstring, void * > | ObjectMap |
Protected Member Functions | |
ObjectRegistryBase () | |
virtual | ~ObjectRegistryBase () |
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 |
Definition at line 34 of file objectregistry.h.
|
Definition at line 77 of file objectregistry.h. |
|
|
|
|
|
Deletes all objects from this registry.
|
|
Deletes
Implemented in log4cplus::spi::FactoryRegistry< T >. |
|
Tests to see whether or not an object is bound in the registry as
|
|
Returns the names of all registered objects.
|
|
Used to retrieve an object from the registry. (The registry owns the returned pointer.) |
|
Used to enter an object into the registry.
(The registry now owns |
|
Definition at line 81 of file objectregistry.h. |
|
Definition at line 80 of file objectregistry.h. |