LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
SIO::SIOObjectHandler Class Referenceabstract

Interface for all lcio object SIO-handlers, has to be implemented for all event entities (hits, tracks, clusters,...). More...

#include <SIOObjectHandler.h>

+ Inheritance diagram for SIO::SIOObjectHandler:

Public Member Functions

 SIOObjectHandler (const std::string &colType)
 Constructor with collection type. More...
 
virtual ~SIOObjectHandler ()=default
 Default destructor. More...
 
unsigned int flag () const
 Get the collection flag. More...
 
const std::stringcollectionType () const
 Get the collection type associated to the object handler (see EVENT/LCIO.h) More...
 
virtual void initReading (sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers)
 Init collection reading. More...
 
virtual void initWriting (sio::write_device &device, EVENT::LCCollection *collection)
 Init collection writing. More...
 
virtual void read (sio::read_device &device, EVENT::LCObject *objP, sio::version_type vers)=0
 Reads lcio objects from an SIO stream. More...
 
virtual void write (sio::write_device &device, const EVENT::LCObject *obj)=0
 Writes lcio objects to an SIO stream. More...
 
virtual EVENT::LCObjectcreate () const =0
 Factory method to create an object of the type of the collection. More...
 

Protected Attributes

const std::string _collectionType
 The collection type associated to LCIO object. More...
 
unsigned int _flag {0}
 The collection flag. More...
 

Detailed Description

Interface for all lcio object SIO-handlers, has to be implemented for all event entities (hits, tracks, clusters,...).

Author
gaede
Version
Id:
SIOObjectHandler.h,v 1.10 2008-11-27 16:53:35 engels Exp

Definition at line 17 of file SIOObjectHandler.h.

Constructor & Destructor Documentation

SIO::SIOObjectHandler::SIOObjectHandler ( const std::string colType)

Constructor with collection type.

Definition at line 10 of file SIOObjectHandler.cc.

virtual SIO::SIOObjectHandler::~SIOObjectHandler ( )
virtualdefault

Default destructor.

Member Function Documentation

const std::string & SIO::SIOObjectHandler::collectionType ( ) const

Get the collection type associated to the object handler (see EVENT/LCIO.h)

Definition at line 23 of file SIOObjectHandler.cc.

References _collectionType.

virtual EVENT::LCObject* SIO::SIOObjectHandler::create ( ) const
pure virtual
unsigned int SIO::SIOObjectHandler::flag ( ) const

Get the collection flag.

Definition at line 17 of file SIOObjectHandler.cc.

References _flag.

Referenced by SIO::SIOSimCalHitHandler::read(), and SIO::SIOSimCalHitHandler::write().

void SIO::SIOObjectHandler::initReading ( sio::read_device &  device,
EVENT::LCCollection collection,
sio::version_type  vers 
)
virtual
void SIO::SIOObjectHandler::initWriting ( sio::write_device &  device,
EVENT::LCCollection collection 
)
virtual
virtual void SIO::SIOObjectHandler::read ( sio::read_device &  device,
EVENT::LCObject objP,
sio::version_type  vers 
)
pure virtual
virtual void SIO::SIOObjectHandler::write ( sio::write_device &  device,
const EVENT::LCObject obj 
)
pure virtual

Member Data Documentation

const std::string SIO::SIOObjectHandler::_collectionType
protected

The collection type associated to LCIO object.

Definition at line 48 of file SIOObjectHandler.h.

Referenced by collectionType().

unsigned int SIO::SIOObjectHandler::_flag {0}
protected

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