LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SIOCollectionHandler.h
Go to the documentation of this file.
1 #ifndef SIO_SIOCOLLECTIONHANDLER_H
2 #define SIO_SIOCOLLECTIONHANDLER_H 1
3 
4 // -- std headers
5 #include <string>
6 #include <memory>
7 
8 // -- lcio headers
9 #include "EVENT/LCCollection.h"
10 
11 // -- sio headers
12 #include <sio/block.h>
13 
14 namespace SIO {
15 
16  class SIOObjectHandler ;
17 
23  class SIOCollectionHandler : public sio::block {
24  public:
25  SIOCollectionHandler() = delete ;
28  ~SIOCollectionHandler() = default ;
29 
30  public:
33 
35  const std::string &type() const ;
36 
38  void setCollection( EVENT::LCCollection *col ) ;
39 
40  // from sio::block
41  void read( sio::read_device &device, sio::version_type vers ) override ;
42  void write( sio::write_device &device ) override ;
43 
44  private:
49  };
50 
51 } // namespace
52 #endif /* ifndef SIO_SIOCOLLECTIONHANDLER_H */
Handler for LCCollection/LCCollectionIOVec objects for SIO.
EVENT::LCCollection * _collection
The collection to read/write.
const std::string & type() const
Get the collection type.
std::shared_ptr< SIOObjectHandler > _handler
The object handler for reading/writing.
void read(sio::read_device &device, sio::version_type vers) override
STL class.
void write(sio::write_device &device) override
SIOCollectionHandler & operator=(const SIOCollectionHandler &)=delete
The generic collection used in LCIO.
Definition: LCCollection.h:29
void setCollection(EVENT::LCCollection *col)
Set the collection to read/write.