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

CdbBdbNTupleT2P< ELEMENT_CONVERSION_RULES > Class Template Reference

A front-end class for "transient-to-persistent" conversion facility. More...

#include <CdbBdbNTupleT2P.hh>

List of all members.

Static Public Member Functions

template<class T, unsigned int NCOL> CdbStatus convert (ooRef(BdbObject)&thePersRef, const CdbCPtr< CdbNTuple< T, NCOL > > &thePtr, const BdbRefAny &theHintRef)
 Try to convert.


Detailed Description

template<class ELEMENT_CONVERSION_RULES = CdbBdbNTupleConversionRules_UseDefault>
class CdbBdbNTupleT2P< ELEMENT_CONVERSION_RULES >

A front-end class for "transient-to-persistent" conversion facility.

DESCRIPTION:

This class is meant to be used as a primary API for user's code who needs to convert a transient n-tuple into the corresponding persistent form. The convertor's design allows to avoid passing explicit template parameters of (both transient and persistent) n-tuples.

Note that this is a template class having template method(s). The only parameter of the template class is:

ELEMENT_CONVERSION_RULES

which is a policy for user defined element conversion. The policy is meant to help in situations when there is no straight-forward mapping between transient and persistent types of elements, or in cases when a user wishes to pack rather small transient types (bit strings, enums, etc.) into bigger persistent elements.

NOTE: this way of transient-to-persistent and vs. transformation of elements has its own "pros" and "cons".

By default the conversion facility uses default rules for elements conversion. See class's specialization below.

See also:
class CdbNTupleConversionImpl

class CdbBdbNTupleConversionRules_UseDefault

class CdbBdbNTupleConversionRules_Default

Definition at line 41 of file CdbBdbNTupleT2P.hh.


Member Function Documentation

template<class ELEMENT_CONVERSION_RULES = CdbBdbNTupleConversionRules_UseDefault>
template<class T, unsigned int NCOL>
CdbStatus CdbBdbNTupleT2P< ELEMENT_CONVERSION_RULES >::convert ooRef(BdbObject)&    thePersRef,
const CdbCPtr< CdbNTuple< T, NCOL > > &    thePtr,
const BdbRefAny &    theHintRef
[inline, static]
 

Try to convert.

See also:
CdbBdbNTupleConversionImpl::to_persistent()

Definition at line 51 of file CdbBdbNTupleT2P.hh.

References CdbBdbNTupleConversionImpl< T, NCOL, ELEMENT_CONVERSION_RULES >::to_persistent().

Referenced by CdbBdbNTupleFactory< T, NCOL >::doCreate().


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