#include <CdbBdbNTupleT2P.hh>
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. | |
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.
Definition at line 41 of file CdbBdbNTupleT2P.hh.
|
||||||||||||||||||||||||
|
Try to convert.
Definition at line 51 of file CdbBdbNTupleT2P.hh. References CdbBdbNTupleConversionImpl< T, NCOL, ELEMENT_CONVERSION_RULES >::to_persistent(). Referenced by CdbBdbNTupleFactory< T, NCOL >::doCreate(). |
1.3-rc3