LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SIORandomAccessHandler.h
Go to the documentation of this file.
1 #ifndef SIO_SIORandomAccessHandler_H
2 #define SIO_SIORandomAccessHandler_H 1
3 
4 // -- sio headers
5 #include "sio/block.h"
6 
7 // -- std headers
8 #include <memory>
9 
10 namespace SIO {
11 
12  class LCIORandomAccess ;
13 
19  class SIORandomAccessHandler : public sio::block {
20  public:
21  ~SIORandomAccessHandler() = default ;
24 
27 
30 
33 
34  // from sio::block
35  void read( sio::read_device &device, sio::version_type vers ) override ;
36  void write( sio::write_device &device ) override ;
37 
38  private:
41  }; // class
42 
43 } // namespace
44 
45 #endif /* ifndef SIO_SIORUNHEADERHANDLER_H */
std::shared_ptr< LCIORandomAccess > _randomAccess
The random access object to read / write.
void write(sio::write_device &device) override
std::shared_ptr< LCIORandomAccess > randomAccess() const
Get the random access object to read or write.
SIORandomAccessHandler & operator=(const SIORandomAccessHandler &)=delete
Handler for LCIOrandomAccess and LCIOIndex objects/blocks.
void setRandomAccess(std::shared_ptr< LCIORandomAccess > ra)
Set the random access object to read or write.
void read(sio::read_device &device, sio::version_type vers) override