Geant4 10.7.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 */
23namespace cheprep {
24
26}
27
29}
30
32 cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
33 return NULL;
34}
35
37 cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
38 return NULL;
39}
40
42 cerr << "DefaultHepRepFactory::createHepRepWriter not implemented" << endl;
43 return NULL;
44}
45
47 double x, double y, double z) {
48 return new DefaultHepRepPoint(instance, x, y, z);
49}
50
52 return new DefaultHepRepInstance(parent, type);
53}
54
56 return new DefaultHepRepInstance(parent, type);
57}
58
59HepRepTreeID* DefaultHepRepFactory::createHepRepTreeID (string name, string version, string qualifier) {
60 return new DefaultHepRepTreeID(name, version, qualifier);
61}
62
63HepRepAction* DefaultHepRepFactory::createHepRepAction (string name, string expression) {
64 return new DefaultHepRepAction(name, expression);
65}
66
68 HepRepTreeID* typeTreeID) {
69 return new DefaultHepRepInstanceTree(name, version, typeTreeID);
70}
71
73 return new DefaultHepRepType(parent, name);
74}
75
77 return new DefaultHepRepType(parent, name);
78}
79
81 return new DefaultHepRepTypeTree(treeID);
82}
83
85 return new DefaultHepRep();
86}
87
88} // cheprep
89
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)