![]() |
The Gaudi Framework
v26r4
|
PersistencySvc class implementation definition. More...
#include <src/PersistencySvc/PersistencySvc.h>
Classes | |
class | ServiceEntry |
Public Member Functions | |
IPersistencySvc Interface implementation | |
long | repSvcType () const |
Return default service type. More... | |
const CLID & | objType () const |
Retrieve the class type of objects the converter produces. (DUMMY) More... | |
StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) override |
Implementation of IConverter: Create the transient representation of an object. More... | |
StatusCode | fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
Implementation of IConverter: Resolve the references of the created transient object. More... | |
StatusCode | updateObj (IOpaqueAddress *pAddress, DataObject *refpObject) override |
Implementation of IConverter: Update the transient object from the other representation. More... | |
StatusCode | updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
Implementation of IConverter: Update the references of an updated transient object. More... | |
StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) override |
Implementation of IConverter: Convert the transient object to the requested representation. More... | |
StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
Implementation of IConverter: Resolve the references of the converted object. More... | |
StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) override |
Implementation of IConverter: Update the converted representation of a transient object. More... | |
StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
Implementation of IConverter: Update the references of an already converted object. More... | |
StatusCode | setDataProvider (IDataProviderSvc *pStore) override |
Define transient datastore. More... | |
SmartIF< IDataProviderSvc > & | dataProvider () const override |
Access reference to transient datastore. More... | |
StatusCode | setConversionSvc (IConversionSvc *svc) override |
Set conversion service the converter is connected to. More... | |
SmartIF< IConversionSvc > & | conversionSvc () const override |
Get conversion service the converter is connected to. More... | |
StatusCode | setAddressCreator (IAddressCreator *creator) override |
Set address creator facility. More... | |
SmartIF< IAddressCreator > & | addressCreator () const override |
Retrieve address creator facility. More... | |
StatusCode | addConverter (IConverter *pConverter) override |
Add converter object to conversion service. More... | |
StatusCode | addConverter (const CLID &clid) override |
Add converter object to conversion service. More... | |
IConverter * | converter (const CLID &clid) override |
Retrieve converter from list. More... | |
StatusCode | removeConverter (const CLID &clid) override |
Remove converter object from conversion service (if present). More... | |
StatusCode | connectOutput (const std::string &outputFile, const std::string &openMode) override |
Connect the output file to the service with open mode. More... | |
StatusCode | connectOutput (const std::string &outputFile) override |
Connect the output file to the service. More... | |
StatusCode | commitOutput (const std::string &output, bool do_commit) override |
Commit pending output. More... | |
StatusCode | createAddress (long svc_type, const CLID &clid, const std::string *pars, const unsigned long *ipars, IOpaqueAddress *&refpAddress) override |
Create a Generic address using explicit arguments to identify a single object. More... | |
StatusCode | convertAddress (const IOpaqueAddress *pAddress, std::string &refAddress) override |
Convert an address to string form. More... | |
StatusCode | createAddress (long svc_type, const CLID &clid, const std::string &refAddress, IOpaqueAddress *&refpAddress) override |
Convert an address in string form to object form. More... | |
: IPersistencySvc implementation | |
StatusCode | addCnvService (IConversionSvc *service) override |
Add a new Service. More... | |
StatusCode | removeCnvService (long type) override |
Remove a Service. More... | |
StatusCode | setDefaultCnvService (long type) override |
Set default service type. More... | |
StatusCode | getService (long service_type, IConversionSvc *&refpSvc) override |
Retrieve conversion service identified by technology. More... | |
StatusCode | getService (const std::string &service_type, IConversionSvc *&refpSvc) override |
Retrieve conversion service identified by technology. More... | |
: IService implementation | |
StatusCode | initialize () override |
Initialize the service. More... | |
StatusCode | finalize () override |
stop the service. More... | |
![]() | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Protected Types | |
typedef std::map< long, ServiceEntry > | Services |
Protected Member Functions | |
void | svcNamesHandler (Property &theProp) |
Handlers for Service Names Property. More... | |
Protected Attributes | |
long | m_cnvDefType = TEST_StorageType |
Default service type. More... | |
SmartIF< IDataProviderSvc > | m_dataSvc |
Pointer to datma provider service. More... | |
Services | m_cnvServices |
List of convermsion workers. More... | |
SmartIF< IConversionSvc > | m_cnvDefault |
Default output service. More... | |
StringArrayProperty | m_svcNames |
Names of services to be requested from the service locator and added by default. More... | |
bool | m_enable = true |
Flag to indicate that the service is enabled. More... | |
SmartIF< IAddressCreator > | m_addrCreator |
Pointer to the IAddressCreator interface of this, for addressCreator(). More... | |
: Object implementation | |
PersistencySvc (const std::string &name, ISvcLocator *svc) | |
Standard Constructor. More... | |
~PersistencySvc () override=default | |
Standard Destructor. More... | |
SmartIF< IConversionSvc > & | service (const std::string &nam) |
Retrieve conversion service by name. More... | |
SmartIF< IConversionSvc > & | service (long service_type) |
Retrieve conversion service from list. More... | |
SmartIF< IAddressCreator > & | addressCreator (long service_type) |
Retrieve address creator from list. More... | |
void | encodeAddrHdr (long service_type, const CLID &clid, std::string &address) const |
Retrieve string from storage type and clid. More... | |
void | decodeAddrHdr (const std::string &address, long &service_type, CLID &clid, std::string &address_trailer) const |
Retrieve storage type and clid from address header of string. More... | |
StatusCode | makeCall (int typ, IOpaqueAddress *&pAddress, DataObject *&pObject) |
Implementation helper. More... | |
bool | enable (bool value) |
Set enabled flag. More... | |
Additional Inherited Members | |
![]() | |
typedef extends | base_class |
Typedef to this class. More... | |
typedef extend_interfaces< Interfaces...> | extend_interfaces_base |
Typedef to the base of this class. More... | |
typedef extends | base_class |
Typedef to this class. More... | |
typedef extend_interfaces< Interfaces...> | extend_interfaces_base |
Typedef to the base of this class. More... | |
![]() | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
PersistencySvc class implementation definition.
System: The LHCb Offline System
Package: PersistencySvc
Dependencies:
History:
+---------+----------------------------------------------+---------+ | Date | Comment | Who | +---------+----------------------------------------------+---------+ | 3/11/98 | Initial version | M.Frank | +---------+----------------------------------------------+---------+
Definition at line 50 of file PersistencySvc.h.
|
protected |
Definition at line 95 of file PersistencySvc.h.
PersistencySvc::PersistencySvc | ( | const std::string & | name, |
ISvcLocator * | svc | ||
) |
Standard Constructor.
Definition at line 566 of file PersistencySvc.cpp.
|
overridedefault |
Standard Destructor.
|
override |
Add a new Service.
Add data service.
Definition at line 255 of file PersistencySvc.cpp.
|
override |
Add converter object to conversion service.
Definition at line 199 of file PersistencySvc.cpp.
|
override |
Add converter object to conversion service.
Definition at line 194 of file PersistencySvc.cpp.
|
override |
Retrieve address creator facility.
Definition at line 447 of file PersistencySvc.cpp.
|
protected |
Retrieve address creator from list.
Retrieve address creator service from list.
Definition at line 153 of file PersistencySvc.cpp.
|
override |
Commit pending output.
Definition at line 318 of file PersistencySvc.cpp.
|
override |
Connect the output file to the service with open mode.
Definition at line 307 of file PersistencySvc.cpp.
|
override |
Connect the output file to the service.
Definition at line 313 of file PersistencySvc.cpp.
|
override |
Get conversion service the converter is connected to.
Definition at line 189 of file PersistencySvc.cpp.
|
override |
Convert an address to string form.
Definition at line 335 of file PersistencySvc.cpp.
|
override |
Retrieve converter from list.
Definition at line 217 of file PersistencySvc.cpp.
|
override |
Create a Generic address using explicit arguments to identify a single object.
Definition at line 323 of file PersistencySvc.cpp.
|
override |
Convert an address in string form to object form.
Definition at line 363 of file PersistencySvc.cpp.
|
override |
Implementation of IConverter: Create the transient representation of an object.
Create the transient representation of an object.
Definition at line 113 of file PersistencySvc.cpp.
|
override |
Implementation of IConverter: Convert the transient object to the requested representation.
Convert the transient object to the requested representation.
Definition at line 133 of file PersistencySvc.cpp.
|
override |
Access reference to transient datastore.
Access the dataprovider service.
Definition at line 178 of file PersistencySvc.cpp.
|
protected |
Retrieve storage type and clid from address header of string.
Definition at line 394 of file PersistencySvc.cpp.
|
protected |
Set enabled flag.
Definition at line 559 of file PersistencySvc.cpp.
|
protected |
|
override |
Implementation of IConverter: Resolve the references of the created transient object.
Resolve the references of the created transient object.
Definition at line 118 of file PersistencySvc.cpp.
|
override |
Implementation of IConverter: Resolve the references of the converted object.
Resolve the references of the converted object.
Definition at line 138 of file PersistencySvc.cpp.
|
override |
stop the service.
Definition at line 546 of file PersistencySvc.cpp.
|
override |
Retrieve conversion service identified by technology.
Definition at line 452 of file PersistencySvc.cpp.
|
override |
Retrieve conversion service identified by technology.
Definition at line 458 of file PersistencySvc.cpp.
|
override |
Initialize the service.
Definition at line 535 of file PersistencySvc.cpp.
|
protected |
Implementation helper.
Definition at line 56 of file PersistencySvc.cpp.
const CLID & PersistencySvc::objType | ( | ) | const |
Retrieve the class type of objects the converter produces. (DUMMY)
Retrieve the class type of objects the converter produces.
Definition at line 530 of file PersistencySvc.cpp.
|
override |
Remove a Service.
Remove conversion service.
Definition at line 286 of file PersistencySvc.cpp.
|
override |
Remove converter object from conversion service (if present).
Definition at line 206 of file PersistencySvc.cpp.
long PersistencySvc::repSvcType | ( | ) | const |
Return default service type.
Retrieve the class type of the data store the converter uses.
Definition at line 296 of file PersistencySvc.cpp.
|
protected |
Retrieve conversion service by name.
Definition at line 222 of file PersistencySvc.cpp.
|
protected |
Retrieve conversion service from list.
Definition at line 241 of file PersistencySvc.cpp.
|
override |
Set address creator facility.
Definition at line 438 of file PersistencySvc.cpp.
|
override |
Set conversion service the converter is connected to.
Definition at line 183 of file PersistencySvc.cpp.
|
override |
Define transient datastore.
Define transient data store.
Definition at line 169 of file PersistencySvc.cpp.
|
override |
Set default service type.
Set default conversion service.
Definition at line 301 of file PersistencySvc.cpp.
|
protected |
Handlers for Service Names Property.
Definition at line 554 of file PersistencySvc.cpp.
|
override |
Implementation of IConverter: Update the transient object from the other representation.
Update the transient object from the other representation.
Definition at line 123 of file PersistencySvc.cpp.
|
override |
Implementation of IConverter: Update the references of an updated transient object.
Update the references of an updated transient object.
Definition at line 128 of file PersistencySvc.cpp.
|
override |
Implementation of IConverter: Update the converted representation of a transient object.
Update the converted representation of a transient object.
Definition at line 143 of file PersistencySvc.cpp.
|
override |
Implementation of IConverter: Update the references of an already converted object.
Update the references of an already converted object.
Definition at line 148 of file PersistencySvc.cpp.
|
mutableprotected |
Pointer to the IAddressCreator interface of this, for addressCreator().
Definition at line 282 of file PersistencySvc.h.
|
mutableprotected |
Default output service.
Definition at line 273 of file PersistencySvc.h.
|
protected |
Default service type.
Definition at line 267 of file PersistencySvc.h.
|
protected |
List of convermsion workers.
Definition at line 271 of file PersistencySvc.h.
|
mutableprotected |
Pointer to datma provider service.
Definition at line 269 of file PersistencySvc.h.
|
protected |
Flag to indicate that the service is enabled.
Definition at line 279 of file PersistencySvc.h.
|
protected |
Names of services to be requested from the service locator and added by default.
Definition at line 277 of file PersistencySvc.h.