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

CdbBdb2RooPayloadConversionFwk Class Reference

A simplified interface to the "payload" conversion framework. More...

#include <CdbBdb2RooPayloadConversionFwk.hh>

List of all members.

Static Public Member Functions

bool setVerbose (bool newModeFlag)
 Modify the current value of the "verbose" mode.

bool setDebug (bool newModeFlag)
 Modify the current value of the "debug" mode.

bool setDoNotCompress (bool newModeFlag)
 Modify the current value of the "doNotCompress" mode.

CdbStatus registerConverter (const CdbCPtr< CdbRooConverterBase > &thePtr)
 Register a converter.

CdbStatus registerConverters (const std::vector< CdbCPtr< CdbRooConverterDict > > &theDicts)
CdbStatus testConversion (UShort_t theOriginId, UShort_t theConditionId, bool isPartitionableFlag, UShort_t thePartitionId, UShort_t theClusterId, UShort_t theIncrementId)
 Start a test conversion in a context of the specified MetaData.

CdbStatus testConversion (UShort_t theOriginId, const std::vector< UShort_t > &theConditionId, bool isPartitionableFlag, UShort_t thePartitionId, UShort_t theClusterId, UShort_t theIncrementId)
 Start a test conversion in a context of the specified MetaData.

CdbStatus doConversion (const char *theDefinitionFileName)
 Start the definition file driven conversion.


Detailed Description

A simplified interface to the "payload" conversion framework.

More details...

Definition at line 21 of file CdbBdb2RooPayloadConversionFwk.hh.


Member Function Documentation

CdbStatus CdbBdb2RooPayloadConversionFwk::doConversion const char *    theDefinitionFileName [static]
 

Start the definition file driven conversion.

The method will run the conversion using the specified "defition file" and converters registered using the above defined method. The definition file maps conditions onto persistent classes of the corresponding "payload" objects. Only those conditions whose converters are registered at a time when the conversion start would be converted.

Note, this method will employ both "regular" and "merging" converters. A proper parameterization which converter to use for which condition(s) is done via the definition file.

The operation if successfull will return CdbStatus::Success. Other values will be treated as errors.

See also:
CdbBdb2RooPayloadConversionFwk::registerConverter()

Definition at line 565 of file CdbBdb2RooPayloadConversionFwk.cc.

References CdbStatus::Error, CdbBdb2RooPayloadConvertersDict::findByInputClassName(), CdbRooReadonly::forceLoad(), CdbBdbShared::forceLoad(), CdbDatabase::instance(), CdbCPtr< P, CLOSE_POLICY >::isNull(), and CdbStatus::Success.

Referenced by main().

CdbStatus CdbBdb2RooPayloadConversionFwk::registerConverter const CdbCPtr< CdbRooConverterBase > &    thePtr [static]
 

Register a converter.

The operation if successfull will return CdbStatus::Success. Other values will be treated as errors.

Definition at line 436 of file CdbBdb2RooPayloadConversionFwk.cc.

References CdbBdb2RooPayloadConvertersDict::add(), CdbStatus::IllegalParameters, and CdbCPtr< CdbRooConverterBase >::isNull().

Referenced by main(), and registerConverters().

CdbStatus CdbBdb2RooPayloadConversionFwk::registerConverters const std::vector< CdbCPtr< CdbRooConverterDict > > &    theDicts [static]
 

Definition at line 453 of file CdbBdb2RooPayloadConversionFwk.cc.

References registerConverter(), and CdbStatus::Success.

bool CdbBdb2RooPayloadConversionFwk::setDebug bool    newModeFlag [static]
 

Modify the current value of the "debug" mode.

The method will also return the previous value of the mode.

Definition at line 420 of file CdbBdb2RooPayloadConversionFwk.cc.

Referenced by main().

bool CdbBdb2RooPayloadConversionFwk::setDoNotCompress bool    newModeFlag [static]
 

Modify the current value of the "doNotCompress" mode.

The method will also return the previous value of the mode.

Definition at line 428 of file CdbBdb2RooPayloadConversionFwk.cc.

Referenced by main().

bool CdbBdb2RooPayloadConversionFwk::setVerbose bool    newModeFlag [static]
 

Modify the current value of the "verbose" mode.

The method will also return the previous value of the mode.

Definition at line 412 of file CdbBdb2RooPayloadConversionFwk.cc.

Referenced by main().

CdbStatus CdbBdb2RooPayloadConversionFwk::testConversion UShort_t    theOriginId,
const std::vector< UShort_t > &    theConditionId,
bool    isPartitionableFlag,
UShort_t    thePartitionId,
UShort_t    theClusterId,
UShort_t    theIncrementId
[static]
 

Start a test conversion in a context of the specified MetaData.

Test using the "merging" (as opposed to "regular") converters.

Definition at line 520 of file CdbBdb2RooPayloadConversionFwk.cc.

References CdbRooReadonly::forceLoad(), and CdbBdbShared::forceLoad().

CdbStatus CdbBdb2RooPayloadConversionFwk::testConversion UShort_t    theOriginId,
UShort_t    theConditionId,
bool    isPartitionableFlag,
UShort_t    thePartitionId,
UShort_t    theClusterId,
UShort_t    theIncrementId
[static]
 

Start a test conversion in a context of the specified MetaData.

Test using the "regular" (as opposed to "merging") converters.

Definition at line 475 of file CdbBdb2RooPayloadConversionFwk.cc.

References CdbRooReadonly::forceLoad(), and CdbBdbShared::forceLoad().

Referenced by main().


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