Go to the documentation of this file.
198 using extends::extends;
221 bool enable(
bool value );
243 "Names of services to be requested from the service locator and added by default",
244 "OrderedSet<std::string>" };
void encodeAddrHdr(long service_type, const CLID &clid, std::string &address) const
Retrieve string from storage type and clid.
StatusCode commitOutput(const std::string &output, bool do_commit) override
Commit pending output.
PersistencySvc class implementation definition.
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Implementation of IConverter: Convert the transient object to the requested representation.
StatusCode finalize() override
stop the service.
SmartIF< IConversionSvc > & conversionSvc() const
StatusCode fillRepRefs(IOpaqueAddress *pAddress, DataObject *pObject) override
Implementation of IConverter: Resolve the references of the converted object.
SmartIF< IConversionSvc > m_cnvDefault
Default output service.
StatusCode updateObj(IOpaqueAddress *pAddress, DataObject *refpObject) override
Implementation of IConverter: Update the transient object from the other representation.
SmartIF< IConversionSvc > & conversionSvc() const override
Get conversion service the converter is connected to.
SmartIF< IDataProviderSvc > & dataProvider() const override
Access reference to transient datastore.
ServiceEntry(long type, SmartIF< IService > svc, SmartIF< IConversionSvc > cnv, SmartIF< IAddressCreator > cr)
StatusCode addCnvService(IConversionSvc *service) override
Add a new Service.
ServiceEntry(long type, IService *svc, IConversionSvc *cnv, IAddressCreator *cr)
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.
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.
StatusCode removeCnvService(long type) override
Remove a Service.
StatusCode createObj(IOpaqueAddress *pAddress, DataObject *&refpObject) override
Implementation of IConverter: Create the transient representation of an object.
SmartIF< IConversionSvc > m_cnvService
std::map< long, ServiceEntry > Services
SmartIF< IService > & service() const
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
Services m_cnvServices
List of conversion workers.
StatusCode setAddressCreator(IAddressCreator *creator) override
Set address creator facility.
StatusCode updateRepRefs(IOpaqueAddress *pAddress, DataObject *pObject) override
Implementation of IConverter: Update the references of an already converted object.
SmartIF< IAddressCreator > m_addrCreator
SmartIF< IDataProviderSvc > m_dataSvc
Pointer to data provider service.
StatusCode setDefaultCnvService(long type) override
Set default service type.
SmartIF< IConversionSvc > & service(const std::string &nam)
Retrieve conversion service by name.
SmartIF< IAddressCreator > m_addrCreator
Pointer to the IAddressCreator interface of this, for addressCreator().
SmartIF< IAddressCreator > & addrCreator() const
IConverter * converter(const CLID &clid) override
Retrieve converter from list.
SmartIF< IAddressCreator > & addressCreator() const override
Retrieve address creator facility.
unsigned int CLID
Class ID definition.
StatusCode connectOutput(const std::string &outputFile, const std::string &openMode) override
Connect the output file to the service with open mode.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Base class used to extend a class implementing other interfaces.
Gaudi::Property< std::vector< std::string > > m_svcNames
long m_cnvDefType
Default service type.
StatusCode initialize() override
Initialize the service.
StatusCode setConversionSvc(IConversionSvc *svc) override
Set conversion service the converter is connected to.
SmartIF< IService > m_service
StatusCode makeCall(int typ, IOpaqueAddress *&pAddress, DataObject *&pObject)
Implementation helper.
ServiceEntry(const ServiceEntry &)=default
StatusCode removeConverter(const CLID &clid) override
Remove converter object from conversion service (if present).
std::recursive_mutex m_servicesMutex
Mutex to protect accesses to m_cnvServices.
StatusCode addConverter(IConverter *pConverter) override
Add converter object to conversion service.
bool m_enable
Flag to indicate that the service is enabled.
StatusCode updateObjRefs(IOpaqueAddress *pAddress, DataObject *pObject) override
Implementation of IConverter: Update the references of an updated transient object.
StatusCode updateRep(IOpaqueAddress *pAddress, DataObject *pObject) override
Implementation of IConverter: Update the converted representation of a transient object.
long repSvcType() const override
Return default service type.
StatusCode fillObjRefs(IOpaqueAddress *pAddress, DataObject *pObject) override
Implementation of IConverter: Resolve the references of the created transient object.
bool enable(bool value)
Set enabled flag.
StatusCode convertAddress(const IOpaqueAddress *pAddress, std::string &refAddress) override
Convert an address to string form.
const long TEST_StorageType
const CLID & objType() const override
Retrieve the class type of objects the converter produces. (DUMMY)
Implementation of property with value of concrete type.
StatusCode setDataProvider(IDataProviderSvc *pStore) override
Define transient datastore.
StatusCode getService(long service_type, IConversionSvc *&refpSvc) override
Retrieve conversion service identified by technology.