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

CdbBdbEnvProxy< T, P > Class Template Reference

Straightforward implementation for the proxy class. More...

#include <CdbBdbEnvProxy.hh>

Inheritance diagram for CdbBdbEnvProxy< T, P >:

CdbBdbProxyBase< T > IfdDataProxyTemplate CdbBdbProxyCache List of all members.

Public Member Functions

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

virtual ~CdbBdbEnvProxy ()
 The destructor.


Protected Member Functions

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


Detailed Description

template<class T, class P>
class CdbBdbEnvProxy< T, P >

Straightforward implementation for the proxy class.

Class CdbBdbEnvProxy

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

The proxy class is parametrized by mean of two template parameters:

T - is a transient class representing a proxy product P - a persistent class representing a data source

In order to do the "persistent-to-transient" conversion the persistent class 'P' is expected to expose the following minimal interface:

class P : public ... BdbObject { public: T* transient( ) const; };

Comments:

Any incompatibility will be catched during template instantiation time.

Definition at line 48 of file CdbBdbEnvProxy.hh.


Constructor & Destructor Documentation

template<class T, class P>
CdbBdbEnvProxy< T, P >::CdbBdbEnvProxy const char *    theDetectorName,
const char *    theConditionName,
BdbCondDefStrategy *    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 CdbBdbEnvProxy.cc.

References CdbBdbProxyCache::subscribeCondition().

template<class T, class P>
CdbBdbEnvProxy< T, P >::~CdbBdbEnvProxy   [virtual]
 

The destructor.

Definition at line 41 of file CdbBdbEnvProxy.cc.


Member Function Documentation

template<class T, class P>
T * CdbBdbEnvProxy< T, P >::redefinedFaultHandler const std::vector< CdbBdbProxyElement > &    listOfElements [protected, virtual]
 

The redefined fault handler.

Implements the method of a base class.

See also:
CdbBdbProxyBase::redefinedFaultHandler

Implements CdbBdbProxyBase< T >.

Definition at line 46 of file CdbBdbEnvProxy.cc.

References BdbRef(), and CdbTimeUtils::time2string().


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