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::SIOCollectionHandler Class Reference

Handler for LCCollection/LCCollectionIOVec objects for SIO. More...

#include <SIOCollectionHandler.h>

+ Inheritance diagram for SIO::SIOCollectionHandler:

Public Member Functions

 SIOCollectionHandler ()=delete
 
 SIOCollectionHandler (const SIOCollectionHandler &)=delete
 
SIOCollectionHandleroperator= (const SIOCollectionHandler &)=delete
 
 ~SIOCollectionHandler ()=default
 
 SIOCollectionHandler (const std::string &name, std::shared_ptr< SIOObjectHandler > handler)
 Constructor with collection (block) name and object handler. More...
 
const std::stringtype () const
 Get the collection type. More...
 
void setCollection (EVENT::LCCollection *col)
 Set the collection to read/write. More...
 
void read (sio::read_device &device, sio::version_type vers) override
 
void write (sio::write_device &device) override
 

Private Attributes

EVENT::LCCollection_collection {nullptr}
 The collection to read/write. More...
 
std::shared_ptr< SIOObjectHandler_handler {nullptr}
 The object handler for reading/writing. More...
 

Detailed Description

Handler for LCCollection/LCCollectionIOVec objects for SIO.

Author
gaede
Version
Id:
SIOCollectionHandler.h,v 1.8 2005-04-15 08:37:42 gaede Exp

Definition at line 23 of file SIOCollectionHandler.h.

Constructor & Destructor Documentation

SIO::SIOCollectionHandler::SIOCollectionHandler ( )
delete
SIO::SIOCollectionHandler::SIOCollectionHandler ( const SIOCollectionHandler )
delete
SIO::SIOCollectionHandler::~SIOCollectionHandler ( )
default
SIO::SIOCollectionHandler::SIOCollectionHandler ( const std::string name,
std::shared_ptr< SIOObjectHandler handler 
)

Constructor with collection (block) name and object handler.

Definition at line 16 of file SIOCollectionHandler.cc.

Member Function Documentation

SIOCollectionHandler& SIO::SIOCollectionHandler::operator= ( const SIOCollectionHandler )
delete
void SIO::SIOCollectionHandler::read ( sio::read_device &  device,
sio::version_type  vers 
)
override
void SIO::SIOCollectionHandler::setCollection ( EVENT::LCCollection col)

Set the collection to read/write.

Definition at line 30 of file SIOCollectionHandler.cc.

References _collection.

const std::string & SIO::SIOCollectionHandler::type ( ) const

Get the collection type.

Definition at line 24 of file SIOCollectionHandler.cc.

References _handler.

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

Member Data Documentation

EVENT::LCCollection* SIO::SIOCollectionHandler::_collection {nullptr}
private

The collection to read/write.

Definition at line 46 of file SIOCollectionHandler.h.

Referenced by read(), setCollection(), and write().

std::shared_ptr<SIOObjectHandler> SIO::SIOCollectionHandler::_handler {nullptr}
private

The object handler for reading/writing.

Definition at line 48 of file SIOCollectionHandler.h.

Referenced by read(), type(), and write().


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