00001
00002
00003 #include <iostream>
00004 #include <fstream>
00005
00006 #include "cheprep/DefaultHepRepFactory.h"
00007 #include "cheprep/DefaultHepRepPoint.h"
00008 #include "cheprep/DefaultHepRepInstance.h"
00009 #include "cheprep/DefaultHepRepInstanceTree.h"
00010 #include "cheprep/DefaultHepRepType.h"
00011 #include "cheprep/DefaultHepRepTypeTree.h"
00012 #include "cheprep/DefaultHepRep.h"
00013 #include "cheprep/DefaultHepRepAction.h"
00014 #include "cheprep/DefaultHepRepTreeID.h"
00015
00016 using namespace std;
00017 using namespace HEPREP;
00018
00019
00024 namespace cheprep {
00025
00026 DefaultHepRepFactory::DefaultHepRepFactory() {
00027 }
00028
00029 DefaultHepRepFactory::~DefaultHepRepFactory() {
00030 }
00031
00032 HepRepReader* DefaultHepRepFactory::createHepRepReader (istream*) {
00033 cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
00034 return NULL;
00035 }
00036
00037 HepRepReader* DefaultHepRepFactory::createHepRepReader (std::string) {
00038 cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
00039 return NULL;
00040 }
00041
00042 HepRepWriter* DefaultHepRepFactory::createHepRepWriter(ostream*, bool, bool) {
00043 cerr << "DefaultHepRepFactory::createHepRepWriter not implemented" << endl;
00044 return NULL;
00045 }
00046
00047 HepRepPoint* DefaultHepRepFactory::createHepRepPoint (HepRepInstance* instance,
00048 double x, double y, double z) {
00049 return new DefaultHepRepPoint(instance, x, y, z);
00050 }
00051
00052 HepRepInstance* DefaultHepRepFactory::createHepRepInstance (HepRepInstance* parent, HepRepType* type) {
00053 return new DefaultHepRepInstance(parent, type);
00054 }
00055
00056 HepRepInstance* DefaultHepRepFactory::createHepRepInstance (HepRepInstanceTree* parent, HepRepType* type) {
00057 return new DefaultHepRepInstance(parent, type);
00058 }
00059
00060 HepRepTreeID* DefaultHepRepFactory::createHepRepTreeID (string name, string version, string qualifier) {
00061 return new DefaultHepRepTreeID(name, version, qualifier);
00062 }
00063
00064 HepRepAction* DefaultHepRepFactory::createHepRepAction (string name, string expression) {
00065 return new DefaultHepRepAction(name, expression);
00066 }
00067
00068 HepRepInstanceTree* DefaultHepRepFactory::createHepRepInstanceTree (string name, string version,
00069 HepRepTreeID* typeTreeID) {
00070 return new DefaultHepRepInstanceTree(name, version, typeTreeID);
00071 }
00072
00073 HepRepType* DefaultHepRepFactory::createHepRepType (HepRepType* parent, string name) {
00074 return new DefaultHepRepType(parent, name);
00075 }
00076
00077 HepRepType* DefaultHepRepFactory::createHepRepType (HepRepTypeTree* parent, string name) {
00078 return new DefaultHepRepType(parent, name);
00079 }
00080
00081 HepRepTypeTree* DefaultHepRepFactory::createHepRepTypeTree (HepRepTreeID* treeID) {
00082 return new DefaultHepRepTypeTree(treeID);
00083 }
00084
00085 HepRep* DefaultHepRepFactory::createHepRep () {
00086 return new DefaultHepRep();
00087 }
00088
00089 }
00090