LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
SIO::SIORandomAccessHandler Class Reference

Handler for LCIOrandomAccess and LCIOIndex objects/blocks. More...

#include <SIORandomAccessHandler.h>

+ Inheritance diagram for SIO::SIORandomAccessHandler:

Public Member Functions

 ~SIORandomAccessHandler ()=default
 
 SIORandomAccessHandler (const SIORandomAccessHandler &)=delete
 
SIORandomAccessHandleroperator= (const SIORandomAccessHandler &)=delete
 
 SIORandomAccessHandler ()
 Constructor. More...
 
void setRandomAccess (std::shared_ptr< LCIORandomAccess > ra)
 Set the random access object to read or write. More...
 
std::shared_ptr< LCIORandomAccessrandomAccess () const
 Get the random access object to read or write. More...
 
void read (sio::read_device &device, sio::version_type vers) override
 
void write (sio::write_device &device) override
 

Private Attributes

std::shared_ptr< LCIORandomAccess_randomAccess {nullptr}
 The random access object to read / write. More...
 

Detailed Description

Handler for LCIOrandomAccess and LCIOIndex objects/blocks.

Author
gaede
Version
Id:
SIORandomAccessHandler.h,v 1.2 2010-06-22 13:49:54 gaede Exp

Definition at line 19 of file SIORandomAccessHandler.h.

Constructor & Destructor Documentation

SIO::SIORandomAccessHandler::~SIORandomAccessHandler ( )
default
SIO::SIORandomAccessHandler::SIORandomAccessHandler ( const SIORandomAccessHandler )
delete
SIO::SIORandomAccessHandler::SIORandomAccessHandler ( )

Constructor.

Definition at line 13 of file SIORandomAccessHandler.cc.

Member Function Documentation

SIORandomAccessHandler& SIO::SIORandomAccessHandler::operator= ( const SIORandomAccessHandler )
delete
std::shared_ptr< LCIORandomAccess > SIO::SIORandomAccessHandler::randomAccess ( ) const

Get the random access object to read or write.

Definition at line 27 of file SIORandomAccessHandler.cc.

References _randomAccess.

void SIO::SIORandomAccessHandler::read ( sio::read_device &  device,
sio::version_type  vers 
)
override

Definition at line 33 of file SIORandomAccessHandler.cc.

References _randomAccess, and SIO::LCSIO::checkVersion().

void SIO::SIORandomAccessHandler::setRandomAccess ( std::shared_ptr< LCIORandomAccess ra)

Set the random access object to read or write.

Definition at line 21 of file SIORandomAccessHandler.cc.

References _randomAccess.

void SIO::SIORandomAccessHandler::write ( sio::write_device &  device)
override

Definition at line 53 of file SIORandomAccessHandler.cc.

References _randomAccess, and SIO::LCSIO::RandomAccessSize.

Member Data Documentation

std::shared_ptr<LCIORandomAccess> SIO::SIORandomAccessHandler::_randomAccess {nullptr}
private

The random access object to read / write.

Definition at line 40 of file SIORandomAccessHandler.h.

Referenced by randomAccess(), read(), setRandomAccess(), and write().


The documentation for this class was generated from the following files: