ATLAS Offline Software
Public Member Functions | Static Public Member Functions | List of all members
IRootSvc Class Referenceabstract

This class provides the interface to the ROOT software. More...

#include <IRootSvc.h>

Inheritance diagram for IRootSvc:
Collaboration diagram for IRootSvc:

Public Member Functions

virtual ~IRootSvc ()
 
virtual StatusCode open (const std::string &fname, const std::string &mode)=0
 Open the file fname with open mode mode More...
 
virtual StatusCode connect (const std::string &fname)=0
 Connect the file fname to the service. More...
 
virtual StatusCode commitOutput ()=0
 Commit data and flush buffer. More...
 
virtual StatusCode disconnect (const std::string &fname)=0
 Disconnect the file fname from the service. More...
 
virtual Athena::RootConnectionconnection (const std::string &fname)=0
 Get the RootConnection associated with file fname More...
 
virtual RootType getType (const std::type_info &type) const =0
 
virtual void * readObject (const Token &token, void *&pObj)=0
 Read object from Root. More...
 
virtual const TokenwriteObject (const Placement &placement, const RootType &type, const void *pObj)=0
 Write object of a given class to Root. More...
 
virtual void * createObject (const RootType &type) const =0
 Create an object of a given RootType. More...
 
virtual void destructObject (const RootType &type, void *pObj) const =0
 Destruct a given object of type RootType. More...
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 Retrieve interface ID. More...
 

Detailed Description

This class provides the interface to the ROOT software.

Definition at line 32 of file IRootSvc.h.

Constructor & Destructor Documentation

◆ ~IRootSvc()

IRootSvc::~IRootSvc ( )
virtual

Definition at line 17 of file IRootSvc.cxx.

17 {}

Member Function Documentation

◆ commitOutput()

virtual StatusCode IRootSvc::commitOutput ( )
pure virtual

Commit data and flush buffer.

Implemented in Athena::RootSvc.

◆ connect()

virtual StatusCode IRootSvc::connect ( const std::string &  fname)
pure virtual

Connect the file fname to the service.

Implemented in Athena::RootSvc.

◆ connection()

virtual Athena::RootConnection* IRootSvc::connection ( const std::string &  fname)
pure virtual

Get the RootConnection associated with file fname

Returns
NULL if no such file is known to this service

Implemented in Athena::RootSvc.

◆ createObject()

virtual void* IRootSvc::createObject ( const RootType type) const
pure virtual

Create an object of a given RootType.

Implemented in Athena::RootSvc.

◆ destructObject()

virtual void IRootSvc::destructObject ( const RootType type,
void *  pObj 
) const
pure virtual

Destruct a given object of type RootType.

Implemented in Athena::RootSvc.

◆ disconnect()

virtual StatusCode IRootSvc::disconnect ( const std::string &  fname)
pure virtual

Disconnect the file fname from the service.

Implemented in Athena::RootSvc.

◆ getType()

virtual RootType IRootSvc::getType ( const std::type_info &  type) const
pure virtual

RootType-base interface Load the type (dictionary) from Root.

Implemented in Athena::RootSvc.

◆ interfaceID()

static const InterfaceID& IRootSvc::interfaceID ( )
inlinestatic

Retrieve interface ID.

Definition at line 37 of file IRootSvc.h.

37  {
38  static const InterfaceID s_iid("IRootSvc", 1, 0);
39  return s_iid;
40  }

◆ open()

virtual StatusCode IRootSvc::open ( const std::string &  fname,
const std::string &  mode 
)
pure virtual

Open the file fname with open mode mode

Implemented in Athena::RootSvc.

◆ readObject()

virtual void* IRootSvc::readObject ( const Token token,
void *&  pObj 
)
pure virtual

Read object from Root.

Implemented in Athena::RootSvc.

◆ writeObject()

virtual const Token* IRootSvc::writeObject ( const Placement placement,
const RootType type,
const void *  pObj 
)
pure virtual

Write object of a given class to Root.

Implemented in Athena::RootSvc.


The documentation for this class was generated from the following files: