Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SIO::SIOCollectionHandler Class Reference

#include <SIOCollectionHandler.h>

Inheritance diagram for SIO::SIOCollectionHandler:

SIO_block List of all members.

Public Member Functions

 SIOCollectionHandler (const std::string &name, const std::string &type, IOIMPL::LCEventIOImpl **anEvtP=0) throw (EVENT::Exception)
virtual ~SIOCollectionHandler ()
virtual unsigned int xfer (SIO_stream *, SIO_operation, unsigned int)
virtual unsigned int version ()
void setCollection (const EVENT::LCCollection *col)
void setEvent (IOIMPL::LCEventIOImpl **anEvtP)
std::string * getName ()

Private Member Functions

 SIOCollectionHandler ()

Private Attributes

IOIMPL::LCEventIOImpl ** _evtP
const EVENT::LCCollection_col
std::string _myType
SIOObjectHandler_myHandler

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 22 of file SIOCollectionHandler.h.


Constructor & Destructor Documentation

SIO::SIOCollectionHandler::SIOCollectionHandler  )  [private]
 

SIO::SIOCollectionHandler::SIOCollectionHandler const std::string &  name,
const std::string &  type,
IOIMPL::LCEventIOImpl **  anEvtP = 0
throw (EVENT::Exception)
 

The default constructor needs the name, the type and a pointer the address of the collection. Throws an exception if handler for given type doesn't exist.

Exceptions:
Exception 

Definition at line 23 of file SIOCollectionHandler.cc.

SIO::SIOCollectionHandler::~SIOCollectionHandler  )  [virtual]
 

Definition at line 40 of file SIOCollectionHandler.cc.


Member Function Documentation

std::string * SIO_block::getName  )  [inherited]
 

Definition at line 55 of file SIO_block.cc.

Referenced by SIO_blockManager::add(), xfer(), and SIO_block::~SIO_block().

void SIO::SIOCollectionHandler::setCollection const EVENT::LCCollection col  ) 
 

Definition at line 44 of file SIOCollectionHandler.cc.

References _col.

Referenced by SIO::SIOWriter::setUpHandlers().

void SIO::SIOCollectionHandler::setEvent IOIMPL::LCEventIOImpl **  anEvtP  ) 
 

Definition at line 47 of file SIOCollectionHandler.cc.

References _evtP.

Referenced by SIO::SIOReader::setUpHandlers(), and SIO::SIOWriter::writeEvent().

unsigned int SIO::SIOCollectionHandler::version  )  [virtual]
 

Implements SIO_block.

Definition at line 140 of file SIOCollectionHandler.cc.

References SIO_VERSION_ENCODE, and version().

Referenced by version(), and xfer().

unsigned int SIO::SIOCollectionHandler::xfer SIO_stream ,
SIO_operation  ,
unsigned  int
[virtual]
 

Implements SIO_block.

Definition at line 51 of file SIOCollectionHandler.cc.

References _col, _myHandler, SIO_block::getName(), SIO::SIOObjectHandler::init(), SIO::SIOObjectHandler::readBase(), SIO_DATA, SIO_OP_READ, SIO_OP_WRITE, version(), and SIO::SIOObjectHandler::writeBase().


Member Data Documentation

const EVENT::LCCollection* SIO::SIOCollectionHandler::_col [private]
 

Definition at line 51 of file SIOCollectionHandler.h.

Referenced by setCollection(), and xfer().

IOIMPL::LCEventIOImpl** SIO::SIOCollectionHandler::_evtP [private]
 

Definition at line 50 of file SIOCollectionHandler.h.

Referenced by setEvent().

SIOObjectHandler* SIO::SIOCollectionHandler::_myHandler [private]
 

Definition at line 54 of file SIOCollectionHandler.h.

Referenced by xfer().

std::string SIO::SIOCollectionHandler::_myType [private]
 

Definition at line 53 of file SIOCollectionHandler.h.


The documentation for this class was generated from the following files:
Generated on Sun Jun 3 06:32:32 2007 for A TPC Tracking Environment by  doxygen 1.3.9.1