/////////////////////////////////////////////////////////////////////
//
// This is the base class for distribution collections
//
//                                  Author:  I. Froehlich
/////////////////////////////////////////////////////////////////////


using namespace std;
#include <sstream>
#include <iostream>
#include <iomanip>

#include "PDistributionCollection.h"


ClassImp(PDistributionCollection)

PDistributionCollection::PDistributionCollection()  {
    Fatal("PDistributionCollection()", "Wrong ctor");
};

PDistributionCollection::PDistributionCollection(const Char_t *id, const  Char_t *de) :
    PDistribution(id, de) {
    plugin_pointer = 0;
};

PDistribution *PDistributionCollection::Clone(const char *) const {
    return new PDistributionCollection((const PDistributionCollection &)* this);
};

Bool_t PDistributionCollection::Activate(void) {
    return kFALSE;
};

Bool_t PDistributionCollection::RequiresPlugin(const char *name) {

    if (plugin_pointer == PDISTRIBUTIONCOLLECTION_MAX_PLUGIN) {
	Warning("RequiresPlugin", "PDISTRIBUTIONCOLLECTION_MAX_PLUGIN reached");
	return kFALSE;
    }
    plugin_name[plugin_pointer] = name;
    plugin_pointer++;
    return kTRUE;
};

const char *PDistributionCollection::GetDependency(Int_t *pointer) {
    if (plugin_pointer == *pointer) return NULL;
    (*pointer)++;
    return plugin_name[(*pointer)-1];
};
 PDistributionCollection.cc:1
 PDistributionCollection.cc:2
 PDistributionCollection.cc:3
 PDistributionCollection.cc:4
 PDistributionCollection.cc:5
 PDistributionCollection.cc:6
 PDistributionCollection.cc:7
 PDistributionCollection.cc:8
 PDistributionCollection.cc:9
 PDistributionCollection.cc:10
 PDistributionCollection.cc:11
 PDistributionCollection.cc:12
 PDistributionCollection.cc:13
 PDistributionCollection.cc:14
 PDistributionCollection.cc:15
 PDistributionCollection.cc:16
 PDistributionCollection.cc:17
 PDistributionCollection.cc:18
 PDistributionCollection.cc:19
 PDistributionCollection.cc:20
 PDistributionCollection.cc:21
 PDistributionCollection.cc:22
 PDistributionCollection.cc:23
 PDistributionCollection.cc:24
 PDistributionCollection.cc:25
 PDistributionCollection.cc:26
 PDistributionCollection.cc:27
 PDistributionCollection.cc:28
 PDistributionCollection.cc:29
 PDistributionCollection.cc:30
 PDistributionCollection.cc:31
 PDistributionCollection.cc:32
 PDistributionCollection.cc:33
 PDistributionCollection.cc:34
 PDistributionCollection.cc:35
 PDistributionCollection.cc:36
 PDistributionCollection.cc:37
 PDistributionCollection.cc:38
 PDistributionCollection.cc:39
 PDistributionCollection.cc:40
 PDistributionCollection.cc:41
 PDistributionCollection.cc:42
 PDistributionCollection.cc:43
 PDistributionCollection.cc:44
 PDistributionCollection.cc:45
 PDistributionCollection.cc:46
 PDistributionCollection.cc:47
 PDistributionCollection.cc:48
 PDistributionCollection.cc:49
 PDistributionCollection.cc:50
 PDistributionCollection.cc:51