Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
DefaultHepRepFactory.cc
Go to the documentation of this file.
1// Copyright FreeHEP, 2005.
2
3#include <iostream>
4#include <fstream>
5
15
16using namespace std;
17using namespace HEPREP;
18
19
20/**
21 * @author Mark Donszelmann
22 * @version $Id: DefaultHepRepFactory.cc,v 1.6 2005-06-02 21:28:45 duns Exp $
23 */
24namespace cheprep {
25
27}
28
30}
31
33 cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
34 return NULL;
35}
36
38 cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
39 return NULL;
40}
41
43 cerr << "DefaultHepRepFactory::createHepRepWriter not implemented" << endl;
44 return NULL;
45}
46
48 double x, double y, double z) {
49 return new DefaultHepRepPoint(instance, x, y, z);
50}
51
53 return new DefaultHepRepInstance(parent, type);
54}
55
57 return new DefaultHepRepInstance(parent, type);
58}
59
60HepRepTreeID* DefaultHepRepFactory::createHepRepTreeID (string name, string version, string qualifier) {
61 return new DefaultHepRepTreeID(name, version, qualifier);
62}
63
64HepRepAction* DefaultHepRepFactory::createHepRepAction (string name, string expression) {
65 return new DefaultHepRepAction(name, expression);
66}
67
69 HepRepTreeID* typeTreeID) {
70 return new DefaultHepRepInstanceTree(name, version, typeTreeID);
71}
72
74 return new DefaultHepRepType(parent, name);
75}
76
78 return new DefaultHepRepType(parent, name);
79}
80
82 return new DefaultHepRepTypeTree(treeID);
83}
84
86 return new DefaultHepRep();
87}
88
89} // cheprep
90
HEPREP::HepRepTypeTree * createHepRepTypeTree(HEPREP::HepRepTreeID *treeID)
HEPREP::HepRepInstanceTree * createHepRepInstanceTree(std::string name, std::string version, HEPREP::HepRepTreeID *typeTreeID)
HEPREP::HepRepInstance * createHepRepInstance(HEPREP::HepRepInstance *parent, HEPREP::HepRepType *type)
HEPREP::HepRepAction * createHepRepAction(std::string name, std::string expression)
HEPREP::HepRepPoint * createHepRepPoint(HEPREP::HepRepInstance *instance, double x, double y, double z)
HEPREP::HepRepTreeID * createHepRepTreeID(std::string name, std::string version, std::string qualifier="top-level")
HEPREP::HepRepType * createHepRepType(HEPREP::HepRepType *parent, std::string name)
HEPREP::HepRepWriter * createHepRepWriter(std::ostream *out, bool randomAccess, bool compress)
HEPREP::HepRepReader * createHepRepReader(std::istream *in)