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

CdbRooObjectTranslatorRT< R, T > Class Template Reference

The transient & persistent type specific specialization of persistent-to-transient translators. More...

#include <CdbRooObjectTranslatorRT.hh>

Inheritance diagram for CdbRooObjectTranslatorRT< R, T >:

CdbObjectTranslatorT< T > CdbObjectTranslator CdbRooSimpleTranslator< R, T > List of all members.

Public Member Functions

virtual ~CdbRooObjectTranslatorRT ()
 Destructor.


Protected Member Functions

 CdbRooObjectTranslatorRT ()
 Default constructor.

virtual CdbStatus toTransientRT (T *&theTransientPtr, const CdbCPtr< R > &theObjectPtr) const=0
 Translate into a transient object (persistent & transient type specific translation).


Detailed Description

template<class R, class T>
class CdbRooObjectTranslatorRT< R, T >

The transient & persistent type specific specialization of persistent-to-transient translators.

This class is an element of the "persistent-to-transient" translation facility extending the core CDB API and allowing a better (and more confined) controll over persistency in client applications.

Roles of this class are:

1. to translate an actual persistent type into its name 2. to be a direct base class for concrete persistent-technology translators

See also:
class CdbObjectTranslatorT

Definition at line 26 of file CdbRooObjectTranslatorRT.hh.


Constructor & Destructor Documentation

template<class R, class T>
CdbRooObjectTranslatorRT< R, T >::CdbRooObjectTranslatorRT   [protected]
 

Default constructor.

IMPLEMENTATION NOTES:

The constructor may start a short transaction of none is available yet. The transaction is needed to translate the specified persistent type into its name.

Definition at line 51 of file CdbRooObjectTranslatorRT.cc.

template<class R, class T>
virtual CdbRooObjectTranslatorRT< R, T >::~CdbRooObjectTranslatorRT   [inline, virtual]
 

Destructor.

Definition at line 102 of file CdbRooObjectTranslatorRT.hh.


Member Function Documentation

template<class R, class T>
virtual CdbStatus CdbRooObjectTranslatorRT< R, T >::toTransientRT T *&    theTransientPtr,
const CdbCPtr< R > &    theObjectPtr
const [protected, pure virtual]
 

Translate into a transient object (persistent & transient type specific translation).

This is a redefined version of a similar method CdbObjectTranslatorT::toTransientT() defined in the base class and implemented above. Its role is to force translation procedures of subclasses be written in terms of the specified persistent & transinet types.

The method is supposed to be implemented by subclasses. The method is guaranteed to be called with the correct parameters.

See also:
CdbObjectTranslatorT::toTransientT()
Parameters:
theTransientPtr  the pointer to be initialized with the result
theObjectPtr  the input persistent object

Implemented in CdbRooSimpleTranslator< R, T >.


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