//*-- Author : Damir Buskulic 22/11/00//////////////////////////////////////////////////////////////////////////// //// VVirtualMetaDBPlayer //// //// Abstract base class for metadatabase players //// ////////////////////////////////////////////////////////////////////////////
#include "TROOT.h"
#include "VVirtualMetaDBPlayer.h"
TClass *VVirtualMetaDBPlayer::fgPlayer = 0;
ClassImp(VVirtualMetaDBPlayer)
//______________________________________________________________________________VVirtualMetaDBPlayer *VVirtualMetaDBPlayer::MetaDBPlayer(VVirtualFrameInfoDB *obj)
{
// Static function returning a pointer to a metadb player. // The player will process the specified obj. If the metadb player // does not exist a default player is created.
if (!fgPlayer) {
// if no player set yet, set VDBPlayer by default
if (gROOT->LoadClass("VMetaDBPlayer","libVMetaDBPlayer")) return 0;
VVirtualMetaDBPlayer::SetPlayer("VMetaDBPlayer");
if (!fgPlayer) return 0;
}
//create an instance of the metaDB playerVVirtualMetaDBPlayer *p = (VVirtualMetaDBPlayer*)fgPlayer->New();
if (p) p->SetFrameInfoDB(obj);
return p;
}
//______________________________________________________________________________voidVVirtualMetaDBPlayer::SetPlayer(const char *player)
{
// Static function to set an alternative Tree player.fgPlayer = gROOT->GetClass(player);
}
- ROOT page - VEGA page - Class index - Top of the page This page has been automatically generated. If you have any comments or suggestions
about the page layout send a mail to
, or
contact
with any questions or problems regarding ROOT or VEGA.