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

CdbBdbNTupleProxy< T, NCOL > Class Template Reference

A proxy class for transient N-Tuples. More...

#include <CdbBdbNTupleProxy.hh>

Inheritance diagram for CdbBdbNTupleProxy< T, NCOL >:

CdbBdbProxyBase< CdbCPtr< CdbNTuple< T, NCOL > > > IfdDataProxyTemplate< CdbCPtr< CdbNTuple< T, NCOL > >> CdbBdbProxyCache List of all members.

Public Member Functions

 CdbBdbNTupleProxy (const char *theConditionPathName, BdbCondDefStrategy *theStrategy=0)
 The normal and default constructor.

virtual ~CdbBdbNTupleProxy ()
 The destructor.


Protected Member Functions

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


Detailed Description

template<class T, unsigned int NCOL>
class CdbBdbNTupleProxy< T, NCOL >

A proxy class for transient N-Tuples.

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 which are the same as in case of CdbNTuple class.

T - is a transient class representing a type of elements of N-Tuple NCOL - is a number of columns in the N-Tuple

The proxy would return a pointer of the CdbNTuple<T,NCOL> class.

NOTE: The product is not a value of the smart pointer CdbCPtr< CdbNTuple< T, NCOL > > as it's common in CDB API.

Definition at line 28 of file CdbBdbNTupleProxy.hh.


Constructor & Destructor Documentation

template<class T, unsigned int NCOL>
CdbBdbNTupleProxy< T, NCOL >::CdbBdbNTupleProxy const char *    theConditionPathName,
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 21 of file CdbBdbNTupleProxy.cc.

References CdbBdbProxyCache::subscribeCondition().

template<class T, unsigned int NCOL>
CdbBdbNTupleProxy< T, NCOL >::~CdbBdbNTupleProxy   [virtual]
 

The destructor.

Definition at line 31 of file CdbBdbNTupleProxy.cc.


Member Function Documentation

template<class T, unsigned int NCOL>
CdbCPtr< CdbNTuple< T, NCOL > > * CdbBdbNTupleProxy< T, NCOL >::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< CdbCPtr< CdbNTuple< T, NCOL > > >.

Definition at line 36 of file CdbBdbNTupleProxy.cc.

References BdbRef(), CdbBdbNTupleP2T< ELEMENT_CONVERSION_RULES >::convert(), and CdbStatus::Success.


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