|
Gaudi Framework, version v24r2 |
| Home | Generated: Wed Dec 4 2013 |
Description: More...
#include <src/RootCnvSvc.h>


Public Member Functions | |
| RootCnvSvc (const std::string &name, ISvcLocator *svc) | |
| Standard constructor. | |
| virtual | ~RootCnvSvc () |
| Standard destructor. | |
| virtual StatusCode | updateServiceState (IOpaqueAddress *) |
| Update state of the service. | |
| StatusCode | error (const std::string &msg) |
| Standard way to print errors. | |
| StatusCode | connectDatabase (const std::string &dataset, int mode, RootDataConnection **con) |
| Connect the output file to the service with open mode. | |
| virtual StatusCode | initialize () |
| ConversionSvc overload: initialize Db service. | |
| virtual StatusCode | finalize () |
| ConversionSvc overload: Finalize Db service. | |
| virtual IConverter * | createConverter (long typ, const CLID &wanted, const ICnvFactory *fac) |
| ConversionSvc overload: Create new Converter using factory. | |
| virtual void | loadConverter (DataObject *pObj) |
| ConversionSvc overload: Load the class (dictionary) for the converter. | |
| virtual StatusCode | connectOutput (const std::string &outputFile, const std::string &openMode) |
| Connect the output file to the service with open mode. | |
| virtual StatusCode | connectOutput (const std::string &outputFile) |
| Connect the output file to the service. | |
| virtual StatusCode | commitOutput (const std::string &outputFile, bool do_commit) |
| Commit pending output. | |
| virtual StatusCode | disconnect (const std::string &dbName) |
| Disconnect from an existing data stream. | |
| virtual StatusCode | createAddress (long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress) |
| IAddressCreator implementation: Address creation. | |
| virtual StatusCode | createAddress (long svc_type, const CLID &clid, const std::string &refAddress, IOpaqueAddress *&refpAddress) |
| IAddressCreator implementation: Creates an address in string form to object form. | |
| virtual StatusCode | createNullRep (const std::string &path) |
| Insert null marker for not existent transient object. | |
| virtual StatusCode | createNullRef (const std::string &path) |
| Insert null marker for not existent transient object. | |
| virtual StatusCode | i__createRep (DataObject *pObj, IOpaqueAddress *&refpAddr) |
| Convert the transient object to the requested persistent representation. | |
| virtual StatusCode | i__fillRepRefs (IOpaqueAddress *pAddr, DataObject *pObj) |
| Resolve the references of the converted object. | |
| virtual StatusCode | i__createObj (IOpaqueAddress *pAddr, DataObject *&refpObj) |
| Create transient object from persistent data. | |
| virtual StatusCode | i__fillObjRefs (IOpaqueAddress *pAddr, DataObject *pObj) |
| Resolve the references of the created transient object. | |
Public Member Functions inherited from ConversionSvc | |
| virtual long | repSvcType () const |
| Retrieve the class type of the data store the converter uses. | |
| const CLID & | objType () const |
| Implementation of IConverter: dummy call. | |
| virtual StatusCode | setDataProvider (IDataProviderSvc *pService) |
| Implementation of IConverter: Set Data provider service. | |
| virtual SmartIF < IDataProviderSvc > & | dataProvider () const |
| Implementation of IConverter: Get Data provider service. | |
| virtual StatusCode | setConversionSvc (IConversionSvc *svc) |
| Implementation of IConverter: Set conversion service the converter is connected to. | |
| virtual SmartIF< IConversionSvc > & | conversionSvc () const |
| Implementation of IConverter: Get conversion service the converter is connected to. | |
| virtual StatusCode | setAddressCreator (IAddressCreator *creator) |
| Set address creator facility. | |
| virtual SmartIF < IAddressCreator > & | addressCreator () const |
| Retrieve address creator facility. | |
| virtual StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) |
| Implementation of IConverter: Create the transient representation of an 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 StatusCode | updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
| Implementation of IConverter: Update the references of an updated transient object. | |
| virtual StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) |
| Implementation of IConverter: Convert the transient object to the requested representation. | |
| virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
| Implementation of IConverter: Resolve the references of the converted object. | |
| virtual StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) |
| Implementation of IConverter: Update the converted representation of a transient object. | |
| virtual StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
| Implementation of IConverter: Update the references of an already converted object. | |
| virtual StatusCode | addConverter (const CLID &clid) |
| Add converter object to conversion service. | |
| virtual StatusCode | addConverter (IConverter *pConverter) |
| Add converter object to conversion service. | |
| virtual StatusCode | removeConverter (const CLID &clid) |
| Remove converter object from conversion service (if present). | |
| virtual IConverter * | converter (const CLID &wanted) |
| Retrieve converter from list. | |
| virtual StatusCode | convertAddress (const IOpaqueAddress *pAddress, std::string &refAddress) |
| Convert an address to string form. | |
| ConversionSvc (const std::string &name, ISvcLocator *svc, long type) | |
| Standard Constructor. | |
Public Member Functions inherited from extends2< Service, IConversionSvc, IAddressCreator > | |
| extends2 (A1 a1, A2 a2, A3 a3) | |
| Templated constructor with 3 arguments. | |
| extends2 (A1 a1, A2 a2) | |
| Templated constructor with 2 arguments. | |
| extends2 (A1 a1) | |
| Templated constructor with 1 argument. | |
| extends2 () | |
| Default constructor. | |
| virtual void * | i_cast (const InterfaceID &tid) const |
| Implementation of IInterface::i_cast. | |
| virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp) |
| Implementation of IInterface::queryInterface. | |
| virtual std::vector< std::string > | getInterfaceNames () const |
| Implementation of IInterface::getInterfaceNames. | |
| virtual | ~extends2 () |
| Virtual destructor. | |
Public Member Functions inherited from Service | |
| virtual unsigned long | release () |
| Release Interface instance. | |
| virtual const std::string & | name () const |
| Retrieve name of the service. | |
| virtual StatusCode | configure () |
| virtual StatusCode | start () |
| virtual StatusCode | stop () |
| virtual StatusCode | terminate () |
| virtual Gaudi::StateMachine::State | FSMState () const |
| virtual Gaudi::StateMachine::State | targetFSMState () const |
| virtual StatusCode | reinitialize () |
| virtual StatusCode | restart () |
| virtual StatusCode | sysInitialize () |
| Initialize Service. | |
| virtual StatusCode | sysStart () |
| Initialize Service. | |
| virtual StatusCode | sysStop () |
| Initialize Service. | |
| virtual StatusCode | sysFinalize () |
| Finalize Service. | |
| virtual StatusCode | sysReinitialize () |
| Re-initialize the Service. | |
| virtual StatusCode | sysRestart () |
| Re-initialize the Service. | |
| virtual StatusCode | setProperty (const Property &p) |
| virtual StatusCode | setProperty (const std::string &s) |
| virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
| virtual StatusCode | getProperty (Property *p) const |
| virtual const Property & | getProperty (const std::string &name) const |
| virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
| virtual const std::vector < Property * > & | getProperties () const |
| template<class TYPE > | |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value | |
| Service (const std::string &name, ISvcLocator *svcloc) | |
| Standard Constructor. | |
| SmartIF< ISvcLocator > & | serviceLocator () const |
| Retrieve pointer to service locator. | |
| StatusCode | setProperties () |
| Method for setting declared properties to the values specified for the job. | |
| template<class T > | |
| StatusCode | service (const std::string &name, const T *&psvc, bool createIf=true) const |
| Access a service by name, creating it if it doesn't already exist. | |
| template<class T > | |
| StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
| template<class T > | |
| StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
| Access a service by name and type, creating it if it doesn't already exist. | |
| template<class T > | |
| Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
| Declare the named property. | |
| Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
| Declare remote named properties. | |
| SmartIF< IAuditorSvc > & | auditorSvc () const |
| The standard auditor service.May not be invoked before sysInitialize() has been invoked. | |
Public Member Functions inherited from CommonMessaging< implements3< IService, IProperty, IStateful > > | |
| CommonMessaging (const A1 &a1, const A2 &a2, const A3 &a3) | |
| Templated constructor with 3 arguments. | |
| CommonMessaging (const A1 &a1, const A2 &a2) | |
| Templated constructor with 2 arguments. | |
| CommonMessaging (const A1 &a1) | |
| Templated constructor with 1 argument. | |
| CommonMessaging () | |
| Default constructor. | |
| virtual | ~CommonMessaging () |
| Virtual destructor. | |
| SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. | |
| MsgStream & | msgStream () const |
| Return an uninitialized MsgStream. | |
| MsgStream & | msgStream (const MSG::Level level) const |
| Predefined configurable message stream for the efficient printouts. | |
| MsgStream & | always () const |
| shortcut for the method msgStream(MSG::ALWAYS) | |
| MsgStream & | fatal () const |
| shortcut for the method msgStream(MSG::FATAL) | |
| MsgStream & | err () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | error () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | warning () const |
| shortcut for the method msgStream(MSG::WARNING) | |
| MsgStream & | info () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MsgStream & | debug () const |
| shortcut for the method msgStream(MSG::DEBUG) | |
| MsgStream & | verbose () const |
| shortcut for the method msgStream(MSG::VERBOSE) | |
| MsgStream & | msg () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MSG::Level | msgLevel () const |
| get the output level from the embedded MsgStream | |
| bool | msgLevel (MSG::Level lvl) const |
| get the output level from the embedded MsgStream | |
Public Member Functions inherited from extend_interfaces2< I1, I2 > | |
| virtual | ~extend_interfaces2 () |
| Virtual destructor. | |
Protected Member Functions | |
| TClass * | getClass (DataObject *pObject) |
| Helper: Get TClass for a given DataObject pointer. | |
| MsgStream & | log () const |
| Helper: Use message streamer. | |
Protected Member Functions inherited from ConversionSvc | |
| virtual | ~ConversionSvc () |
| Standard Destructor. | |
| virtual StatusCode | configureConverter (long typ, const CLID &clid, IConverter *cnv) |
| Configure the new converter before initialize is called. | |
| virtual StatusCode | initializeConverter (long typ, const CLID &clid, IConverter *cnv) |
| Initialize the new converter. | |
| virtual StatusCode | activateConverter (long typ, const CLID &clid, IConverter *cnv) |
| Activate the new converter after initialization. | |
| virtual SmartIF < IAddressCreator > & | addressCreator () |
| Retrieve address creation interface. | |
| StatusCode | makeCall (int typ, bool ignore_add, bool ignore_obj, bool update, IOpaqueAddress *&pAddress, DataObject *&pObject) |
Protected Attributes | |
| Gaudi::IIODataManager * | m_ioMgr |
| Reference to the I/O data manager. | |
| IIncidentSvc * | m_incidentSvc |
| Reference to incident service. | |
| Gaudi::RootDataConnection * | m_current |
| On writing: reference to active output stream. | |
| TClass * | m_classRefs |
| TClass pointer to reference class. | |
| TClass * | m_classDO |
| TClass pointer to DataObject class. | |
| RootConnectionSetup * | m_setup |
| Setup structure (ref-counted) and passed to data connections. | |
| std::string | m_currSection |
| Property: ROOT section name. | |
| bool | m_incidentEnabled |
| Property: Flag to enable incidents on FILE_OPEN. | |
| std::string | m_shareFiles |
| Property: Share files ? If set to YES, files will not be closed on finalize. | |
| std::string | m_recordName |
| Property: Records name to fire incident for file records. | |
| std::string | m_ioPerfStats |
| Property: Enable TTree IOperfStats if not empty; otherwise perf stat file name. | |
| std::string | m_compression |
| Property: Compression-algorithm:compression-level. | |
| int | m_autoFlush |
| Property: AutoFlush parameter for ROOT TTree (Number of events between auto flushes) | |
| int | m_basketSize |
| Property: Basket optimization parameter for ROOT TTree (total basket size) | |
| int | m_bufferSize |
| Property: Buffer size optimization parameter for ROOT TTree. | |
| int | m_splitLevel |
| Property: Split level optimization parameter for ROOT TTree. | |
| std::set< std::string > | m_badFiles |
| Set with bad files/tables. | |
| MsgStream * | m_log |
| Message streamer. | |
Protected Attributes inherited from ConversionSvc | |
| SmartIF< IDataProviderSvc > | m_dataSvc |
| Pointer to data provider service. | |
| SmartIF< IAddressCreator > | m_addressCreator |
| Pointer to the address creation service interface. | |
| SmartIF< IConversionSvc > | m_cnvSvc |
| Pointer to the IConversionSvc interface of this. | |
| long | m_type |
| Conversion service type. | |
| Workers * | m_workers |
| List of conversion workers. | |
Additional Inherited Members | |
Public Types inherited from ConversionSvc | |
| typedef std::vector< WorkerEntry > | Workers |
Description:
RootCnvSvc class implementation definition.
Definition at line 54 of file RootCnvSvc.h.
| RootCnvSvc::RootCnvSvc | ( | const std::string & | name, |
| ISvcLocator * | svc | ||
| ) |
Standard constructor.
Definition at line 50 of file RootCnvSvc.cpp.
|
virtual |
Standard destructor.
Definition at line 78 of file RootCnvSvc.cpp.
|
virtual |
Commit pending output.
| outputFile | String containig output file |
| do_commit | if true commit the output and flush eventually pending items to the database if false, discard pending buffers. Note: The possibility to commit or rollback depends on the database technology used! |
fill NULL pointers to all branches, which have less entries than the section branch
Reimplemented from ConversionSvc.
Definition at line 327 of file RootCnvSvc.cpp.
| StatusCode RootCnvSvc::connectDatabase | ( | const std::string & | dataset, |
| int | mode, | ||
| RootDataConnection ** | con | ||
| ) |
Connect the output file to the service with open mode.
| dataset | String containig file name |
| mode | String containig opening mode |
Definition at line 223 of file RootCnvSvc.cpp.
|
virtual |
Connect the output file to the service with open mode.
| outputFile | String containig output file |
| openMode | String containig opening mode of the output file |
Reimplemented from ConversionSvc.
|
virtual |
Connect the output file to the service.
| outputFile | String containig output file |
Reimplemented from ConversionSvc.
|
virtual |
IAddressCreator implementation: Address creation.
Create an address using the link infotmation together with the triple (database name/container name/object name).
| refLink | Reference to abstract link information |
| dbName | Database name |
| containerName | Object container name |
| refpAddress | Opaque address information to retrieve object |
Reimplemented from ConversionSvc.
Definition at line 386 of file RootCnvSvc.cpp.
|
inlinevirtual |
IAddressCreator implementation: Creates an address in string form to object form.
| svc_type | Technology identifier encapsulated in this address. |
| clid | Class identifier of the DataObject represented by the opaque address |
| address | Input address. |
| refpAddress | Output address in string form. |
Reimplemented from ConversionSvc.
Definition at line 206 of file RootCnvSvc.h.
|
virtual |
ConversionSvc overload: Create new Converter using factory.
Reimplemented from ConversionSvc.
Definition at line 157 of file RootCnvSvc.cpp.
|
virtual |
Insert null marker for not existent transient object.
| path | [IN] Path to the (null-)object |
Definition at line 405 of file RootCnvSvc.cpp.
|
virtual |
Insert null marker for not existent transient object.
| path | [IN] Path to the (null-)object |
Definition at line 397 of file RootCnvSvc.cpp.
|
virtual |
Disconnect from an existing data stream.
| dbName | String containing name of the database |
Definition at line 380 of file RootCnvSvc.cpp.
| StatusCode RootCnvSvc::error | ( | const std::string & | msg | ) |
Standard way to print errors.
after the printout an exception is thrown.
| msg | [IN] Message string to be printed. |
Definition at line 83 of file RootCnvSvc.cpp.
|
virtual |
ConversionSvc overload: Finalize Db service.
Reimplemented from ConversionSvc.
Definition at line 126 of file RootCnvSvc.cpp.
|
protected |
Helper: Get TClass for a given DataObject pointer.
Definition at line 187 of file RootCnvSvc.cpp.
|
virtual |
Create transient object from persistent data.
| pAddr | [IN] Pointer to object address. |
| refpObj | [OUT] Location to pointer to store data object |
Definition at line 480 of file RootCnvSvc.cpp.
|
virtual |
Convert the transient object to the requested persistent representation.
| pObj | [IN] Pointer to data object |
| refpAddr | [OUT] Location to store pointer to object address. |
Definition at line 417 of file RootCnvSvc.cpp.
|
virtual |
Resolve the references of the created transient object.
| pAddr | [IN] Pointer to object address. |
| pObj | [IN] Pointer to data object |
Definition at line 511 of file RootCnvSvc.cpp.
|
virtual |
Resolve the references of the converted object.
| pAddr | [IN] Pointer to object address. |
| pObj | [IN] Pointer to data object |
Definition at line 439 of file RootCnvSvc.cpp.
|
virtual |
ConversionSvc overload: initialize Db service.
Reimplemented from ConversionSvc.
Definition at line 94 of file RootCnvSvc.cpp.
|
virtual |
ConversionSvc overload: Load the class (dictionary) for the converter.
Reimplemented from ConversionSvc.
Definition at line 171 of file RootCnvSvc.cpp.
|
inlineprotected |
|
inlinevirtual |
Update state of the service.
Reimplemented from ConversionSvc.
Definition at line 112 of file RootCnvSvc.h.
|
protected |
Property: AutoFlush parameter for ROOT TTree (Number of events between auto flushes)
Definition at line 84 of file RootCnvSvc.h.
|
protected |
Set with bad files/tables.
Definition at line 93 of file RootCnvSvc.h.
|
protected |
Property: Basket optimization parameter for ROOT TTree (total basket size)
Definition at line 86 of file RootCnvSvc.h.
|
protected |
Property: Buffer size optimization parameter for ROOT TTree.
Definition at line 88 of file RootCnvSvc.h.
|
protected |
TClass pointer to DataObject class.
Definition at line 66 of file RootCnvSvc.h.
|
protected |
TClass pointer to reference class.
Definition at line 64 of file RootCnvSvc.h.
|
protected |
Property: Compression-algorithm:compression-level.
Definition at line 81 of file RootCnvSvc.h.
|
protected |
On writing: reference to active output stream.
Definition at line 62 of file RootCnvSvc.h.
|
protected |
Definition at line 70 of file RootCnvSvc.h.
|
protected |
Property: Flag to enable incidents on FILE_OPEN.
Definition at line 73 of file RootCnvSvc.h.
|
protected |
Reference to incident service.
Definition at line 60 of file RootCnvSvc.h.
|
protected |
Reference to the I/O data manager.
Definition at line 58 of file RootCnvSvc.h.
|
protected |
Property: Enable TTree IOperfStats if not empty; otherwise perf stat file name.
Definition at line 79 of file RootCnvSvc.h.
|
protected |
Message streamer.
Definition at line 96 of file RootCnvSvc.h.
|
protected |
Property: Records name to fire incident for file records.
Definition at line 77 of file RootCnvSvc.h.
|
protected |
Setup structure (ref-counted) and passed to data connections.
Definition at line 68 of file RootCnvSvc.h.
|
protected |
Property: Share files ? If set to YES, files will not be closed on finalize.
Definition at line 75 of file RootCnvSvc.h.
|
protected |
Property: Split level optimization parameter for ROOT TTree.
Definition at line 90 of file RootCnvSvc.h.