![]() |
ATLAS Offline Software
|
This class provides the interface between Athena and RootSvc. More...
#include <RootCnvSvc.h>
Public Member Functions | |
| RootCnvSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
| Standard Service Constructor. | |
| StatusCode | initialize () |
| Gaudi Service Interface method implementations: | |
| StatusCode | finalize () |
| StatusCode | connectOutput (const std::string &file) |
| Connect the output file to the service. | |
| StatusCode | connectOutput (const std::string &file, const std::string &mode) |
| Connect the output file to the service with open mode. | |
| StatusCode | commitOutput (const std::string &output, bool do_commit) |
| Commit pending output. | |
| 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. | |
| StatusCode | convertAddress (const IOpaqueAddress *pAddress, std::string &refAddress) |
| Convert an address to string form. | |
| StatusCode | createAddress (long svc_type, const CLID &clid, const std::string &refAddress, IOpaqueAddress *&refpAddress) |
| Convert an address in string form to object form. | |
| StatusCode | updateServiceState (IOpaqueAddress *pAddress) |
| Update state of the service. | |
Protected Member Functions | |
| IConverter * | createConverter (long typ, const CLID &clid, const ICnvFactory *fac) |
| Create new converter using factory. | |
| RootType | getType (const CLID &clid) const |
| RootType | getType (const std::type_info &type) const |
| const Token * | writeObject (const std::string &key, const RootType &typeDesc, const void *pObj, ITPCnvBase *tpConverter=0) |
| Write object of a given class to Root, using optional T/P converter. | |
| ITPCnvBase * | getTPConverter (const CLID &clid) const |
| Get T/P converter for a transient class. | |
Private Member Functions | |
| RootCnvSvc () | |
| Default constructor: | |
| RootCnvSvc (const RootCnvSvc &) | |
| RootCnvSvc & | operator= (const RootCnvSvc &) |
Private Attributes | |
| ServiceHandle< ::IDictLoaderSvc > | m_dictSvc |
| ServiceHandle to the dictionary service. | |
| ServiceHandle< ::ITPCnvSvc > | m_tpCnvSvc |
| ServiceHandle to the T/P conversion service. | |
| ServiceHandle< ::IRootSvc > | m_rootSvc |
| ServiceHandle to the root service. | |
| std::string | m_treeName |
| ROOT TTree name. | |
This class provides the interface between Athena and RootSvc.
Definition at line 35 of file RootCnvSvc.h.
| Athena::RootCnvSvc::RootCnvSvc | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Standard Service Constructor.
Definition at line 31 of file RootCnvSvc.cxx.
|
private |
Default constructor:
|
private |
| StatusCode Athena::RootCnvSvc::commitOutput | ( | const std::string & | output, |
| bool | do_commit ) |
Commit pending output.
Definition at line 83 of file RootCnvSvc.cxx.
| StatusCode Athena::RootCnvSvc::connectOutput | ( | const std::string & | file | ) |
Connect the output file to the service.
Definition at line 78 of file RootCnvSvc.cxx.
Connect the output file to the service with open mode.
Definition at line 59 of file RootCnvSvc.cxx.
| StatusCode Athena::RootCnvSvc::convertAddress | ( | const IOpaqueAddress * | pAddress, |
| std::string & | refAddress ) |
Convert an address to string form.
Definition at line 102 of file RootCnvSvc.cxx.
| StatusCode Athena::RootCnvSvc::createAddress | ( | long | svc_type, |
| const CLID & | clid, | ||
| const std::string & | refAddress, | ||
| IOpaqueAddress *& | refpAddress ) |
Convert an address in string form to object form.
Definition at line 107 of file RootCnvSvc.cxx.
| StatusCode Athena::RootCnvSvc::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.
Definition at line 87 of file RootCnvSvc.cxx.
|
protected |
Create new converter using factory.
Definition at line 161 of file RootCnvSvc.cxx.
| StatusCode Athena::RootCnvSvc::finalize | ( | ) |
Definition at line 54 of file RootCnvSvc.cxx.
|
protected |
RootType-based API Load the class (dictionary) from Root.
Definition at line 127 of file RootCnvSvc.cxx.
Definition at line 131 of file RootCnvSvc.cxx.
| StatusCode Athena::RootCnvSvc::initialize | ( | ) |
Gaudi Service Interface method implementations:
Definition at line 39 of file RootCnvSvc.cxx.
|
private |
| StatusCode Athena::RootCnvSvc::updateServiceState | ( | IOpaqueAddress * | pAddress | ) |
Update state of the service.
Definition at line 120 of file RootCnvSvc.cxx.
|
protected |
Write object of a given class to Root, using optional T/P converter.
Definition at line 136 of file RootCnvSvc.cxx.
|
private |
ServiceHandle to the dictionary service.
Definition at line 102 of file RootCnvSvc.h.
|
private |
ServiceHandle to the root service.
Definition at line 106 of file RootCnvSvc.h.
|
private |
ServiceHandle to the T/P conversion service.
Definition at line 104 of file RootCnvSvc.h.
|
private |
ROOT TTree name.
Definition at line 109 of file RootCnvSvc.h.