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

Implementation of SIOObjectHandler to handle IO of LCGenericObjects. More...

#include <SIOLCGenericObjectHandler.h>

+ Inheritance diagram for SIO::SIOLCGenericObjectHandler:

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::LCObjectcreate () const override
 Factory method to create an object of the type of the collection. More...
 
- Public Member Functions inherited from SIO::SIOObjectHandler
 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::stringcollectionType () 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

- Protected Attributes inherited from SIO::SIOObjectHandler
const std::string _collectionType
 The collection type associated to LCIO object. More...
 
unsigned int _flag {0}
 The collection flag. More...
 

Detailed Description

Implementation of SIOObjectHandler to handle IO of LCGenericObjects.

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

Definition at line 13 of file SIOLCGenericObjectHandler.h.

Constructor & Destructor Documentation

SIO::SIOLCGenericObjectHandler::SIOLCGenericObjectHandler ( )

Constructor.

Definition at line 14 of file SIOLCGenericObjectHandler.cc.

Member Function Documentation

EVENT::LCObject * SIO::SIOLCGenericObjectHandler::create ( ) const
overridevirtual

Factory method to create an object of the type of the collection.

Implements SIO::SIOObjectHandler.

Definition at line 126 of file SIOLCGenericObjectHandler.cc.

void SIO::SIOLCGenericObjectHandler::initReading ( sio::read_device &  device,
EVENT::LCCollection collection,
sio::version_type  vers 
)
overridevirtual
void SIO::SIOLCGenericObjectHandler::initWriting ( sio::write_device &  device,
EVENT::LCCollection collection 
)
overridevirtual
void SIO::SIOLCGenericObjectHandler::read ( sio::read_device &  device,
EVENT::LCObject objP,
sio::version_type  vers 
)
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.

void SIO::SIOLCGenericObjectHandler::write ( sio::write_device &  device,
const EVENT::LCObject obj 
)
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.

Member Data Documentation

bool SIO::SIOLCGenericObjectHandler::_isFixedSize {false}
private

Definition at line 37 of file SIOLCGenericObjectHandler.h.

Referenced by initReading(), initWriting(), read(), and write().

int SIO::SIOLCGenericObjectHandler::_nDouble {0}
private

Definition at line 36 of file SIOLCGenericObjectHandler.h.

Referenced by initReading(), initWriting(), read(), and write().

int SIO::SIOLCGenericObjectHandler::_nFloat {0}
private

Definition at line 35 of file SIOLCGenericObjectHandler.h.

Referenced by initReading(), initWriting(), read(), and write().

int SIO::SIOLCGenericObjectHandler::_nInt {0}
private

Definition at line 34 of file SIOLCGenericObjectHandler.h.

Referenced by initReading(), initWriting(), read(), and write().


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