11 #ifndef PERSISTENCYSVC_PERSISTENCYSVC_H
12 #define PERSISTENCYSVC_PERSISTENCYSVC_H 1
181 const std::string& openMode);
191 const std::string* pars,
192 const unsigned long* ipars,
197 std::string& refAddress);
202 const std::string& refAddress,
254 std::string& address)
const;
260 std::string& address_trailer)
const;
291 #endif // PERSISTENCYSVC_PERSISTENCYSVC_H
SmartIF< IAddressCreator > m_addrCreator
Pointer to the IAddressCreator interface of this, for addressCreator().
SmartIF< IConversionSvc > & service(const std::string &nam)
Retrieve conversion service by name.
SmartIF< IConversionSvc > & conversionSvc() const
SmartIF< IAddressCreator > & addrCreator() const
virtual StatusCode updateObj(IOpaqueAddress *pAddress, DataObject *refpObject)
Implementation of IConverter: Update the transient object from the other representation.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
The data converters are responsible to translate data from one representation into another...
long m_cnvDefType
Default service type.
virtual StatusCode setDataProvider(IDataProviderSvc *pStore)
Define transient datastore.
virtual StatusCode convertAddress(const IOpaqueAddress *pAddress, std::string &refAddress)
Convert an address to string form.
virtual StatusCode connectOutput(const std::string &outputFile, const std::string &openMode)
Connect the output file to the service with open mode.
virtual StatusCode createAddress(long svc_type, const CLID &clid, const std::string *pars, const unsigned long *ipars, IOpaqueAddress *&refpAddress)
Create a Generic address using explicit arguments to identify a single object.
virtual StatusCode initialize()
Initialize the service.
virtual StatusCode addConverter(IConverter *pConverter)
Add converter object to conversion service.
virtual StatusCode addCnvService(IConversionSvc *service)
Add a new Service.
virtual StatusCode removeCnvService(long type)
Remove a Service.
SmartIF< IService > & service() const
IAddressCreator interface definition.
bool m_enable
Flag to indicate that the service is enabled.
virtual StatusCode setConversionSvc(IConversionSvc *svc)
Set conversion service the converter is connected to.
StatusCode makeCall(int typ, IOpaqueAddress *&pAddress, DataObject *&pObject)
Implementation helper.
long repSvcType() const
Return default service type.
SmartIF< IService > m_service
StringArrayProperty m_svcNames
Names of services to be requested from the service locator and added by default.
virtual StatusCode commitOutput(const std::string &output, bool do_commit)
Commit pending output.
virtual StatusCode fillRepRefs(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Resolve the references of the converted object.
Data provider interface definition.
PersistencySvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Base class used to extend a class implementing other interfaces.
virtual StatusCode getService(long service_type, IConversionSvc *&refpSvc)
Retrieve conversion service identified by technology.
virtual StatusCode finalize()
stop the service.
ServiceEntry(long type, SmartIF< IService > &svc, SmartIF< IConversionSvc > &cnv, SmartIF< IAddressCreator > &cr)
virtual StatusCode updateRep(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Update the converted representation of a transient object.
virtual StatusCode fillObjRefs(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Resolve the references of the created transient object.
bool enable(bool value)
Set enabled flag.
std::map< long, ServiceEntry > Services
virtual SmartIF< IConversionSvc > & conversionSvc() const
Get conversion service the converter is connected to.
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Implementation of IConverter: Convert the transient object to the requested representation.
virtual SmartIF< IAddressCreator > & addressCreator() const
Retrieve address creator facility.
void encodeAddrHdr(long service_type, const CLID &clid, std::string &address) const
Retrieve string from storage type and clid.
void svcNamesHandler(Property &theProp)
Handlers for Service Names Property.
General service interface definition.
This class is used for returning status codes from appropriate routines.
ServiceEntry(long type, IService *svc, IConversionSvc *cnv, IAddressCreator *cr)
virtual StatusCode setDefaultCnvService(long type)
Set default service type.
SmartIF< IConversionSvc > m_cnvDefault
Default output service.
virtual StatusCode createObj(IOpaqueAddress *pAddress, DataObject *&refpObject)
Implementation of IConverter: Create the transient representation of an object.
PersistencySvc class implementation definition.
virtual StatusCode removeConverter(const CLID &clid)
Remove converter object from conversion service (if present).
SmartIF< IConversionSvc > m_cnvService
unsigned int CLID
Class ID definition.
virtual SmartIF< IDataProviderSvc > & dataProvider() const
Access reference to transient datastore.
virtual const std::string & name() const
Retrieve name of the service.
virtual IConverter * converter(const CLID &clid)
Retrieve converter from list.
virtual StatusCode updateRepRefs(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Update the references of an already converted object.
Property base class allowing Property* collections to be "homogeneous".
virtual StatusCode setAddressCreator(IAddressCreator *creator)
Set address creator facility.
const CLID & objType() const
Retrieve the class type of objects the converter produces. (DUMMY)
virtual StatusCode updateObjRefs(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Update the references of an updated transient object.
Services m_cnvServices
List of convermsion workers.
ServiceEntry(const ServiceEntry ©)
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.
SmartIF< IAddressCreator > m_addrCreator
Opaque address interface definition.
virtual ~PersistencySvc()
Standard Destructor.
A DataObject is the base class of any identifiable object on any data store.
SmartIF< IDataProviderSvc > m_dataSvc
Pointer to datma provider service.