// Copyright FreeHEP, 2005. #include "cheprep/DefaultHepRep.h" using namespace std; using namespace HEPREP; /** * @author Mark Donszelmann * @version $Id: DefaultHepRep.cc 66373 2012-12-18 09:41:34Z gcosmo $ */ namespace cheprep { DefaultHepRep::DefaultHepRep() { } DefaultHepRep::~DefaultHepRep() { for (vector::iterator i1 = typeTrees.begin(); i1 != typeTrees.end(); i1++) { delete (*i1); } for (vector::iterator i2 = instanceTrees.begin(); i2 != instanceTrees.end(); i2++) { delete (*i2); } } HepRep* DefaultHepRep::copy(HepRepSelectFilter*) { cerr << "DefaultHepRep::copy(HepRepSelectFilter*) not implemented." << endl; return NULL; } vector DefaultHepRep::getLayerOrder() { return layers; } void DefaultHepRep::addLayer(string layer) { layers.push_back(layer); } void DefaultHepRep::addTypeTree(HepRepTypeTree* typeTree) { // FIXME check if already exist typeTrees.push_back(typeTree); } void DefaultHepRep::removeTypeTree(HepRepTypeTree*) { cerr << "DefaultHepRep::removeTypeTree(HepRepTypeTree*) not implemented." << endl; } HepRepTypeTree* DefaultHepRep::getTypeTree(string, string) { cerr << "DefaultHepRep::getTypeTree(string, string) not implemented." << endl; return NULL; } vector DefaultHepRep::getTypeTreeList() { return typeTrees; } void DefaultHepRep::addInstanceTree(HepRepInstanceTree* instanceTree) { // FIXME check if already exist instanceTrees.push_back(instanceTree); } void DefaultHepRep::overlayInstanceTree(HepRepInstanceTree *) { cerr << "DefaultHepRep::overlayInstanceTree(HepRepInstanceTree * instanceTree) not implemented." << endl; } void DefaultHepRep::removeInstanceTree(HepRepInstanceTree*) { cerr << "DefaultHepRep::removeInstanceTree(HepRepInstanceTree*) not implemented." << endl; } HepRepInstanceTree* DefaultHepRep::getInstanceTreeTop(string, string) { cerr << "DefaultHepRep::getInstanceTreeTop(string, string) not implemented." << endl; return NULL; } HepRepInstanceTree* DefaultHepRep::getInstances(string, string, vector) { cerr << "DefaultHepRep::getInstances(string, string, vector) not implemented." << endl; return NULL; } HepRepInstanceTree* DefaultHepRep::getInstancesAfterAction( string, string, vector, vector, bool, bool, bool, vector) { cerr << "DefaultHepRep::getInstancesAfterAction(string, string, vector, vector, bool, bool, bool, vector) not implemented." << endl; return NULL; } string DefaultHepRep::checkForException() { return NULL; } vector DefaultHepRep::getInstanceTreeList() { return instanceTrees; } } // cheprep