1 | // Copyright FreeHEP, 2005. |
---|
2 | #ifndef CHEPREP_DEFAULTHEPREPTYPE_H |
---|
3 | #define CHEPREP_DEFAULTHEPREPTYPE_H 1 |
---|
4 | |
---|
5 | #include "cheprep/config.h" |
---|
6 | |
---|
7 | #include <string> |
---|
8 | #include <vector> |
---|
9 | #include <set> |
---|
10 | |
---|
11 | #include "HEPREP/HepRep.h" |
---|
12 | #include "HEPREP/HepRepType.h" |
---|
13 | #include "HEPREP/HepRepAttDef.h" |
---|
14 | #include "HEPREP/HepRepAttValue.h" |
---|
15 | #include "HEPREP/HepRepWriter.h" |
---|
16 | |
---|
17 | #include "DefaultHepRepDefinition.h" |
---|
18 | |
---|
19 | /** |
---|
20 | * @author Mark Donszelmann |
---|
21 | * @version $Id: DefaultHepRepType.h,v 1.3 2005/06/02 21:28:45 duns Exp $ |
---|
22 | */ |
---|
23 | namespace cheprep { |
---|
24 | |
---|
25 | class DefaultHepRepType : public DefaultHepRepDefinition, public virtual HEPREP::HepRepType { |
---|
26 | |
---|
27 | private: |
---|
28 | HEPREP::HepRepType* parent; |
---|
29 | std::vector<HEPREP::HepRepType*> types; |
---|
30 | std::string name; |
---|
31 | std::string description; |
---|
32 | std::string infoURL; |
---|
33 | |
---|
34 | public: |
---|
35 | DefaultHepRepType(HEPREP::HepRepType* parent, std::string name); |
---|
36 | DefaultHepRepType(HEPREP::HepRepTypeTree* parent, std::string name); |
---|
37 | ~DefaultHepRepType(); |
---|
38 | |
---|
39 | HEPREP::HepRepType* getSuperType(); |
---|
40 | HEPREP::HepRepAttDef* getAttDef(std::string name); |
---|
41 | HEPREP::HepRepAttValue* getAttValue(std::string name); |
---|
42 | HEPREP::HepRepType* copy(HEPREP::HepRepType* parent); |
---|
43 | std::string getName(); |
---|
44 | std::string getFullName(); |
---|
45 | std::string getDescription(); |
---|
46 | void setDescription(std::string description); |
---|
47 | std::string getInfoURL(); |
---|
48 | void setInfoURL(std::string infoURL); |
---|
49 | void addType(HEPREP::HepRepType* type); |
---|
50 | std::vector<HEPREP::HepRepType*> getTypeList(); |
---|
51 | }; |
---|
52 | |
---|
53 | } // cheprep |
---|
54 | |
---|
55 | |
---|
56 | #endif |
---|