5 #include <sio/io_device.h>
6 #include <sio/version.h>
11 _collectionType( colType ) {
30 SIO_SDATA( device ,
_flag ) ;
32 if( vers > SIO_VERSION_ENCODE( 1, 1 ) ) {
41 SIO_SDATA( device ,
_flag ) ;
static void write(sio::write_device &device, const EVENT::LCParameters ¶ms)
Writes lcio objects to an SIO stream.
virtual void setFlag(int flag)=0
Set the flag word.
unsigned int _flag
The collection flag.
virtual void initReading(sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers)
Init collection reading.
unsigned int flag() const
Get the collection flag.
virtual int getFlag() const =0
Returns flag word for collection.
virtual void initWriting(sio::write_device &device, EVENT::LCCollection *collection)
Init collection writing.
virtual LCParameters & parameters()=0
Parameters defined for this collection.
The generic collection used in LCIO.
static void read(sio::read_device &device, EVENT::LCParameters ¶ms, sio::version_type vers)
Reads objects from an SIO stream.
SIOObjectHandler(const std::string &colType)
Constructor with collection type.
const std::string _collectionType
The collection type associated to LCIO object.
virtual const LCParameters & getParameters() const =0
Parameters defined for this collection.
const std::string & collectionType() const
Get the collection type associated to the object handler (see EVENT/LCIO.h)