#include "TVirtualProofPlayer.h"
#include "TPluginManager.h"
#include "TROOT.h"
#include "TError.h"
TVirtualProofPlayer *TVirtualProofPlayer::Create(const char *player,
TProof *pr, TSocket *s)
{
TPluginHandler *h;
TVirtualProofPlayer *p = 0;
if (!player || !*player) {
::Error("TVirtualProofPlayer::Create", "player name missing");
return 0;
}
if ((h = gROOT->GetPluginManager()->FindHandler("TVirtualProofPlayer", player))) {
if (h->LoadPlugin() == -1)
return 0;
if (!strcmp(player, "slave"))
p = (TVirtualProofPlayer *) h->ExecPlugin(1, s);
else
p = (TVirtualProofPlayer *) h->ExecPlugin(1, pr);
}
return p;
}
Last change: Mon Nov 24 08:20:12 2008
Last generated: 2008-11-24 08:20
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.