Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

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

BdbAbsConverter Class Reference
[BdbConverters]

#include <BdbAbsConverter.hh>

Inheritance diagram for BdbAbsConverter:

BdbItemFactoryConverter< T, TP > BdbItemFactoryConverter< HepAList< T >, BdbRWVector< TP > > BdbItemFactoryConverter< HepAList< T >, TP > BdbTagConverter BdbItemConverter< T, TP > BdbAListFactoryConverter< T, TP > BdbCompositeConverter< T, TP > BdbAListConverter< T, TP > List of all members.

Public Methods

 BdbAbsConverter (const IfdKey &key, const std::string &tree, const std::string &placement)
virtual ~BdbAbsConverter ()
virtual bool attemptInput (AbsEvent *, BdbEvtObjLocReg &, BdbEventT &)
virtual bool fillPointers (AbsEvent *, BdbEvtObjLocReg &, BdbEventT &) const=0
virtual bool attemptOutput (AbsEvent *, BdbEvtObjLocReg &, BdbEventT &, BdbAbsPlacementManager &)
virtual bool fillRefs (AbsEvent *, BdbEvtObjLocReg &, BdbEventT &) const=0
unsigned int setTransientWarningLimit (unsigned int aLimit)
unsigned int setPersistentWarningLimit (unsigned int aLimit)
unsigned int numberTransientsMissed () const
unsigned int numberPersistentsMissed () const
bool operator== (const BdbAbsConverter &a) const
virtual bool isBulk (const BdbAbsPlacementManager &) const
virtual void resetInput ()

Protected Methods

virtual bool input (AbsEvent *, BdbEvtObjLocReg &, BdbEventT &) const=0
virtual bool output (AbsEvent *, BdbEvtObjLocReg &, BdbEventT &) const=0
virtual BdbTreeHdrT findHeader (BdbEventT &inEvent) const
virtual BdbTreeHdrT getHeader (BdbEventT &inEvent) const
virtual std::vector< BdbRefAny > & getPolicy () const
virtual BdbRefAny & getPrimaryHint () const
virtual int numberOfHintsRequired () const=0
virtual const IfdKey & eventKey () const
virtual const char * headerKey () const
bool issueTransientWarning () const
bool issuePersistentWarning () const
void missingTransient ()
void missingPersistent ()

Private Attributes

IfdKey * _eventKey
std::string * _placement
IfdStrKey * _placementKey
std::string * _header
IfdStrKey * _headerHintKey
bool _inputDone
BdbAbsPlacementManager_placementManager
std::vector< BdbRefAny > * _hintCache
unsigned int _missingTransientCount
unsigned int _missingPersistentCount
unsigned int _transientWarningLimit
unsigned int _persistentWarningLimit

Constructor & Destructor Documentation

BdbAbsConverter::BdbAbsConverter const IfdKey &    key,
const std::string &    tree,
const std::string &    placement
 

Definition at line 73 of file BdbAbsConverter.cc.

References _header, _placement, and false.

BdbAbsConverter::~BdbAbsConverter   [virtual]
 

Definition at line 95 of file BdbAbsConverter.cc.

References _eventKey, _header, _hintCache, and _placement.


Member Function Documentation

bool BdbAbsConverter::attemptInput AbsEvent  ,
BdbEvtObjLocReg  ,
BdbEventT  
[virtual]
 

Definition at line 125 of file BdbAbsConverter.cc.

References _inputDone, and input().

Referenced by BdbConverterScribe::createTransient().

bool BdbAbsConverter::attemptOutput AbsEvent  ,
BdbEvtObjLocReg  ,
BdbEventT  ,
BdbAbsPlacementManager  
[virtual]
 

Definition at line 139 of file BdbAbsConverter.cc.

References _placementManager.

Referenced by BdbConverterScribe::createPersistent().

const IfdKey & BdbAbsConverter::eventKey   [protected, virtual]
 

Definition at line 255 of file BdbAbsConverter.cc.

References _eventKey.

Referenced by BdbItemFactoryConverter< T, TP >::input(), and BdbItemFactoryConverter< T, TP >::output().

