Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
DefaultHepRepFactory.cc
이 파일의 문서화 페이지로 가기
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 
Float_t x
Definition: compare.C:6
const XML_Char * name
Definition: expat.h:151
Float_t y
Definition: compare.C:6
Double_t z
const XML_Char * version
Definition: expat.h:187
static MCTruthManager * instance