ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DefaultHepRepFactory.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file 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 
23 namespace cheprep {
24 
25 DefaultHepRepFactory::DefaultHepRepFactory() {
26 }
27 
28 DefaultHepRepFactory::~DefaultHepRepFactory() {
29 }
30 
31 HepRepReader* DefaultHepRepFactory::createHepRepReader (istream*) {
32  cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
33  return NULL;
34 }
35 
36 HepRepReader* DefaultHepRepFactory::createHepRepReader (std::string) {
37  cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
38  return NULL;
39 }
40 
41 HepRepWriter* DefaultHepRepFactory::createHepRepWriter(ostream*, bool, bool) {
42  cerr << "DefaultHepRepFactory::createHepRepWriter not implemented" << endl;
43  return NULL;
44 }
45 
46 HepRepPoint* DefaultHepRepFactory::createHepRepPoint (HepRepInstance* instance,
47  double x, double y, double z) {
48  return new DefaultHepRepPoint(instance, x, y, z);
49 }
50 
51 HepRepInstance* DefaultHepRepFactory::createHepRepInstance (HepRepInstance* parent, HepRepType* type) {
52  return new DefaultHepRepInstance(parent, type);
53 }
54 
55 HepRepInstance* DefaultHepRepFactory::createHepRepInstance (HepRepInstanceTree* parent, HepRepType* type) {
56  return new DefaultHepRepInstance(parent, type);
57 }
58 
59 HepRepTreeID* DefaultHepRepFactory::createHepRepTreeID (string name, string version, string qualifier) {
60  return new DefaultHepRepTreeID(name, version, qualifier);
61 }
62 
63 HepRepAction* DefaultHepRepFactory::createHepRepAction (string name, string expression) {
64  return new DefaultHepRepAction(name, expression);
65 }
66 
67 HepRepInstanceTree* DefaultHepRepFactory::createHepRepInstanceTree (string name, string version,
68  HepRepTreeID* typeTreeID) {
69  return new DefaultHepRepInstanceTree(name, version, typeTreeID);
70 }
71 
72 HepRepType* DefaultHepRepFactory::createHepRepType (HepRepType* parent, string name) {
73  return new DefaultHepRepType(parent, name);
74 }
75 
76 HepRepType* DefaultHepRepFactory::createHepRepType (HepRepTypeTree* parent, string name) {
77  return new DefaultHepRepType(parent, name);
78 }
79 
80 HepRepTypeTree* DefaultHepRepFactory::createHepRepTypeTree (HepRepTreeID* treeID) {
81  return new DefaultHepRepTypeTree(treeID);
82 }
83 
84 HepRep* DefaultHepRepFactory::createHepRep () {
85  return new DefaultHepRep();
86 }
87 
88 } // cheprep
89