ATLAS Offline Software
Public Member Functions | List of all members
pool::RootKeyIOHandler Class Reference

#include <RootKeyIOHandler.h>

Collaboration diagram for pool::RootKeyIOHandler:

Public Member Functions

 RootKeyIOHandler ()
 Initializing constructor. More...
 
virtual ~RootKeyIOHandler ()
 Standard Destructor. More...
 
virtual void release ()
 Release object. More...
 
virtual int write (TClass *cl, const char *knam, const void *obj, int opt, int siz=0) const
 Write object by key: Specification of the object class can considerably speed-up. More...
 
virtual int write (TClass *cl, const char *knam, const char *title, const void *obj, int opt, int siz=0) const
 Write object by key: Specification of the object class can considerably speed-up. More...
 
virtual int read (TKey *key, void **obj) const
 Read object with key. More...
 
virtual int read (const char *knam, void **obj) const
 Read object with key. More...
 
virtual int destroy (const char *knam) const
 Destroy object with key. More...
 

Detailed Description

Definition at line 27 of file RootKeyIOHandler.h.

Constructor & Destructor Documentation

◆ RootKeyIOHandler()

pool::RootKeyIOHandler::RootKeyIOHandler ( )
inline

Initializing constructor.

Definition at line 30 of file RootKeyIOHandler.h.

30 {}

◆ ~RootKeyIOHandler()

virtual pool::RootKeyIOHandler::~RootKeyIOHandler ( )
inlinevirtual

Standard Destructor.

Definition at line 32 of file RootKeyIOHandler.h.

32 {}

Member Function Documentation

◆ destroy()

virtual int pool::RootKeyIOHandler::destroy ( const char *  knam) const
virtual

Destroy object with key.

Destroy object using ROOT Key mode

Parameters
knam[IN] Key-name of the object.
Returns
Number of bytes read from file. 0 or negative on failure.

◆ read() [1/2]

virtual int pool::RootKeyIOHandler::read ( const char *  knam,
void **  obj 
) const
virtual

Read object with key.

Read object using ROOT Key mode

Parameters
knam[IN] Key-name of the object.
obj[IN] Location to store pointer to the object.
Returns
Number of bytes read from file. 0 or negative on failure.

◆ read() [2/2]

virtual int pool::RootKeyIOHandler::read ( TKey *  key,
void **  obj 
) const
virtual

Read object with key.

Read object using ROOT Key mode

Parameters
key[IN] Key of the object.
obj[IN] Location to store pointer to the object.
Returns
Number of bytes read from file. 0 or negative on failure.

◆ release()

virtual void pool::RootKeyIOHandler::release ( )
virtual

Release object.

◆ write() [1/2]

virtual int pool::RootKeyIOHandler::write ( TClass *  cl,
const char *  knam,
const char *  title,
const void *  obj,
int  opt,
int  siz = 0 
) const
virtual

Write object by key: Specification of the object class can considerably speed-up.

Write object using ROOT Key mode

Parameters
cl[IN] ROOT Class of the specified object
knam[IN] Key-name of the object to be written
title[IN] Title of the object to be written
obj[IN] Pointer to the object to be written.
opt[IN] Root write flags.
siz[IN] Optimal buffer size.
Returns
Number of bytes written to file. 0 or negative on failure.

◆ write() [2/2]

virtual int pool::RootKeyIOHandler::write ( TClass *  cl,
const char *  knam,
const void *  obj,
int  opt,
int  siz = 0 
) const
virtual

Write object by key: Specification of the object class can considerably speed-up.

Write object using ROOT Key mode

Parameters
cl[IN] ROOT Class of the specified object
knam[IN] Key-name of the object to be written
obj[IN] Pointer to the object to be written.
opt[IN] Root write flags.
siz[IN] Optimal buffer size.
Returns
Number of bytes written to file. 0 or negative on failure.

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