LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SIOLCGenericObjectHandler.h
Go to the documentation of this file.
1 #ifndef SIO_SIOLCGENERICOBJECTHANDLER_H
2 #define SIO_SIOLCGENERICOBJECTHANDLER_H 1
3 
4 #include "SIO/SIOObjectHandler.h"
5 
6 namespace SIO {
7 
14  public:
17 
19  void initReading( sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers ) override ;
20 
22  void initWriting( sio::write_device &device, EVENT::LCCollection *collection ) override ;
23 
25  void read( sio::read_device& device, EVENT::LCObject* objP, sio::version_type vers ) override ;
26 
28  void write( sio::write_device& device, const EVENT::LCObject* obj ) override ;
29 
31  EVENT::LCObject *create() const override ;
32 
33  private:
34  int _nInt {0} ;
35  int _nFloat {0} ;
36  int _nDouble {0} ;
37  bool _isFixedSize {false} ;
38 
39  }; // class
40 
41 } // namespace
42 #endif /* ifndef SIO_SIOLCGENERICOBJECTHANDLER_H */
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
Implementation of SIOObjectHandler to handle IO of LCGenericObjects.
void initWriting(sio::write_device &device, EVENT::LCCollection *collection) override
Init collection reading.
void read(sio::read_device &device, EVENT::LCObject *objP, sio::version_type vers) override
Reads lcio objects from an SIO stream.
EVENT::LCObject * create() const override
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...
void write(sio::write_device &device, const EVENT::LCObject *obj) override
Writes lcio objects to an SIO stream.
The generic collection used in LCIO.
Definition: LCCollection.h:29
void initReading(sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers) override
Init collection reading.