1 #ifndef SIO_SIOOBJECTHANDLER_H
2 #define SIO_SIOOBJECTHANDLER_H 1
7 #include <sio/definitions.h>
26 unsigned int flag()
const ;
38 virtual void read( sio::read_device& device,
EVENT::LCObject* objP, sio::version_type vers ) = 0 ;
virtual void read(sio::read_device &device, EVENT::LCObject *objP, sio::version_type vers)=0
Reads lcio objects from an SIO stream.
The generic object that is held in an LCCollection.
virtual ~SIOObjectHandler()=default
Default destructor.
virtual EVENT::LCObject * create() const =0
Factory method to create an object of the type of the collection.
Interface for all lcio object SIO-handlers, has to be implemented for all event entities (hits...
unsigned int _flag
The collection flag.
virtual void initReading(sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers)
Init collection reading.
virtual void write(sio::write_device &device, const EVENT::LCObject *obj)=0
Writes lcio objects to an SIO stream.
unsigned int flag() const
Get the collection flag.
virtual void initWriting(sio::write_device &device, EVENT::LCCollection *collection)
Init collection writing.
The generic collection used in LCIO.
SIOObjectHandler(const std::string &colType)
Constructor with collection type.
const std::string _collectionType
The collection type associated to LCIO object.
const std::string & collectionType() const
Get the collection type associated to the object handler (see EVENT/LCIO.h)