Geant4  10.01.p01
DefaultHepRep.cc
Go to the documentation of this file.
1 // Copyright FreeHEP, 2005.
2 
3 #include "cheprep/DefaultHepRep.h"
4 
5 using namespace std;
6 using namespace HEPREP;
7 
12 namespace cheprep {
13 
14 DefaultHepRep::DefaultHepRep() {
15 }
16 
17 DefaultHepRep::~DefaultHepRep() {
18  for (vector<HepRepTypeTree*>::iterator i1 = typeTrees.begin(); i1 != typeTrees.end(); i1++) {
19  delete (*i1);
20  }
21  for (vector<HepRepInstanceTree*>::iterator i2 = instanceTrees.begin(); i2 != instanceTrees.end(); i2++) {
22  delete (*i2);
23  }
24 }
25 
26 HepRep* DefaultHepRep::copy(HepRepSelectFilter*) {
27  cerr << "DefaultHepRep::copy(HepRepSelectFilter*) not implemented." << endl;
28  return NULL;
29 }
30 
31 vector<string> DefaultHepRep::getLayerOrder() {
32  return layers;
33 }
34 
35 void DefaultHepRep::addLayer(string layer) {
36  layers.push_back(layer);
37 }
38 
39 void DefaultHepRep::addTypeTree(HepRepTypeTree* typeTree) {
40  // FIXME check if already exist
41  typeTrees.push_back(typeTree);
42 }
43 
44 void DefaultHepRep::removeTypeTree(HepRepTypeTree*) {
45  cerr << "DefaultHepRep::removeTypeTree(HepRepTypeTree*) not implemented." << endl;
46 }
47 
48 HepRepTypeTree* DefaultHepRep::getTypeTree(string, string) {
49  cerr << "DefaultHepRep::getTypeTree(string, string) not implemented." << endl;
50  return NULL;
51 }
52 
53 vector<HepRepTypeTree*> DefaultHepRep::getTypeTreeList() {
54  return typeTrees;
55 }
56 
57 void DefaultHepRep::addInstanceTree(HepRepInstanceTree* instanceTree) {
58  // FIXME check if already exist
59  instanceTrees.push_back(instanceTree);
60 }
61 
62 void DefaultHepRep::overlayInstanceTree(HepRepInstanceTree *) {
63  cerr << "DefaultHepRep::overlayInstanceTree(HepRepInstanceTree * instanceTree) not implemented." << endl;
64 }
65 
66 void DefaultHepRep::removeInstanceTree(HepRepInstanceTree*) {
67  cerr << "DefaultHepRep::removeInstanceTree(HepRepInstanceTree*) not implemented." << endl;
68 }
69 
70 HepRepInstanceTree* DefaultHepRep::getInstanceTreeTop(string, string) {
71  cerr << "DefaultHepRep::getInstanceTreeTop(string, string) not implemented." << endl;
72  return NULL;
73 }
74 
75 HepRepInstanceTree* DefaultHepRep::getInstances(string, string,
76  vector<string>) {
77  cerr << "DefaultHepRep::getInstances(string, string, vector<string>) not implemented." << endl;
78  return NULL;
79 }
80 
81 HepRepInstanceTree* DefaultHepRep::getInstancesAfterAction(
82  string,
83  string,
84  vector<string>,
85  vector<HepRepAction*>,
86  bool,
87  bool,
88  bool,
89  vector<string>) {
90  cerr << "DefaultHepRep::getInstancesAfterAction(string, string, vector<string>, vector<HepRepAction*>, bool, bool, bool, vector<string>) not implemented." << endl;
91  return NULL;
92 }
93 
94 string DefaultHepRep::checkForException() {
95  return NULL;
96 }
97 
98 vector<HepRepInstanceTree*> DefaultHepRep::getInstanceTreeList() {
99  return instanceTrees;
100 }
101 
102 } // cheprep
103 
void copy(std::vector< T > &main, const std::vector< T > &data)
Definition: DicomRun.hh:91