1 #ifndef SIO_SIOOBJECTHANDLER_H
2 #define SIO_SIOOBJECTHANDLER_H 1
4 #include "EVENT/LCObject.h"
5 #include "EVENT/LCCollection.h"
29 virtual unsigned int read(SIO_stream* stream,
34 virtual unsigned int write(SIO_stream* stream,
42 virtual unsigned int init( SIO_stream* stream,
49 virtual unsigned int readBase(SIO_stream* stream,
54 virtual unsigned int writeBase(SIO_stream* stream,
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
virtual unsigned int init(SIO_stream *stream, SIO_operation op, EVENT::LCCollection *col, unsigned int vers)
Initialize the handler and/or the collection.
Definition: SIOObjectHandler.cc:16
virtual unsigned int readBase(SIO_stream *stream, EVENT::LCObject **objP)
Calls read() if the collection is not a subset otherwise only reads the pointers. ...
Definition: SIOObjectHandler.cc:51
virtual unsigned int writeBase(SIO_stream *stream, const EVENT::LCObject *obj)
Calls write() if the collection is not a subset otherwise only writes the pointers.
Definition: SIOObjectHandler.cc:68
Interface for all lcio object SIO-handlers, has to be implemented for all event entities (hits...
Definition: SIOObjectHandler.h:21
virtual unsigned int read(SIO_stream *stream, EVENT::LCObject **objP)=0
Reads lcio objects from an SIO stream.
virtual unsigned int write(SIO_stream *stream, const EVENT::LCObject *obj)=0
Writes lcio objects to an SIO stream.
The generic collection used in LCIO.
Definition: LCCollection.h:29