source: trunk/source/visualization/HepRep/src/DefaultHepRepFactory.cc @ 1098

Last change on this file since 1098 was 834, checked in by garnier, 16 years ago

import all except CVS

File size: 2.9 KB
Line 
1// Copyright FreeHEP, 2005.
2
3#include <iostream>
4#include <fstream>
5
6#include "cheprep/DefaultHepRepFactory.h"
7#include "cheprep/DefaultHepRepPoint.h"
8#include "cheprep/DefaultHepRepInstance.h"
9#include "cheprep/DefaultHepRepInstanceTree.h"
10#include "cheprep/DefaultHepRepType.h"
11#include "cheprep/DefaultHepRepTypeTree.h"
12#include "cheprep/DefaultHepRep.h"
13#include "cheprep/DefaultHepRepAction.h"
14#include "cheprep/DefaultHepRepTreeID.h"
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
26DefaultHepRepFactory::DefaultHepRepFactory() {
27}
28
29DefaultHepRepFactory::~DefaultHepRepFactory() {
30}
31
32HepRepReader* DefaultHepRepFactory::createHepRepReader (istream*) {
33    cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
34    return NULL;
35}
36
37HepRepReader* DefaultHepRepFactory::createHepRepReader (std::string) {
38    cerr << "DefaultHepRepFactory::createHepRepReader not implemented" << endl;
39    return NULL;
40}
41
42HepRepWriter* DefaultHepRepFactory::createHepRepWriter(ostream*, bool, bool) {
43    cerr << "DefaultHepRepFactory::createHepRepWriter not implemented" << endl;
44    return NULL;
45}
46
47HepRepPoint* DefaultHepRepFactory::createHepRepPoint (HepRepInstance* instance,
48                               double x, double y, double z) {
49    return new DefaultHepRepPoint(instance, x, y, z);
50}
51
52HepRepInstance* DefaultHepRepFactory::createHepRepInstance (HepRepInstance* parent, HepRepType* type) {
53    return new DefaultHepRepInstance(parent, type);
54}
55
56HepRepInstance* DefaultHepRepFactory::createHepRepInstance (HepRepInstanceTree* parent, HepRepType* type) {
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
68HepRepInstanceTree* DefaultHepRepFactory::createHepRepInstanceTree (string name, string version,
69                                                    HepRepTreeID* typeTreeID) {
70    return new DefaultHepRepInstanceTree(name, version, typeTreeID);
71}
72
73HepRepType* DefaultHepRepFactory::createHepRepType (HepRepType* parent, string name) {
74    return new DefaultHepRepType(parent, name);
75}
76
77HepRepType* DefaultHepRepFactory::createHepRepType (HepRepTypeTree* parent, string name) {
78    return new DefaultHepRepType(parent, name);
79}
80
81HepRepTypeTree* DefaultHepRepFactory::createHepRepTypeTree (HepRepTreeID* treeID) {
82    return new DefaultHepRepTypeTree(treeID);
83}
84
85HepRep* DefaultHepRepFactory::createHepRep () {
86    return new DefaultHepRep();
87}
88
89} // cheprep
90
Note: See TracBrowser for help on using the repository browser.