LCCD
1.5.0
|
Manager for streamer classes of LCCollections. More...
#include <StreamerMgr.hh>
Public Member Functions | |
VCollectionStreamer * | getStreamer (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 StreamerMgr * | instance () |
The instance of this manager class. | |
Manager for streamer classes of LCCollections.
Singleton.
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.