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

CdbTranslatorsDictBase Class Reference

A base interface for a dictionary fo user defined translators. More...

#include <CdbTranslatorsDictBase.hh>

Inheritance diagram for CdbTranslatorsDictBase:

CdbTranslatorsDict List of all members.

Public Member Functions

virtual ~CdbTranslatorsDictBase ()
 The destructor.

virtual CdbStatus add (const CdbCPtr< CdbObjectTranslator > &theTranslatorPtr)=0
 Add a translator.

virtual CdbCPtr< CdbObjectTranslatorfind (unsigned int theTranseintTypeId, const std::string &thePersistentTypeName) const=0
 Find a translator by the specified keys.


Detailed Description

A base interface for a dictionary fo user defined translators.

The dictionary manages user defined translators for "persistent-to-transient" transformation.

Notes on the dictionary use:

1. It's expected that there is a unique one-to-one correspondance between persistent and transient classes. This policy will be enforced by the "add()" method of the dictionary.

2. Translators are indexed by mean of two keys:

a transient class's identifier (produced using the CdbType2Id class) a persistent class's name

See also:
class CdbType2Id

class CdbObjectTranslator

Definition at line 32 of file CdbTranslatorsDictBase.hh.


Constructor & Destructor Documentation

virtual CdbTranslatorsDictBase::~CdbTranslatorsDictBase   [inline, virtual]
 

The destructor.

Definition at line 38 of file CdbTranslatorsDictBase.hh.


Member Function Documentation

virtual CdbStatus CdbTranslatorsDictBase::add const CdbCPtr< CdbObjectTranslator > &    theTranslatorPtr [pure virtual]
 

Add a translator.

See also:
class CdbObjectTranslator

Implemented in CdbTranslatorsDict.

virtual CdbCPtr< CdbObjectTranslator > CdbTranslatorsDictBase::find unsigned int    theTranseintTypeId,
const std::string &    thePersistentTypeName
const [pure virtual]
 

Find a translator by the specified keys.

The method will return a pointer on the translator or 0 if no object matching the specified name is found.

See also:
class CdbObjectTranslator

Implemented in CdbTranslatorsDict.


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