Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DefaultHepRepType.h
Go to the documentation of this file.
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 
18 
19 /**
20  * @author Mark Donszelmann
21  * @version $Id: DefaultHepRepType.h 66373 2012-12-18 09:41:34Z gcosmo $
22  */
23 namespace cheprep {
24 
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);
38 
40  HEPREP::HepRepAttDef* getAttDef(std::string name);
41  HEPREP::HepRepAttValue* getAttValue(std::string name);
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
const XML_Char * name
HEPREP::HepRepAttDef * getAttDef(std::string name)
HEPREP::HepRepAttValue * getAttValue(std::string name)
void setDescription(std::string description)
void addType(HEPREP::HepRepType *type)
void setInfoURL(std::string infoURL)
std::vector< HEPREP::HepRepType * > getTypeList()
DefaultHepRepType(HEPREP::HepRepType *parent, std::string name)
HEPREP::HepRepType * copy(HEPREP::HepRepType *parent)
HEPREP::HepRepType * getSuperType()