![]() |
ATLAS Offline Software
|
This class provides the interface to the ROOT software. More...
#include <RootSvc.h>
Public Member Functions | |
| RootSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
| Standard Service Constructor. | |
| StatusCode | initialize () |
| Gaudi Service Interface method implementations: | |
| StatusCode | finalize () |
| StatusCode | open (const std::string &fname, const std::string &mode) |
| Open the file fname with open mode mode | |
| StatusCode | connect (const std::string &fname) |
| Connect the file fname to the service. | |
| StatusCode | commitOutput () |
| Commit data and flush buffer. | |
| StatusCode | disconnect (const std::string &fname) |
| Disconnect the file fname from the service. | |
| Athena::RootConnection * | connection (const std::string &fname) |
| Get the RootConnection associated with file fname | |
| virtual | ~RootSvc () |
| Destructor. | |
| RootType | getType (const std::type_info &type) const |
| Load the type (dictionary) from Root. | |
| void * | readObject (const Token &token, void *&pObj) |
| Read object from Root. | |
| const Token * | writeObject (const Placement &placement, const RootType &type, const void *pObj) |
| Write object of a given class to Root. | |
| void * | createObject (const RootType &type) const |
| Create an object of a given RootType. | |
| void | destructObject (const RootType &type, void *pObj) const |
| Destruct a given object of type RootType. | |
Private Types | |
| typedef std::map< Guid, Athena::RootConnection * > | ConnMap_t |
Private Member Functions | |
| RootSvc () | |
| Default constructor: | |
| RootSvc (const RootSvc &) | |
| RootSvc & | operator= (const RootSvc &) |
Private Attributes | |
| pool::IFileCatalog * | m_catalog |
| ConnMap_t | m_conns |
| Map of file name keys and connection values. | |
| Athena::RootConnection * | m_wconn |
| ServiceHandle< ::IDictLoaderSvc > | m_dictSvc |
| ServiceHandle to the dictionary service. | |
|
private |
| Athena::RootSvc::RootSvc | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Standard Service Constructor.
Definition at line 27 of file RootSvc.cxx.
|
virtual |
Destructor.
Definition at line 35 of file RootSvc.cxx.
|
private |
Default constructor:
|
private |
| StatusCode Athena::RootSvc::commitOutput | ( | ) |
Commit data and flush buffer.
Definition at line 156 of file RootSvc.cxx.
| StatusCode Athena::RootSvc::connect | ( | const std::string & | fname | ) |
Connect the file fname to the service.
Definition at line 141 of file RootSvc.cxx.
| Athena::RootConnection * Athena::RootSvc::connection | ( | const std::string & | fname | ) |
Get the RootConnection associated with file fname
Definition at line 189 of file RootSvc.cxx.
| void * Athena::RootSvc::createObject | ( | const RootType & | type | ) | const |
Create an object of a given RootType.
Definition at line 104 of file RootSvc.cxx.
| void Athena::RootSvc::destructObject | ( | const RootType & | type, |
| void * | pObj ) const |
| StatusCode Athena::RootSvc::disconnect | ( | const std::string & | fname | ) |
Disconnect the file fname from the service.
Definition at line 170 of file RootSvc.cxx.
| StatusCode Athena::RootSvc::finalize | ( | ) |
Definition at line 61 of file RootSvc.cxx.
| RootType Athena::RootSvc::getType | ( | const std::type_info & | type | ) | const |
Load the type (dictionary) from Root.
RootType-base interface Load the type (dictionary) from Root.
Definition at line 75 of file RootSvc.cxx.
| StatusCode Athena::RootSvc::initialize | ( | ) |
Gaudi Service Interface method implementations:
Definition at line 42 of file RootSvc.cxx.
| StatusCode Athena::RootSvc::open | ( | const std::string & | fname, |
| const std::string & | mode ) |
Open the file fname with open mode mode
Definition at line 114 of file RootSvc.cxx.
| void * Athena::RootSvc::readObject | ( | const Token & | token, |
| void *& | pObj ) |
| const Token * Athena::RootSvc::writeObject | ( | const Placement & | placement, |
| const RootType & | type, | ||
| const void * | pObj ) |
Write object of a given class to Root.
Definition at line 85 of file RootSvc.cxx.
|
private |
|
private |
|
private |
ServiceHandle to the dictionary service.
|
private |