ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DefaultHepRepTypeTree.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DefaultHepRepTypeTree.cc
1 // Copyright FreeHEP, 2005.
2 
3 #include <iostream>
4 
6 
7 using namespace std;
8 using namespace HEPREP;
9 
13 namespace cheprep {
14 
15 DefaultHepRepTypeTree::DefaultHepRepTypeTree(HepRepTreeID* typeTree)
16  : DefaultHepRepTreeID(typeTree->getName(), typeTree->getVersion()) {
17  delete typeTree;
18 }
19 
21  for (vector<HepRepType*>::iterator i1 = types.begin(); i1 != types.end(); i1++) {
22  delete (*i1);
23  }
24 }
25 
27  cerr << "DefaultHepRepTypeTree::copy() not implemented." << endl;
28  return NULL;
29 }
30 
32  // FIXME should check if type already exists
33  types.push_back(type);
34 }
35 
36 vector<HepRepType*> DefaultHepRepTypeTree::getTypeList() {
37  return types;
38 }
39 
41  cerr << "DefaultHepRepTypeTree::getType(string) not implemented." << endl;
42  return NULL;
43 }
44 
45 } // cheprep