#include <GaudiKernel/Converter.h>
Inheritance diagram for Converter:
Public Types | |
| INVALID_ADDRESS = IInterface::LAST_ERROR+1 | |
| Invalid address information. | |
| INVALID_OBJECT | |
| Object to be converted is invalid. | |
| NO_MEMORY | |
| No more memory availible. | |
| BAD_STORAGE_TYPE | |
| Invalid storage type. | |
| NO_SOURCE_OBJECT | |
| Error retrieving source data from source store. | |
| ICONVERSIONSVC_LAST_ERROR | |
| Last entry. | |
| enum | Status { INVALID_ADDRESS = IInterface::LAST_ERROR+1, INVALID_OBJECT, NO_MEMORY, BAD_STORAGE_TYPE, NO_SOURCE_OBJECT, ICONVERSIONSVC_LAST_ERROR } |
| Status code. More... | |
| SUCCESS = 1 | |
| Normal successful completion. | |
| NO_INTERFACE | |
| Requested interface is not available. | |
| VERSMISMATCH | |
| Requested interface version is incompatible. | |
| LAST_ERROR | |
| Last error. | |
Public Member Functions | |
| virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvInterface) |
| Query interfaces of Interface. | |
| virtual unsigned long | addRef () |
| Reference Interface instance. | |
| virtual unsigned long | release () |
| Release Interface instance. | |
| virtual StatusCode | initialize () |
| Initialize the converter. | |
| virtual StatusCode | finalize () |
| Initialize the converter. | |
| virtual StatusCode | setDataProvider (IDataProviderSvc *svc) |
| Set Data provider service. | |
| virtual IDataProviderSvc * | dataProvider () const |
| Get Data provider service. | |
| virtual StatusCode | setConversionSvc (IConversionSvc *svc) |
| Set conversion service the converter is connected to. | |
| virtual IConversionSvc * | conversionSvc () const |
| Get conversion service the converter is connected to. | |
| virtual StatusCode | setAddressCreator (IAddressCreator *creator) |
| Set address creator facility. | |
| virtual IAddressCreator * | addressCreator () const |
| Retrieve address creator facility. | |
| virtual const CLID & | objType () const |
| 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. | |
| virtual StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) |
| Create the transient representation of an object. | |
| virtual StatusCode | fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
| Resolve the references of the created transient object. | |
| virtual StatusCode | updateObj (IOpaqueAddress *pAddress, DataObject *refpObject) |
| Update the transient object from the other representation. | |
| virtual StatusCode | updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
| Update the references of an updated transient object. | |
| virtual StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) |
| Convert the transient object to the requested representation. | |
| virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
| Resolve the references of the converted object. | |
| virtual StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) |
| Update the converted representation of a transient object. | |
| virtual StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
| Update the references of an already converted object. | |
| Converter (long storage_type, const CLID &class_type, ISvcLocator *svc) | |
| Standard Constructor. | |
| template<class T> | |
| StatusCode | service (const std::string &name, T *&psvc, bool createIf=false) const |
| Access a service by name, creating it if it doesn't already exist. | |
| template<class T> | |
| StatusCode | service (const std::string &type, const std::string &name, T *&psvc) const |
| Access a service by name, type creating it if it doesn't already exist. | |
| virtual long | repSvcType () const =0 |
| Retrieve the class type of the data store the converter uses. | |
Static Public Member Functions | |
| static const InterfaceID & | interfaceID () |
| Retrieve interface ID. | |
Protected Member Functions | |
| virtual | ~Converter () |
| Standard Destructor. | |
| ISvcLocator * | serviceLocator () const |
| Retrieve pointer to service locator. | |
| IMessageSvc * | msgSvc () const |
| Retrieve pointer to message service. | |
| IMessageSvc * | messageService () const |
| IDataManagerSvc * | dataManager () const |
| Get Data Manager service. | |
Private Member Functions | |
| StatusCode | service_i (const std::string &svcName, bool createIf, const InterfaceID &iid, void **ppSvc) const |
| implementation of service method | |
| StatusCode | service_i (const std::string &svcType, const std::string &svcName, const InterfaceID &iid, void **ppSvc) const |
Private Attributes | |
| unsigned long | m_refCount |
| Reference counter. | |
| long | m_storageType |
| Storage type. | |
| const CLID | m_classType |
| Class type the converter can handle. | |
| IAddressCreator * | m_addressCreator |
| Pointer to the address creation service interface. | |
| IDataProviderSvc * | m_dataProvider |
| Pointer to data provider service. | |
| IDataManagerSvc * | m_dataManager |
| Pointer to data manager service. | |
| IConversionSvc * | m_conversionSvc |
| Pointer to the connected conversion service. | |
| ISvcLocator * | m_svcLocator |
| Service Locator reference. | |
| IMessageSvc * | m_messageSvc |
| MessageSvc reference. | |
See interface for detailed description, arguments and return values
Definition at line 25 of file Converter.h.
enum IConverter::Status [inherited] |
Status code.
Reimplemented from IInterface.
Reimplemented in IConversionSvc.
Definition at line 204 of file IConverter.h.
00204 { 00206 INVALID_ADDRESS = IInterface::LAST_ERROR+1, 00208 INVALID_OBJECT, 00210 NO_MEMORY, 00212 BAD_STORAGE_TYPE, 00214 NO_SOURCE_OBJECT, 00216 ICONVERSIONSVC_LAST_ERROR 00217 };
| Converter::Converter | ( | long | storage_type, | |
| const CLID & | class_type, | |||
| ISvcLocator * | svc | |||
| ) |
Standard Constructor.
| virtual Converter::~Converter | ( | ) | [protected, virtual] |
Standard Destructor.
| virtual StatusCode Converter::queryInterface | ( | const InterfaceID & | riid, | |
| void ** | ppvInterface | |||
| ) | [virtual] |
| virtual unsigned long Converter::addRef | ( | ) | [virtual] |
| virtual unsigned long Converter::release | ( | ) | [virtual] |
| virtual StatusCode Converter::initialize | ( | ) | [virtual] |
| virtual StatusCode Converter::finalize | ( | ) | [virtual] |
| virtual StatusCode Converter::setDataProvider | ( | IDataProviderSvc * | svc | ) | [virtual] |
| virtual IDataProviderSvc* Converter::dataProvider | ( | ) | const [virtual] |
| virtual StatusCode Converter::setConversionSvc | ( | IConversionSvc * | svc | ) | [virtual] |
| virtual IConversionSvc* Converter::conversionSvc | ( | ) | const [virtual] |
| virtual StatusCode Converter::setAddressCreator | ( | IAddressCreator * | creator | ) | [virtual] |
| virtual IAddressCreator* Converter::addressCreator | ( | ) | const [virtual] |
| virtual const CLID& Converter::objType | ( | ) | const [virtual] |
| virtual long Converter::i_repSvcType | ( | ) | const [virtual] |
Retrieve the class type of the data store the converter uses.
| virtual StatusCode Converter::createObj | ( | IOpaqueAddress * | pAddress, | |
| DataObject *& | refpObject | |||
| ) | [virtual] |
| virtual StatusCode Converter::fillObjRefs | ( | IOpaqueAddress * | pAddress, | |
| DataObject * | pObject | |||
| ) | [virtual] |
| virtual StatusCode Converter::updateObj | ( | IOpaqueAddress * | pAddress, | |
| DataObject * | refpObject | |||
| ) | [virtual] |
| virtual StatusCode Converter::updateObjRefs | ( | IOpaqueAddress * | pAddress, | |
| DataObject * | pObject | |||
| ) | [virtual] |
| virtual StatusCode Converter::createRep | ( | DataObject * | pObject, | |
| IOpaqueAddress *& | refpAddress | |||
| ) | [virtual] |
| virtual StatusCode Converter::fillRepRefs | ( | IOpaqueAddress * | pAddress, | |
| DataObject * | pObject | |||
| ) | [virtual] |
| virtual StatusCode Converter::updateRep | ( | IOpaqueAddress * | pAddress, | |
| DataObject * | pObject | |||
| ) | [virtual] |
| virtual StatusCode Converter::updateRepRefs | ( | IOpaqueAddress * | pAddress, | |
| DataObject * | pObject | |||
| ) | [virtual] |
| StatusCode Converter::service | ( | const std::string & | name, | |
| T *& | psvc, | |||
| bool | createIf = false | |||
| ) | const [inline] |
Access a service by name, creating it if it doesn't already exist.
Definition at line 98 of file Converter.h.
00098 { 00099 return service_i(name, createIf, T::interfaceID(), (void**)&psvc); 00100 }
| StatusCode Converter::service | ( | const std::string & | type, | |
| const std::string & | name, | |||
| T *& | psvc | |||
| ) | const [inline] |
Access a service by name, type creating it if it doesn't already exist.
Definition at line 104 of file Converter.h.
00104 { 00105 return service_i(type, name, T::interfaceID(), (void**)&psvc); 00106 }
| ISvcLocator* Converter::serviceLocator | ( | ) | const [protected] |
Retrieve pointer to service locator.
| IMessageSvc* Converter::msgSvc | ( | ) | const [protected] |
Retrieve pointer to message service.
| IMessageSvc* Converter::messageService | ( | ) | const [protected] |
| IDataManagerSvc* Converter::dataManager | ( | ) | const [protected] |
Get Data Manager service.
| StatusCode Converter::service_i | ( | const std::string & | svcName, | |
| bool | createIf, | |||
| const InterfaceID & | iid, | |||
| void ** | ppSvc | |||
| ) | const [private] |
implementation of service method
| StatusCode Converter::service_i | ( | const std::string & | svcType, | |
| const std::string & | svcName, | |||
| const InterfaceID & | iid, | |||
| void ** | ppSvc | |||
| ) | const [private] |
| static const InterfaceID& IConverter::interfaceID | ( | ) | [inline, static, inherited] |
Retrieve interface ID.
Reimplemented from IInterface.
Reimplemented in IConversionSvc.
Definition at line 64 of file IConverter.h.
00064 { return IID_IConverter; }
| virtual long IConverter::repSvcType | ( | ) | const [pure virtual, inherited] |
Retrieve the class type of the data store the converter uses.
Implemented in ConversionSvc.
unsigned long Converter::m_refCount [private] |
long Converter::m_storageType [private] |
const CLID Converter::m_classType [private] |
IAddressCreator* Converter::m_addressCreator [private] |
IDataProviderSvc* Converter::m_dataProvider [private] |
IDataManagerSvc* Converter::m_dataManager [private] |
IConversionSvc* Converter::m_conversionSvc [private] |
ISvcLocator* Converter::m_svcLocator [private] |
IMessageSvc* Converter::m_messageSvc [mutable, private] |
1.4.7