|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef ATHENAROOTCOMPS_ROOTSVC_H
12 #define ATHENAROOTCOMPS_ROOTSVC_H 1
23 #include "GaudiKernel/ServiceHandle.h"
32 namespace pool {
class IFileCatalog; }
33 namespace Athena {
class RootConnection; }
39 class RootSvc :
public extends<::AthService, ::IRootSvc> {
43 RootSvc(
const std::string&
name, ISvcLocator* pSvcLocator);
94 typedef std::map<Guid, Athena::RootConnection*>
ConnMap_t;
This class provides the implementation of Athena::RootConnection class, similar to Gaudi IDataConnect...
This class provides the interface to the ROOT software.
StatusCode initialize()
Gaudi Service Interface method implementations:
This class holds all the necessary information to guide the writing of an object in a physical place.
ServiceHandle< ::IDictLoaderSvc > m_dictSvc
ServiceHandle to the dictionary service.
pool::IFileCatalog * m_catalog
ConnMap_t m_conns
Map of file name keys and connection values.
RootSvc & operator=(const RootSvc &)
virtual ~RootSvc()
Destructor.
RootType getType(const std::type_info &type) const
Load the type (dictionary) from Root.
std::map< Guid, Athena::RootConnection * > ConnMap_t
This class provides a token that identifies in a unique way objects on the persistent storage.
StatusCode connect(const std::string &fname)
Connect the file fname to the service.
StatusCode disconnect(const std::string &fname)
Disconnect the file fname from the service.
Some weak symbol referencing magic...
::StatusCode StatusCode
StatusCode definition for legacy code.
Athena::RootConnection * m_wconn
const Token * writeObject(const Placement &placement, const RootType &type, const void *pObj)
Write object of a given class to Root.
Athena::RootConnection * connection(const std::string &fname)
Get the RootConnection associated with file fname
StatusCode open(const std::string &fname, const std::string &mode)
Open the file fname with open mode mode
StatusCode commitOutput()
Commit data and flush buffer.
void destructObject(const RootType &type, void *pObj) const
Destruct a given object of type RootType.
void * readObject(const Token &token, void *&pObj)
Read object from Root.
This file contains the class definition for the IRootSvc interface class.
void * createObject(const RootType &type) const
Create an object of a given RootType.
This file contains the class definition for the Guid class (migrated from POOL).
RootSvc()
Default constructor: