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  

BdbConverterScribe Class Reference
[BdbConverters]

#include <BdbConverterScribe.hh>

Inheritance diagram for BdbConverterScribe:

BdbGenericScribe List of all members.

Public Methods

 BdbConverterScribe (BdbAbsConverter *aConverter)
virtual ~BdbConverterScribe ()
bool adaptsConverter (const BdbAbsConverter *aConverter) const
virtual bool isBulk (const BdbAbsPlacementManager &aPlacementManager) const
virtual bool fillRefs ()
virtual bool fillPointers ()
virtual void reset ()

Protected Methods

virtual bool createPersistent (const AbsEvent &aTEvent, const BdbAbsPlacementManager &aPlacementManager, BdbEventT &aPEvent, BdbEvtObjLocReg &aRegistry)
virtual bool createTransient (const BdbEventT &aPEvent, AbsEvent &aTEvent, BdbEvtObjLocReg &aRegistry)

Private Methods

 BdbConverterScribe ()
 BdbConverterScribe (const BdbConverterScribe &aRhs)
const BdbConverterScribe & operator= (const BdbConverterScribe &aRhs)
 BdbRef (BdbEvent) _refsPersistentEvent
 BdbRef (BdbEvent) _pointersPersistentEvent

Private Attributes

BdbAbsConverter_converter
AbsEvent_refsTransientEvent
BdbEvtObjLocReg_refsRegistry
AbsEvent_pointersTransientEvent
BdbEvtObjLocReg_pointersRegistry

Detailed Description

This is the base class for all scribes, and defines the interface which is used by the BdbConversionManager to process all registered scribes.

Definition at line 66 of file BdbConverterScribe.hh.


Constructor & Destructor Documentation

BdbConverterScribe::BdbConverterScribe BdbAbsConverter   aConverter
 

Constructs an instance of this class.

Definition at line 68 of file BdbConverterScribe.cc.

References reset().

BdbConverterScribe::~BdbConverterScribe   [virtual]
 

Destroys this instance.

Definition at line 83 of file BdbConverterScribe.cc.

References _converter.

BdbConverterScribe::BdbConverterScribe   [private]
 

stops default

BdbConverterScribe::BdbConverterScribe const BdbConverterScribe &    aRhs [private]
 

stops default


Member Function Documentation

bool BdbConverterScribe::adaptsConverter const BdbAbsConverter   aConverter const
 

Parameters:
aConverter  BdbAbsCOnverter to be tested
Returns:
true if specified converter is adapted by this instance.

Definition at line 101 of file BdbConverterScribe.cc.

References _converter.

BdbConverterScribe::BdbRef BdbEvent    [private]
 

Cache to hold persistent event for fillPointers call

BdbConverterScribe::BdbRef BdbEvent    [private]
 

Cache to hold persistent event for fillRefs call

Referenced by createPersistent(), createTransient(), and reset().

bool BdbConverterScribe::createPersistent const AbsEvent   aTEvent,
const BdbAbsPlacementManager   aPlacementManager,
BdbEventT   aPEvent,
BdbEvtObjLocReg   aRegistry
[protected, virtual]
 

Create the persistent object which corresponds to the one returned by the TransisentPushPull instance associated with this object.

Parameters:
aTEvent  the transient holding the transient object.
aPlacementManager  the manager to use when creating the persistent object
aPEvent  the persistent event in which to place the persistent object.
aRegistry  the mpping between transient and persistent objects.
Returns:
true if successful convertion, false otherwise.

Implements BdbGenericScribe.

Definition at line 111 of file BdbConverterScribe.cc.

References _converter, _refsRegistry, _refsTransientEvent, BdbAbsConverter::attemptOutput(), BdbRef(), and BdbEventT::getPersistent().

bool BdbConverterScribe::createTransient const BdbEventT   aPEvent,
AbsEvent   aTEvent,
BdbEvtObjLocReg   aRegistry
[protected, virtual]
 

Create the transient object which corresponds to the one returned by the PersistentPushPull instance associated with this object.

Parameters:
aPEvent  the persistent event in which to place the persistent object.
aTEvent  the transient holding the transient object.
aRegistry  the mapping between transient and persistent objects.
Returns:
true if successful convertion, false otherwise.

Implements BdbGenericScribe.

Definition at line 149 of file BdbConverterScribe.cc.

References _converter, _pointersRegistry, _pointersTransientEvent, BdbAbsConverter::attemptInput(), BdbRef(), and BdbEventT::getPersistent().

bool BdbConverterScribe::fillPointers   [virtual]
 

Fill the associations in the transient object which was created by the most recent `createTransient'

Implements BdbGenericScribe.

Definition at line 167 of file BdbConverterScribe.cc.

References _converter, _pointersRegistry, _pointersTransientEvent, and BdbAbsConverter::fillPointers().

bool BdbConverterScribe::fillRefs   [virtual]
 

Fill the associations in the persistent object which was created by the most recent `createPersistent'

Implements BdbGenericScribe.

Definition at line 130 of file BdbConverterScribe.cc.

References _converter, _refsRegistry, _refsTransientEvent, and BdbAbsConverter::fillRefs().

bool BdbConverterScribe::isBulk const BdbAbsPlacementManager   aPlacementManager const [virtual]
 

Is this scribe writing to the bulk?

Implements BdbGenericScribe.

Definition at line 185 of file BdbConverterScribe.cc.

References _converter, and BdbAbsConverter::isBulk().

const BdbConverterScribe& BdbConverterScribe::operator= const BdbConverterScribe &    aRhs [private]
 

stops default

void BdbConverterScribe::reset   [virtual]
 

Returns this instance back ino the state in which it was created.

Reimplemented from BdbGenericScribe.

Definition at line 191 of file BdbConverterScribe.cc.

References _converter, _pointersRegistry, _pointersTransientEvent, _refsRegistry, _refsTransientEvent, BdbRef(), BdbGenericScribe::reset(), and BdbAbsConverter::resetInput().

Referenced by BdbConverterScribe().


Member Data Documentation

BdbAbsConverter* BdbConverterScribe::_converter [private]
 

The BdbAbsConverter being a adapted

Definition at line 184 of file BdbConverterScribe.hh.

Referenced by adaptsConverter(), createPersistent(), createTransient(), fillPointers(), fillRefs(), isBulk(), reset(), and ~BdbConverterScribe().

BdbEvtObjLocReg* BdbConverterScribe::_pointersRegistry [private]
 

Cache to hold persistent event for fillPointers call

Definition at line 204 of file BdbConverterScribe.hh.

Referenced by createTransient(), fillPointers(), and reset().

AbsEvent* BdbConverterScribe::_pointersTransientEvent [private]
 

Definition at line 201 of file BdbConverterScribe.hh.

Referenced by createTransient(), fillPointers(), and reset().

BdbEvtObjLocReg* BdbConverterScribe::_refsRegistry [private]
 

Cache to hold persistent event for fillRefs call

Definition at line 194 of file BdbConverterScribe.hh.

Referenced by createPersistent(), fillRefs(), and reset().

AbsEvent* BdbConverterScribe::_refsTransientEvent [private]
 

Definition at line 191 of file BdbConverterScribe.hh.

Referenced by createPersistent(), fillRefs(), and reset().


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