Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DefaultHepRepFactory.cc
Go to the documentation of this file.
1 // Copyright FreeHEP, 2005.
2 
3 #include <iostream>
4 #include <fstream>
5 
12 #include "cheprep/DefaultHepRep.h"
15 
16 using namespace std;
17 using namespace HEPREP;
18 
19 
24 namespace cheprep {
25 
26 DefaultHepRepFactory::DefaultHepRepFactory() {
27 }
28 
29 DefaultHepRepFactory::~DefaultHepRepFactory() {
30 }
31 
32 HepRepReader* DefaultHepRepFactory::createHepRepReader (istream*) {
33  cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
34  return NULL;
35 }
36 
37 HepRepReader* DefaultHepRepFactory::createHepRepReader (std::string) {
38  cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
39  return NULL;
40 }
41 
42 HepRepWriter* DefaultHepRepFactory::createHepRepWriter(ostream*, bool, bool) {
43  cerr << "DefaultHepRepFactory::createHepRepWriter not implemented" << endl;
44  return NULL;
45 }
46 
47 HepRepPoint* DefaultHepRepFactory::createHepRepPoint (HepRepInstance* instance,
48  double x, double y, double z) {
49  return new DefaultHepRepPoint(instance, x, y, z);
50 }
51 
52 HepRepInstance* DefaultHepRepFactory::createHepRepInstance (HepRepInstance* parent, HepRepType* type) {
53  return new DefaultHepRepInstance(parent, type);
54 }
55 
56 HepRepInstance* DefaultHepRepFactory::createHepRepInstance (HepRepInstanceTree* parent, HepRepType* type) {
57  return new DefaultHepRepInstance(parent, type);
58 }
59 
60 HepRepTreeID* DefaultHepRepFactory::createHepRepTreeID (string name, string version, string qualifier) {
61  return new DefaultHepRepTreeID(name, version, qualifier);
62 }
63 
64 HepRepAction* DefaultHepRepFactory::createHepRepAction (string name, string expression) {
65  return new DefaultHepRepAction(name, expression);
66 }
67 
68 HepRepInstanceTree* DefaultHepRepFactory::createHepRepInstanceTree (string name, string version,
69  HepRepTreeID* typeTreeID) {
70  return new DefaultHepRepInstanceTree(name, version, typeTreeID);
71 }
72 
73 HepRepType* DefaultHepRepFactory::createHepRepType (HepRepType* parent, string name) {
74  return new DefaultHepRepType(parent, name);
75 }
76 
77 HepRepType* DefaultHepRepFactory::createHepRepType (HepRepTypeTree* parent, string name) {
78  return new DefaultHepRepType(parent, name);
79 }
80 
81 HepRepTypeTree* DefaultHepRepFactory::createHepRepTypeTree (HepRepTreeID* treeID) {
82  return new DefaultHepRepTypeTree(treeID);
83 }
84 
85 HepRep* DefaultHepRepFactory::createHepRep () {
86  return new DefaultHepRep();
87 }
88 
89 } // cheprep
90 
const XML_Char * name
Definition: expat.h:151
tuple x
Definition: test.py:50
const XML_Char * version
Definition: expat.h:187
tuple z
Definition: test.py:28
static MCTruthManager * instance