LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
SIOVertexHandler.h
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 
23  public:
24 
25  virtual ~SIOVertexHandler() ;
26 
27  virtual unsigned int init( SIO_stream* stream,
28  SIO_operation op,
30  unsigned int vers ) ;
31 
34  virtual unsigned int read(SIO_stream* stream, EVENT::LCObject** objP) ;
35 
38  virtual unsigned int write(SIO_stream* stream, const EVENT::LCObject* obj) ;
39 
40  protected:
41  std::map<int,std::string> imr; //indexmap for reading
42  //std::map<std::string,int> imw; //indexmap for writing (used with FIFO)
43  std::set<std::string> _set;
44  EVENT::StringVec parameters; //needed for putting the collection parameters into the STL Containers
45 
46  }; // class
47 } // namespace
48 
49 #endif /* ifndef SIO_SIOVERTEXHANDLER_H */
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
std::vector< std::string > StringVec
Vector of strings.
Definition: LCIOSTLTypes.h:16
virtual unsigned int write(SIO_stream *stream, const EVENT::LCObject *obj)
Writes lcio Vertex objects to an SIO stream.
Definition: SIOVertexHandler.cc:158
Interface for all lcio object SIO-handlers, has to be implemented for all event entities (hits...
Definition: SIOObjectHandler.h:21
Implementation of SIOObjectHandler to handle IO of Vertexes.
Definition: SIOVertexHandler.h:21
virtual unsigned int read(SIO_stream *stream, EVENT::LCObject **objP)
Reads lcio Vertex objects from an SIO stream.
Definition: SIOVertexHandler.cc:110
The generic collection used in LCIO.
Definition: LCCollection.h:29
virtual unsigned int init(SIO_stream *stream, SIO_operation op, EVENT::LCCollection *col, unsigned int vers)
Initialize the handler and/or the collection.
Definition: SIOVertexHandler.cc:27