virtual bool BdbAbsConverter::fillPointers AbsEvent  ,
BdbEvtObjLocReg  ,
BdbEventT  
const [pure virtual]
 

Implemented in BdbItemFactoryConverter< T, TP >, BdbTagConverter, BdbItemFactoryConverter< HepAList< T >, BdbRWVector< TP > >, and BdbItemFactoryConverter< HepAList< T >, TP >.

Referenced by BdbConverterScribe::fillPointers().

virtual bool BdbAbsConverter::fillRefs AbsEvent  ,
BdbEvtObjLocReg  ,
BdbEventT  
const [pure virtual]
 

Implemented in BdbItemFactoryConverter< T, TP >, BdbTagConverter, BdbItemFactoryConverter< HepAList< T >, BdbRWVector< TP > >, and BdbItemFactoryConverter< HepAList< T >, TP >.

Referenced by BdbConverterScribe::fillRefs().

BdbTreeHdrT BdbAbsConverter::findHeader BdbEventT   inEvent const [protected, virtual]
 

Definition at line 217 of file BdbAbsConverter.cc.

References _header, and BdbPersPushPullUtility::findHeader().

BdbTreeHdrT BdbAbsConverter::getHeader BdbEventT   inEvent const [protected, virtual]
 

Definition at line 224 of file BdbAbsConverter.cc.

References _header, _placementManager, and BdbPersPushPullUtility::getHeader().

std::vector< BdbRefAny > & BdbAbsConverter::getPolicy   [protected, virtual]
 

Definition at line 233 of file BdbAbsConverter.cc.

References _hintCache, _placement, _placementManager, BdbSupplierUtility::getPolicy(), and numberOfHintsRequired().

Referenced by getPrimaryHint(), and BdbItemFactoryConverter< T, TP >::output().

BdbRefAny & BdbAbsConverter::getPrimaryHint   [protected, virtual]
 

Definition at line 249 of file BdbAbsConverter.cc.

References getPolicy().

const char * BdbAbsConverter::headerKey   [protected, virtual]
 

Definition at line 261 of file BdbAbsConverter.cc.

References _eventKey.

virtual bool BdbAbsConverter::input AbsEvent  ,
BdbEvtObjLocReg  ,
BdbEventT  
const [protected, pure virtual]
 

Implemented in BdbItemFactoryConverter< T, TP >, BdbTagConverter, BdbItemFactoryConverter< HepAList< T >, BdbRWVector< TP > >, and BdbItemFactoryConverter< HepAList< T >, TP >.

Referenced by attemptInput().

bool BdbAbsConverter::isBulk const BdbAbsPlacementManager   const [virtual]
 

Definition at line 115 of file BdbAbsConverter.cc.

References _placement, and BdbAbsPlacementManager::isBulk().

Referenced by BdbConverterScribe::isBulk().

bool BdbAbsConverter::issuePersistentWarning   [protected]
 

Returns:
true is mising persistent warning should be issued

Definition at line 211 of file BdbAbsConverter.cc.

References _missingPersistentCount, and _persistentWarningLimit.

Referenced by BdbItemFactoryConverter< T, TP >::input().

bool BdbAbsConverter::issueTransientWarning   [protected]
 

Returns:
true is mising transient warning should be issued

Definition at line 205 of file BdbAbsConverter.cc.

References _missingTransientCount, and _transientWarningLimit.

Referenced by BdbItemFactoryConverter< T, TP >::output().

void BdbAbsConverter::missingPersistent   [protected]
 

Record that a conversion has fail due to a missing persistent.

Definition at line 171 of file BdbAbsConverter.cc.

References _missingPersistentCount.

void BdbAbsConverter::missingTransient   [protected]
 

Record that a conversion has fail due to a missing transient.

Definition at line 165 of file BdbAbsConverter.cc.

References _missingTransientCount.

virtual int BdbAbsConverter::numberOfHintsRequired   [protected, pure virtual]
 

Implemented in BdbItemFactoryConverter< T, TP >, BdbTagConverter, BdbItemFactoryConverter< HepAList< T >, BdbRWVector< TP > >, and BdbItemFactoryConverter< HepAList< T >, TP >.

Referenced by getPolicy().

unsigned int BdbAbsConverter::numberPersistentsMissed  
 

