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

CdbBdb2RooPayloadConvertersDict Class Reference

The dictionary fo user defined converters. More...

#include <CdbBdb2RooPayloadConvertersDict.hh>

List of all members.

Public Member Functions

 CdbBdb2RooPayloadConvertersDict ()
 The default constructor.

 CdbBdb2RooPayloadConvertersDict (const CdbBdb2RooPayloadConvertersDict &theOther)
 The copy constructor.

virtual ~CdbBdb2RooPayloadConvertersDict ()
 The destructor.

CdbBdb2RooPayloadConvertersDict & operator= (const CdbBdb2RooPayloadConvertersDict &theOther)
 The assignment operator.

virtual CdbStatus add (const CdbCPtr< CdbRooConverterBase > &theConverterPtr)
 Add a converter.

virtual CdbCPtr< CdbRooConverterBasefindByInputClassName (const std::string &theName) const
 Find a converter by the specified "input" class name.

virtual CdbCPtr< CdbRooConverterBasefindByOutputClassName (const std::string &theName) const
 Find a converter by the specified "output" class name.


Detailed Description

The dictionary fo user defined converters.

An object of this class manages a dictionary of user defined converters for pairs of "Bdb" and "Roo" persistent classes. The dictionay is supposed to be prepared before and be used in a course of an actual conversion path.

Notes on the dictionary use:

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

See also:
class CdbRooConverterBase

Definition at line 28 of file CdbBdb2RooPayloadConvertersDict.hh.


Constructor & Destructor Documentation

CdbBdb2RooPayloadConvertersDict::CdbBdb2RooPayloadConvertersDict  
 

The default constructor.

Definition at line 17 of file CdbBdb2RooPayloadConvertersDict.cc.

CdbBdb2RooPayloadConvertersDict::CdbBdb2RooPayloadConvertersDict const CdbBdb2RooPayloadConvertersDict &    theOther
 

The copy constructor.

Definition at line 20 of file CdbBdb2RooPayloadConvertersDict.cc.

CdbBdb2RooPayloadConvertersDict::~CdbBdb2RooPayloadConvertersDict   [virtual]
 

The destructor.

Definition at line 25 of file CdbBdb2RooPayloadConvertersDict.cc.


Member Function Documentation

CdbStatus CdbBdb2RooPayloadConvertersDict::add const CdbCPtr< CdbRooConverterBase > &    theConverterPtr [virtual]
 

Add a converter.

Definition at line 39 of file CdbBdb2RooPayloadConvertersDict.cc.

References CdbStatus::Error, findByInputClassName(), findByOutputClassName(), CdbStatus::IllegalParameters, CdbCPtr< CdbRooConverterBase >::isNull(), and CdbStatus::Success.

Referenced by CdbBdb2RooPayloadConversionFwk::registerConverter().

CdbCPtr< CdbRooConverterBase > CdbBdb2RooPayloadConvertersDict::findByInputClassName const std::string &    theName const [virtual]
 

Find a converter by the specified "input" class name.

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

Definition at line 58 of file CdbBdb2RooPayloadConvertersDict.cc.

Referenced by add(), and CdbBdb2RooPayloadConversionFwk::doConversion().

CdbCPtr< CdbRooConverterBase > CdbBdb2RooPayloadConvertersDict::findByOutputClassName const std::string &    theName const [virtual]
 

Find a converter by the specified "output" class name.

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

Definition at line 67 of file CdbBdb2RooPayloadConvertersDict.cc.

Referenced by add().

CdbBdb2RooPayloadConvertersDict & CdbBdb2RooPayloadConvertersDict::operator= const CdbBdb2RooPayloadConvertersDict &    theOther
 

The assignment operator.

Definition at line 29 of file CdbBdb2RooPayloadConvertersDict.cc.

References _byInputClassName, and _byOutputClassName.


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