DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Types | Public Member Functions | Protected Member Functions
dcmtk::log4cplus::spi::FactoryRegistry< T > Class Template Reference

This template class is used as a "Factory Registry". More...

+ Inheritance diagram for dcmtk::log4cplus::spi::FactoryRegistry< T >:

List of all members.

Public Types

typedef T product_type

Public Member Functions

bool put (OFauto_ptr< T > object)
 Used to enter an object into the registry.
T * get (const tstring &name) const
 Used to retrieve an object from the registry.

Protected Member Functions

virtual void deleteObject (void *object) const

Detailed Description

template<class T>
class dcmtk::log4cplus::spi::FactoryRegistry< T >

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.


Member Function Documentation

template<class T >
T* dcmtk::log4cplus::spi::FactoryRegistry< T >::get ( const tstring name) const [inline]

Used to retrieve an object from the registry.

(The registry owns the returned pointer.)

template<class T >
bool dcmtk::log4cplus::spi::FactoryRegistry< T >::put ( OFauto_ptr< T >  object) [inline]

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 Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027