LCIO
02.17
|
Implementation of SIOObjectHandler to handle IO of LCGenericObjects. More...
#include <SIOLCGenericObjectHandler.h>
Public Member Functions | |
SIOLCGenericObjectHandler () | |
Constructor. More... | |
void | initReading (sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers) override |
Init collection reading. More... | |
void | initWriting (sio::write_device &device, EVENT::LCCollection *collection) override |
Init collection reading. More... | |
void | read (sio::read_device &device, EVENT::LCObject *objP, sio::version_type vers) override |
Reads lcio objects from an SIO stream. More... | |
void | write (sio::write_device &device, const EVENT::LCObject *obj) override |
Writes lcio objects to an SIO stream. More... | |
EVENT::LCObject * | create () const override |
Factory method to create an object of the type of the collection. More... | |
![]() | |
SIOObjectHandler (const std::string &colType) | |
Constructor with collection type. More... | |
virtual | ~SIOObjectHandler ()=default |
Default destructor. More... | |
unsigned int | flag () const |
Get the collection flag. More... | |
const std::string & | collectionType () const |
Get the collection type associated to the object handler (see EVENT/LCIO.h) More... | |
Private Attributes | |
int | _nInt {0} |
int | _nFloat {0} |
int | _nDouble {0} |
bool | _isFixedSize {false} |
Additional Inherited Members | |
![]() | |
const std::string | _collectionType |
The collection type associated to LCIO object. More... | |
unsigned int | _flag {0} |
The collection flag. More... | |
Implementation of SIOObjectHandler to handle IO of LCGenericObjects.
Definition at line 13 of file SIOLCGenericObjectHandler.h.
SIO::SIOLCGenericObjectHandler::SIOLCGenericObjectHandler | ( | ) |
Constructor.
Definition at line 14 of file SIOLCGenericObjectHandler.cc.
|
overridevirtual |
Factory method to create an object of the type of the collection.
Implements SIO::SIOObjectHandler.
Definition at line 126 of file SIOLCGenericObjectHandler.cc.
|
overridevirtual |
Init collection reading.
Reimplemented from SIO::SIOObjectHandler.
Definition at line 21 of file SIOLCGenericObjectHandler.cc.
References SIO::SIOObjectHandler::_flag, _isFixedSize, _nDouble, _nFloat, _nInt, IMPL::LCFlagImpl::bitSet(), and SIO::SIOObjectHandler::initReading().
|
overridevirtual |
Init collection reading.
Reimplemented from SIO::SIOObjectHandler.
Definition at line 33 of file SIOLCGenericObjectHandler.cc.
References SIO::SIOObjectHandler::_flag, _isFixedSize, _nDouble, _nFloat, _nInt, std::string::empty(), EVENT::LCCollection::getElementAt(), EVENT::LCCollection::getFlag(), EVENT::LCCollection::getNumberOfElements(), EVENT::LCParameters::getStringVal(), SIO::SIOObjectHandler::initWriting(), EVENT::LCCollection::parameters(), EVENT::LCCollection::setFlag(), and EVENT::LCParameters::setValue().
|
overridevirtual |
Reads lcio objects from an SIO stream.
Implements SIO::SIOObjectHandler.
Definition at line 82 of file SIOLCGenericObjectHandler.cc.
References _isFixedSize, IMPL::LCGenericObjectImpl::_isFixedSize, _nDouble, _nFloat, and _nInt.
|
overridevirtual |
Writes lcio objects to an SIO stream.
Implements SIO::SIOObjectHandler.
Definition at line 101 of file SIOLCGenericObjectHandler.cc.
References _isFixedSize, _nDouble, _nFloat, and _nInt.
|
private |
Definition at line 37 of file SIOLCGenericObjectHandler.h.
Referenced by initReading(), initWriting(), read(), and write().
|
private |
Definition at line 36 of file SIOLCGenericObjectHandler.h.
Referenced by initReading(), initWriting(), read(), and write().
|
private |
Definition at line 35 of file SIOLCGenericObjectHandler.h.
Referenced by initReading(), initWriting(), read(), and write().
|
private |
Definition at line 34 of file SIOLCGenericObjectHandler.h.
Referenced by initReading(), initWriting(), read(), and write().