 |
log4cplus
2.0.5
|
Go to the documentation of this file.
24 #ifndef LOG4CPLUS_SPI_OBJECT_REGISTRY_HEADER_
25 #define LOG4CPLUS_SPI_OBJECT_REGISTRY_HEADER_
29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
95 typedef std::map<log4cplus::tstring, void*>
ObjectMap;
105 bool volatile locking;
112 #endif // LOG4CPLUS_SPI_OBJECT_REGISTRY_HEADER_
std::basic_string< tchar > tstring
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.
std::vector< log4cplus::tstring > getAllNames() const
Returns the names of all registered objects.
void _enableLocking(bool)
This function is internal implementation detail.
std::map< log4cplus::tstring, void * > ObjectMap
virtual void clear()
Deletes all objects from this registry.
virtual ~ObjectRegistryBase()
bool exists(const log4cplus::tstring &name) const
Tests to see whether or not an object is bound in the registry as name.
This is the base class used to implement the functionality required by the ObjectRegistry template cl...