LCIO
02.17
|
Handler for LCCollection/LCCollectionIOVec objects for SIO. More...
#include <SIOCollectionHandler.h>
Public Member Functions | |
SIOCollectionHandler ()=delete | |
SIOCollectionHandler (const SIOCollectionHandler &)=delete | |
SIOCollectionHandler & | operator= (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::string & | type () 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... | |
Handler for LCCollection/LCCollectionIOVec objects for SIO.
Definition at line 23 of file SIOCollectionHandler.h.
|
delete |
|
delete |
|
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.
|
delete |
|
override |
Definition at line 36 of file SIOCollectionHandler.cc.
References _collection, _handler, EVENT::LCCollection::BITSubset, std::vector< T >::resize(), and std::stringstream::str().
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.
|
override |
Definition at line 75 of file SIOCollectionHandler.cc.
References _collection, _handler, EVENT::LCCollection::BITSubset, EVENT::LCCollection::getElementAt(), and EVENT::LCCollection::getNumberOfElements().
|
private |
The collection to read/write.
Definition at line 46 of file SIOCollectionHandler.h.
Referenced by read(), setCollection(), and write().
|
private |
The object handler for reading/writing.
Definition at line 48 of file SIOCollectionHandler.h.