ATLAS Offline Software
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 ()
 
 DeclareInterfaceID (IRootSvc, 1, 0)
 Declare interface ID. More...
 
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...
 

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.

◆ connect()

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

Connect the file fname to the service.

◆ 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

◆ createObject()

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

Create an object of a given RootType.

◆ DeclareInterfaceID()

IRootSvc::DeclareInterfaceID ( IRootSvc  ,
,
 
)

Declare interface ID.

◆ destructObject()

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

Destruct a given object of type RootType.

◆ disconnect()

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

Disconnect the file fname from the service.

◆ getType()

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

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

◆ open()

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

Open the file fname with open mode mode

◆ readObject()

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

Read object from Root.

◆ 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.


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