The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
Gaudi::RootConverter Class Reference

Description: Definition of the ROOT data converter. More...

#include <Root/RootConverter.h>

Inheritance diagram for Gaudi::RootConverter:
Collaboration diagram for Gaudi::RootConverter:

Public Member Functions

 RootConverter (long typ, const CLID &clid, ISvcLocator *svc, RootCnvSvc *mgr)
 Initializing Constructor.
 
long repSvcType () const override
 Retrieve the class type of the data store the converter uses.
 
StatusCode createObj (IOpaqueAddress *pAddr, DataObject *&refpObj) override
 Converter overrides: Create transient object from persistent data.
 
StatusCode fillObjRefs (IOpaqueAddress *pAddr, DataObject *pObj) override
 Resolve the references of the created transient object.
 
StatusCode createRep (DataObject *pObj, IOpaqueAddress *&refpAddr) override
 Converter overrides: Convert the transient object to the requested representation.
 
StatusCode fillRepRefs (IOpaqueAddress *pAddr, DataObject *pObj) override
 Resolve the references of the created transient object.
 
- Public Member Functions inherited from Converter
StatusCode initialize () override
 Initialize the converter.
 
StatusCode finalize () override
 Initialize the converter.
 
StatusCode setDataProvider (IDataProviderSvc *svc) override
 Set Data provider service.
 
SmartIF< IDataProviderSvc > & dataProvider () const override
 Get Data provider service.
 
StatusCode setConversionSvc (IConversionSvc *svc) override
 Set conversion service the converter is connected to.
 
SmartIF< IConversionSvc > & conversionSvc () const override
 Get conversion service the converter is connected to.
 
StatusCode setAddressCreator (IAddressCreator *creator) override
 Set address creator facility.
 
SmartIF< IAddressCreator > & addressCreator () const override
 Retrieve address creator facility.
 
const CLIDobjType () const override
 Retrieve the class type of objects the converter produces.
 
virtual long i_repSvcType () const
 Retrieve the class type of the data store the converter uses.
 
StatusCode createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) override
 Create the transient representation of an object.
 
StatusCode fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) override
 Resolve the references of the created transient object.
 
StatusCode updateObj (IOpaqueAddress *pAddress, DataObject *refpObject) override
 Update the transient object from the other representation.
 
StatusCode updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) override
 Update the references of an updated transient object.
 
StatusCode createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) override
 Convert the transient object to the requested representation.
 
StatusCode fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) override
 Resolve the references of the converted object.
 
StatusCode updateRep (IOpaqueAddress *pAddress, DataObject *pObject) override
 Update the converted representation of a transient object.
 
StatusCode updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) override
 Update the references of an already converted object.
 
 Converter (long storage_type, const CLID &class_type, ISvcLocator *svc=0)
 Standard Constructor.
 
SmartIF< IServiceservice (const std::string &name, const bool createIf=true) const
 Return a pointer to the service identified by name (or "type/name")
 
- Public Member Functions inherited from implements< IConverter >
void const * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast.
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface.
 
std::vector< std::string > getInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames.
 
 implements ()=default
 Default constructor.
 
 implements (const implements &)
 Copy constructor (zero the reference count)
 
implementsoperator= (const implements &)
 Assignment operator (do not touch the reference count).
 
unsigned long addRef () const override
 Reference Interface instance.
 
unsigned long release () const override
 Release Interface instance.
 
unsigned long refCount () const override
 Current reference count.
 

Protected Attributes

RootCnvSvcm_dbMgr
 Conversion service needed for proper operation to forward requests.
 
- Protected Attributes inherited from implements< IConverter >
std::atomic_ulong m_refCount
 Reference counter.
 

Additional Inherited Members

- Public Types inherited from Converter
using Factory = Gaudi::PluginService::Factory<IConverter*( ISvcLocator* )>
 
- Public Types inherited from implements< IConverter >
using base_class
 Typedef to this class.
 
using extend_interfaces_base
 Typedef to the base of this class.
 
using iids
 
- Public Types inherited from extend_interfaces< Interfaces... >
using ext_iids
 take union of the ext_iids of all Interfaces...
 
