|
log4cplus
2.0.0
|
This template class is used as a "Factory Registry". More...
#include <factory.h>
Public Types | |
| typedef T | product_type |
Public Member Functions | |
| virtual | ~FactoryRegistry () |
| bool | put (std::unique_ptr< T > object) |
| Used to enter an object into the registry. | |
| T * | get (const log4cplus::tstring &name) const |
| Used to retrieve an object from the registry. | |
Protected Member Functions | |
| virtual void | deleteObject (void *object) const |
Deletes object. | |
This template class is used as a "Factory Registry".
Objects are "entered" into the registry with a "name" using the put() method. (The registry then owns the object.) These object can then be retrieved using the get() method.
Note: This class is Thread-safe.
| typedef T log4cplus::spi::FactoryRegistry< T >::product_type |
| virtual log4cplus::spi::FactoryRegistry< T >::~FactoryRegistry | ( | ) | [inline, virtual] |
| virtual void log4cplus::spi::FactoryRegistry< T >::deleteObject | ( | void * | object | ) | const [inline, protected, virtual] |
Deletes object.
Implements log4cplus::spi::ObjectRegistryBase.
| T* log4cplus::spi::FactoryRegistry< T >::get | ( | const log4cplus::tstring & | name | ) | const [inline] |
| bool log4cplus::spi::FactoryRegistry< T >::put | ( | std::unique_ptr< T > | object | ) | [inline] |
1.7.6.1