Returns:
the number of conversions failed due to missing persistent.

Definition at line 183 of file BdbAbsConverter.cc.

unsigned int BdbAbsConverter::numberTransientsMissed  
 

Returns:
the number of conversions failed due to missing transient.

Definition at line 177 of file BdbAbsConverter.cc.

bool BdbAbsConverter::operator== const BdbAbsConverter &    a const [inline]
 

Definition at line 147 of file BdbAbsConverter.hh.

virtual bool BdbAbsConverter::output AbsEvent  ,
BdbEvtObjLocReg  ,
BdbEventT  
const [protected, pure virtual]
 

Implemented in BdbItemFactoryConverter< T, TP >, BdbTagConverter, BdbItemFactoryConverter< HepAList< T >, BdbRWVector< TP > >, and BdbItemFactoryConverter< HepAList< T >, TP >.

void BdbAbsConverter::resetInput   [virtual]
 

Definition at line 151 of file BdbAbsConverter.cc.

References _inputDone.

Referenced by BdbConverterScribe::reset().

unsigned int BdbAbsConverter::setPersistentWarningLimit unsigned int    aLimit
 

Set the number of warnings printed when missing persistents.

Returns:
old value of setting

Definition at line 197 of file BdbAbsConverter.cc.

References _persistentWarningLimit.

unsigned int BdbAbsConverter::setTransientWarningLimit unsigned int    aLimit
 

Set the number of warnings printed when missing transients.

Returns:
old value of setting

Definition at line 189 of file BdbAbsConverter.cc.

References _transientWarningLimit.


Member Data Documentation

IfdKey* BdbAbsConverter::_eventKey [private]
 

Definition at line 211 of file BdbAbsConverter.hh.

Referenced by eventKey(), headerKey(), and ~BdbAbsConverter().

std::string* BdbAbsConverter::_header [private]
 

Definition at line 214 of file BdbAbsConverter.hh.

Referenced by BdbAbsConverter(), findHeader(), getHeader(), and ~BdbAbsConverter().

IfdStrKey* BdbAbsConverter::_headerHintKey [private]
 

Definition at line 215 of file BdbAbsConverter.hh.

std::vector< BdbRefAny >* BdbAbsConverter::_hintCache [private]
 

Definition at line 219 of file BdbAbsConverter.hh.

Referenced by getPolicy(), and ~BdbAbsConverter().

bool BdbAbsConverter::_inputDone [private]
 

Definition at line 216 of file BdbAbsConverter.hh.

Referenced by attemptInput(), and resetInput().

unsigned int BdbAbsConverter::_missingPersistentCount [private]
 

Number of time a conversion has failed due to a missing persistent

Definition at line 238 of file BdbAbsConverter.hh.

Referenced by issuePersistentWarning(), and missingPersistent().

unsigned int BdbAbsConverter::_missingTransientCount [private]
 

Number of time a conversion has failed due to a missing transient

Definition at line 235 of file BdbAbsConverter.hh.

Referenced by issueTransientWarning(), and missingTransient().

unsigned int BdbAbsConverter::_persistentWarningLimit [private]
 

Limit of number of missing persistents which generates a warning

Definition at line 244 of file BdbAbsConverter.hh.

Referenced by issuePersistentWarning(), and setPersistentWarningLimit().

std::string* BdbAbsConverter::_placement [private]
 

Definition at line 212 of file BdbAbsConverter.hh.

Referenced by BdbAbsConverter(), getPolicy(), isBulk(), and ~BdbAbsConverter().

IfdStrKey* BdbAbsConverter::_placementKey [private]
 

Definition at line 213 of file BdbAbsConverter.hh.

BdbAbsPlacementManager* BdbAbsConverter::_placementManager [private]
 

Definition at line 217 of file BdbAbsConverter.hh.

Referenced by attemptOutput(), getHeader(), and getPolicy().

unsigned int BdbAbsConverter::_transientWarningLimit [private]
 

Limit of number of missing transients which generates a warning

Definition at line 241 of file BdbAbsConverter.hh.

Referenced by issueTransientWarning(), and setTransientWarningLimit().


The documentation for this class was generated from the following files:

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002