LCCD  1.5.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
lccd::VCollectionStreamer Class Referenceabstract

Base class for LCCollection streamer classes. More...

#include <VCollectionStreamer.hh>

Inheritance diagram for lccd::VCollectionStreamer:
lccd::LCGenericObjectStreamer

Public Member Functions

 VCollectionStreamer (const VCollectionStreamer &)=delete
 
VCollectionStreameroperator= (const VCollectionStreamer &)=delete
 
virtual void setCollection (lcio::LCCollection *col)
 Set the collection that will be stored in the database.
 
virtual lcio::LCCollection * getCollection ()
 Get the collection retrieved from the database. More...
 
virtual VCollectionStreamercreate ()=0
 Covariant factory method. More...
 

Protected Member Functions

virtual void writeParameters (std::string &s) const
 Write the collection's parameters to the string/stream.
 
virtual unsigned readParameters (const std::string &s, unsigned index)
 Read the collection's parameters from the stream.
 

Protected Attributes

lcio::LCCollection * _col = nullptr
 

Detailed Description

Base class for LCCollection streamer classes.

Author
F.Gaede, DESY
Version
Id:
VCollectionStreamer.hh,v 1.2 2007-04-27 13:21:31 gaede Exp

Member Function Documentation

virtual VCollectionStreamer* lccd::VCollectionStreamer::create ( )
pure virtual

Covariant factory method.

Subclasses need to return a new instance of their type.

Implemented in lccd::LCGenericObjectStreamer.

Referenced by lccd::StreamerMgr::getStreamer().

virtual lcio::LCCollection* lccd::VCollectionStreamer::getCollection ( )
inlinevirtual

Get the collection retrieved from the database.

It is the callers responsibility to delete the collection.


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