![]() |
The Gaudi Framework
v26r0
|
#include <GaudiKernel/IConversionSvc.h>


Public Types | |
| enum | Status { CONVERSIONSVC_NO_ERROR = ICONVERSIONSVC_LAST_ERROR+1, NO_CONVERTER } |
| Status code definitions. More... | |
Public Types inherited from IConverter | |
| enum | Status { INVALID_ADDRESS = IInterface::LAST_ERROR+1, INVALID_OBJECT, NO_MEMORY, BAD_STORAGE_TYPE, NO_SOURCE_OBJECT, ICONVERSIONSVC_LAST_ERROR } |
| Status code. More... | |
Public Types inherited from IInterface | |
| enum | Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR } |
| Return status. More... | |
| typedef Gaudi::InterfaceId < IInterface, 0, 0 > | iid |
| Interface ID. More... | |
| typedef mpl::set1< iid > | ext_iids |
| Extra interfaces. More... | |
Public Member Functions | |
| DeclareInterfaceID (IConversionSvc, 4, 0) | |
| InterfaceID. More... | |
| virtual StatusCode | addConverter (IConverter *pConverter)=0 |
| Add converter object to conversion service. More... | |
| virtual StatusCode | addConverter (const CLID &clid)=0 |
| Add converter object to conversion service. More... | |
| virtual StatusCode | removeConverter (const CLID &clid)=0 |
| Remove converter object from conversion service (if present). More... | |
| virtual IConverter * | converter (const CLID &clid)=0 |
| Retrieve converter from list. More... | |
| virtual StatusCode | connectOutput (const std::string &outputFile)=0 |
| Connect the output file to the service. More... | |
| virtual StatusCode | connectOutput (const std::string &outputFile, const std::string &openMode)=0 |
| Connect the output file to the service with open mode. More... | |
| virtual StatusCode | commitOutput (const std::string &outputFile, bool do_commit)=0 |
| Commit pending output. More... | |
| virtual | ~IConversionSvc () |
| Virtual destructor. More... | |
Public Member Functions inherited from IConverter | |
| DeclareInterfaceID (IConverter, 3, 0) | |
| InterfaceID. More... | |
| virtual StatusCode | initialize ()=0 |
| Initialize the converter. More... | |
| virtual StatusCode | finalize ()=0 |
| Terminate the converter. More... | |
| virtual const CLID & | objType () const =0 |
| Retrieve the class type of objects the converter produces. More... | |
| virtual long | repSvcType () const =0 |
| Retrieve the class type of the data store the converter uses. More... | |
| virtual StatusCode | setDataProvider (IDataProviderSvc *pService)=0 |
| Set Data provider service. More... | |
| virtual SmartIF < IDataProviderSvc > & | dataProvider () const =0 |
| Get Data provider service. More... | |
| virtual StatusCode | setConversionSvc (IConversionSvc *pService)=0 |
| Set conversion service the converter is connected to. More... | |
| virtual SmartIF< IConversionSvc > & | conversionSvc () const =0 |
| Get conversion service the converter is connected to. More... | |
| virtual StatusCode | setAddressCreator (IAddressCreator *creator)=0 |
| Set address creator facility. More... | |
| virtual SmartIF < IAddressCreator > & | addressCreator () const =0 |
| Get address creation interface needed to resolve links between objects. More... | |
| virtual StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject)=0 |
| Create the transient representation of an object. More... | |
| virtual StatusCode | fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject)=0 |
| Resolve the references of the created transient object. More... | |
| virtual StatusCode | updateObj (IOpaqueAddress *pAddress, DataObject *refpObject)=0 |
| Update the transient object from the other representation. More... | |
| virtual StatusCode | updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject)=0 |
| Update the references of an updated transient object. More... | |
| virtual StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress)=0 |
| Convert the transient object to the requested representation. More... | |
| virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject)=0 |
| Resolve the references of the converted object. More... | |
| virtual StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject)=0 |
| Update the converted representation of a transient object. More... | |
| virtual StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject)=0 |
| Update the references of an already converted object. More... | |
| virtual | ~IConverter () |
| Virtual destructor. More... | |
Public Member Functions inherited from IInterface | |
| virtual void * | i_cast (const InterfaceID &) const =0 |
| main cast function More... | |
| virtual std::vector< std::string > | getInterfaceNames () const =0 |
| Returns a vector of strings containing the names of all the implemented interfaces. More... | |
| virtual unsigned long | addRef ()=0 |
| Increment the reference count of Interface instance. More... | |
| virtual unsigned long | release ()=0 |
| Release Interface instance. More... | |
| virtual unsigned long | refCount () const =0 |
| Current reference count. More... | |
| virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp)=0 |
| Set the void** to the pointer to the requested interface of the instance. More... | |
| virtual | ~IInterface () |
| Virtual destructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IInterface | |
| static const InterfaceID & | interfaceID () |
| Return an instance of InterfaceID identifying the interface. More... | |
The conversion service interface allows to:
Definition at line 37 of file IConversionSvc.h.
Status code definitions.
| Enumerator | |
|---|---|
| CONVERSIONSVC_NO_ERROR |
Success. |
| NO_CONVERTER |
No proper converter is available to the service. |
Definition at line 97 of file IConversionSvc.h.
|
inlinevirtual |
|
pure virtual |
Add converter object to conversion service.
| pConverter | Pointer to converter object |
Implemented in PersistencySvc, and ConversionSvc.
|
pure virtual |
Add converter object to conversion service.
| clid | Class ID of the converter needed |
Implemented in PersistencySvc, and ConversionSvc.
|
pure virtual |
Commit pending output.
| outputFile | String containing output file |
| do_commit | if true commit the output and flush eventually pending items to the database if false, discard pending buffers. Note: The possibility to commit or roll-back depends on the database technology used! |
Implemented in PersistencySvc, ConversionSvc, and Gaudi::RootCnvSvc.
|
pure virtual |
Connect the output file to the service.
| outputFile | String containing output file |
Implemented in PersistencySvc, ConversionSvc, and Gaudi::RootCnvSvc.
|
pure virtual |
Connect the output file to the service with open mode.
| outputFile | String containing output file |
| openMode | String containing opening mode of the output file |
Implemented in PersistencySvc, ConversionSvc, and Gaudi::RootCnvSvc.
|
pure virtual |
Retrieve converter from list.
| clid | the clid of the converter |
Implemented in PersistencySvc, and ConversionSvc.
| IConversionSvc::DeclareInterfaceID | ( | IConversionSvc | , |
| 4 | , | ||
| 0 | |||
| ) |
|
pure virtual |
Remove converter object from conversion service (if present).
The converter is defined by the class type of the objects created.
| clid | Class ID of the converter |
Implemented in PersistencySvc, and ConversionSvc.