Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbEnvProxy< T > Class Template Reference

Straightforward implementation for the proxy class. More...

#include <CdbEnvProxy.hh>

Inheritance diagram for CdbEnvProxy< T >:

CdbProxyBase< T > IfdDataProxyTemplate CdbProxyCache List of all members.

Public Member Functions

 CdbEnvProxy (const char *theDetectorName, const char *theConditionName, CdbDefStrategy *theStrategy=0)
 The normal and default constructor.

virtual ~CdbEnvProxy ()
 The destructor.


Protected Member Functions

virtual T * redefinedFaultHandler (const std::vector< CdbProxyElement > &listOfElements)
 The redefined fault handler.


Detailed Description

template<class T>
class CdbEnvProxy< T >

Straightforward implementation for the proxy class.

This is a straightforward 1-to-1 proxy implementation assuming that there is a simple translation from a persistent class to a transient one.

The proxy class is parametrized by mean of one template parameter:

T - is a transient class representing a proxy product

This proxy is using the "persistent-to-transient" translation facility of the CDB API in order to get the transient product. The corresponding converter must be registered with a CDB API implementation used in an application context where an instance of the current proxy is being used.

See also:
class CdbObjectTranslator

Definition at line 27 of file CdbEnvProxy.hh.


Constructor & Destructor Documentation

template<class T>
CdbEnvProxy< T >::CdbEnvProxy const char *    theDetectorName,
const char *    theConditionName,
CdbDefStrategy   theStrategy = 0
 

The normal and default constructor.

The only optional argument of the constructor takes the strategy object for locating GenEnv parameters. If 0 pointer is passed then a default strategy will be enforced.

Note, that the ownreship of the strategy object is also passed to the constructor.

Definition at line 22 of file CdbEnvProxy.cc.

References CdbProxyCache::subscribeCondition().

template<class T>
CdbEnvProxy< T >::~CdbEnvProxy   [virtual]
 

The destructor.

Definition at line 41 of file CdbEnvProxy.cc.


Member Function Documentation

template<class T>
T * CdbEnvProxy< T >::redefinedFaultHandler const std::vector< CdbProxyElement > &    listOfElements [protected, virtual]
 

The redefined fault handler.

Implements the method of a base class.

See also:
CdbProxyBase::redefinedFaultHandler

Implements CdbProxyBase< T >.

Definition at line 46 of file CdbEnvProxy.cc.

References CdbCPtr< CdbObject, CdbDoNotClosePolicy< CdbObject > >::isNull(), CdbStatus::Success, CdbTimeUtils::time2string(), and CdbObject::transient().


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:21 2005 for CDB by doxygen1.3-rc3