LCCD  1.5.0
Public Member Functions | Static Public Member Functions | List of all members
lccd::StreamerMgr Class Reference

Manager for streamer classes of LCCollections. More...

#include <StreamerMgr.hh>

Public Member Functions

VCollectionStreamergetStreamer (const std::string &type)
 Factory method that returns a new streamer object for the given LCIO type, e.g. More...
 
void registerStreamer (VCollectionStreamer *streamer, const std::string &type)
 Register a streamer with the given type name. More...
 

Static Public Member Functions

static StreamerMgrinstance ()
 The instance of this manager class.
 

Detailed Description

Manager for streamer classes of LCCollections.


Singleton.

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

Member Function Documentation

VCollectionStreamer * lccd::StreamerMgr::getStreamer ( const std::string &  type)

Factory method that returns a new streamer object for the given LCIO type, e.g.

LCIO::LCGenericObject.
Null if type is not known/registered.

References lccd::VCollectionStreamer::create().

Referenced by lccd::DBInterface::collectionFromCondDBObject(), and lccd::DBInterface::storeCollection().

void lccd::StreamerMgr::registerStreamer ( VCollectionStreamer streamer,
const std::string &  type 
)

Register a streamer with the given type name.

Overwrites existing streamers for that type.


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