- Protected Member Functions inherited from Converter
SmartIF< ISvcLocator > & serviceLocator () const
 Retrieve pointer to service locator.
 
SmartIF< IMessageSvc > & msgSvc () const
 Retrieve pointer to message service.
 
SmartIF< IDataManagerSvc > & dataManager () const
 Get Data Manager service.
 
- Protected Member Functions inherited from implements< IConverter >
unsigned long decRef () const override
 

Detailed Description

Description: Definition of the ROOT data converter.

The generic data converter provides the infrastructure of all data converters. All actions are delegated to the corresponding conversion service.

For a detailed description of the overridden function see the the base class.

Author
M.Frank
Version
1.0

Definition at line 41 of file RootConverter.h.

Constructor & Destructor Documentation

◆ RootConverter()

Gaudi::RootConverter::RootConverter ( long typ,
const CLID & clid,
ISvcLocator * svc,
RootCnvSvc * mgr )
inline

Initializing Constructor.

Parameters
typ[IN] Concrete storage type of the converter
clid[IN] Class identifier of the object
svc[IN] Pointer to service locator object
Returns
Reference to RootConverter object

Definition at line 54 of file RootConverter.h.

55 : Converter( typ, clid, svc ), m_dbMgr( mgr ) {}
Converter(long storage_type, const CLID &class_type, ISvcLocator *svc=0)
Standard Constructor.
RootCnvSvc * m_dbMgr
Conversion service needed for proper operation to forward requests.

Member Function Documentation

◆ createObj()

StatusCode Gaudi::RootConverter::createObj ( IOpaqueAddress * pAddr,
DataObject *& refpObj )
inlineoverride

Converter overrides: Create transient object from persistent data.

Parameters
pAddr[IN] Pointer to object address.
refpObj[OUT] Location to pointer to store data object
Returns
Status code indicating success or failure.

Definition at line 67 of file RootConverter.h.

67 {
68 return m_dbMgr->i__createObj( pAddr, refpObj );
69 }

◆ createRep()

StatusCode Gaudi::RootConverter::createRep ( DataObject * pObj,
IOpaqueAddress *& refpAddr )
inlineoverride

Converter overrides: Convert the transient object to the requested representation.

Parameters
pObj[IN] Pointer to data object
refpAddr[OUT] Location to store pointer to object address.
Returns
Status code indicating success or failure.

Definition at line 90 of file RootConverter.h.

90 {
91 return m_dbMgr->i__createRep( pObj, refpAddr );
92 }

◆ fillObjRefs()

StatusCode Gaudi::RootConverter::fillObjRefs ( IOpaqueAddress * pAddr,
DataObject * pObj )
inlineoverride

Resolve the references of the created transient object.

Parameters
pAddr[IN] Pointer to object address.
pObj[IN] Pointer to data object
Returns
Status code indicating success or failure.

Definition at line 78 of file RootConverter.h.

78 {
79 return m_dbMgr->i__fillObjRefs( pAddr, pObj );
80 }

◆ fillRepRefs()

StatusCode Gaudi::RootConverter::fillRepRefs ( IOpaqueAddress * pAddr,
DataObject * pObj )
inlineoverride

Resolve the references of the created transient object.

Parameters
pAddr[IN] Pointer to object address.
pObj[IN] Pointer to data object
Returns
Status code indicating success or failure.

Definition at line 101 of file RootConverter.h.

101 {
102 return m_dbMgr->i__fillRepRefs( pAddr, pObj );
103 }

◆ repSvcType()

long Gaudi::RootConverter::repSvcType ( ) const
inlineoverride

Retrieve the class type of the data store the converter uses.

Definition at line 58 of file RootConverter.h.

58{ return i_repSvcType(); }
virtual long i_repSvcType() const
Retrieve the class type of the data store the converter uses.
Definition Converter.cpp:25

Member Data Documentation

◆ m_dbMgr

RootCnvSvc* Gaudi::RootConverter::m_dbMgr
protected

Conversion service needed for proper operation to forward requests.

Definition at line 44 of file RootConverter.h.


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