|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef ATHENABASECOMPS_ATHCNVSVC_H
12 #define ATHENABASECOMPS_ATHCNVSVC_H 1
16 #include <unordered_map>
20 #include "GaudiKernel/IConversionSvc.h"
21 #include "GaudiKernel/IAddressCreator.h"
64 :
virtual public ::IConversionSvc,
65 virtual public ::IAddressCreator,
106 typedef std::unordered_map<CLID,WorkerEntry>
Workers;
126 void** ppvInterface);
147 virtual SmartIF<IDataProviderSvc>&
dataProvider()
const;
216 const std::string& openMode);
238 const std::string*
par,
239 const unsigned long*
ip,
240 IOpaqueAddress*& refpAddress);
245 std::string& refAddress);
251 const std::string& refAddress,
252 IOpaqueAddress*& refpAddress);
280 const ICnvFactory* fac);
309 IOpaqueAddress*& pAddress,
310 DataObject*& pObject);
334 #endif //> !ATHENABASECOMPS_ATHCNVSVC_H
WorkerEntry(const CLID &cl, IConverter *cnv)
StatusCode makeCall(int typ, bool ignore_add, bool ignore_obj, bool update, IOpaqueAddress *&pAddress, DataObject *&pObject)
virtual StatusCode finalize()
const CLID & clID() const
virtual StatusCode updateObjRefs(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Update the references of an updated transient object.
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface)
AthCnvSvc(const AthCnvSvc &)
virtual StatusCode removeConverter(const CLID &clid)
Remove converter object from conversion service (if present).
virtual StatusCode activateConverter(long typ, const CLID &clid, IConverter *cnv)
Activate the new converter after initialization.
virtual StatusCode updateServiceState(IOpaqueAddress *pAddress)
Update state of the service.
SmartIF< IAddressCreator > m_addressCreator
Pointer to the address creation service interface.
bool operator==(const WorkerEntry &rhs)
virtual StatusCode initialize()
Gaudi Service Implementation.
AthCnvSvc()
Default constructor:
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 setAddressCreator(IAddressCreator *creator)
Set address creator facility.
virtual SmartIF< IAddressCreator > & addressCreator() const
Retrieve address creator facility.
virtual StatusCode configureConverter(long typ, const CLID &clid, IConverter *cnv)
Configure the new converter before initialize is called.
virtual StatusCode setConversionSvc(IConversionSvc *svc)
Implementation of IConverter: Set conversion service the converter is connected to.
virtual StatusCode createAddress(long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress)
Create a Generic address using explicit arguments to identify a single object.
virtual SmartIF< IConversionSvc > & conversionSvc() const
Implementation of IConverter: Get conversion service the converter is connected to.
virtual StatusCode updateRepRefs(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Update the references of an already converted object.
virtual StatusCode setDataProvider(IDataProviderSvc *pService)
Implementation of IConverter: Set Data provider service.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Implementation of IConverter: Convert the transient object to the requested representation.
std::recursive_mutex CallMutex
Mutex to protect Converter creation.
const CLID & objType() const
Implementation of IConverter: dummy call.
WorkerEntry(const WorkerEntry ©)
virtual StatusCode createObj(IOpaqueAddress *pAddress, DataObject *&refpObject)
Implementation of IConverter: Create the transient representation of an object.
SmartIF< IConversionSvc > m_cnvSvc
Pointer to the IConversionSvc interface of this.
AthROOTErrorHandlerSvc * svc
uint32_t CLID
The Class ID type.
virtual SmartIF< IDataProviderSvc > & dataProvider() const
Implementation of IConverter: Get Data provider service.
Workers m_workers
List of conversion workers.
virtual StatusCode initializeConverter(long typ, const CLID &clid, IConverter *cnv)
Initialize the new converter.
virtual StatusCode updateRep(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Update the converted representation of a transient object.
AthCnvSvc & operator=(const AthCnvSvc &)
virtual StatusCode addConverter(const CLID &clid)
Add converter object to conversion service.
virtual StatusCode fillRepRefs(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Resolve the references of the converted object.
virtual StatusCode fillObjRefs(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Resolve the references of the created transient object.
virtual StatusCode updateObj(IOpaqueAddress *pAddress, DataObject *refpObject)
Implementation of IConverter: Update the transient object from the other representation.
virtual IConverter * createConverter(long typ, const CLID &clid, const ICnvFactory *fac)
Create new Converter using factory.
virtual StatusCode commitOutput(const std::string &output, bool do_commit)
Commit pending output.
virtual SmartIF< IAddressCreator > & addressCreator()
Retrieve address creation interface.
virtual IConverter * converter(const CLID &wanted)
Retrieve converter from list.
virtual ~AthCnvSvc()
Destructor:
bool operator<(const WorkerEntry &rhs)
WorkerEntry & operator=(const WorkerEntry ©)
virtual void loadConverter(DataObject *pObject)
Load converter or dictionary needed by the converter.
std::unordered_map< CLID, WorkerEntry > Workers
SmartIF< IDataProviderSvc > m_dataSvc
Pointer to data provider service.
virtual StatusCode disconnectOutput(const std::string &output)
Disconnect output files from the service.
virtual long repSvcType() const
Retrieve the class type of the data store the converter uses.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
long m_type
Conversion service type.