LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SIOVertexHandler.h
Go to the documentation of this file.
1 #ifndef SIO_SIOVERTEXHANDLER_H
2 #define SIO_SIOVERTEXHANDLER_H 1
3 
4 #include "SIO/SIOObjectHandler.h"
5 // #include "LCIOSTLTypes.h"
6 #include "EVENT/LCParameters.h"
7 
8 #include <map>
9 #include <set>
10 #include <string>
11 
12 namespace SIO {
13 
14 
22  public:
25 
27  void initReading( sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers ) override ;
28 
30  void initWriting( sio::write_device &device, EVENT::LCCollection *collection ) override ;
31 
33  void read( sio::read_device& device, EVENT::LCObject* objP, sio::version_type vers ) override ;
34 
36  void write( sio::write_device& device, const EVENT::LCObject* obj ) override ;
37 
39  EVENT::LCObject *create() const override ;
40 
41  protected:
42  std::map<int,std::string> _imr {}; //indexmap for reading
44  EVENT::StringVec _parameters {}; //needed for putting the collection parameters into the STL Containers
45  }; // class
46 } // namespace
47 
48 #endif /* ifndef SIO_SIOVERTEXHANDLER_H */
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
void initWriting(sio::write_device &device, EVENT::LCCollection *collection) override
Init collection reading.
SIOVertexHandler()
Constructor.
Interface for all lcio object SIO-handlers, has to be implemented for all event entities (hits...
EVENT::StringVec _parameters
void initReading(sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers) override
Init collection reading.
Implementation of SIOObjectHandler to handle IO of Vertexes.
std::set< std::string > _set
void read(sio::read_device &device, EVENT::LCObject *objP, sio::version_type vers) override
Reads lcio objects from an SIO stream.
The generic collection used in LCIO.
Definition: LCCollection.h:29
void write(sio::write_device &device, const EVENT::LCObject *obj) override
Writes lcio objects to an SIO stream.
EVENT::LCObject * create() const override
Factory method to create an object of the type of the collection.
std::map< int, std::string > _imr