Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
DefaultHepRepAttribute.h
이 파일의 문서화 페이지로 가기
1 // Copyright FreeHEP, 2005.
2 #ifndef CHEPREP_DEFAULTHEPREPATTRIBUTE_H
3 #define CHEPREP_DEFAULTHEPREPATTRIBUTE_H 1
4 
5 #include "cheprep/config.h"
6 
7 #include <string>
8 #include <map>
9 #include <set>
10 #include <vector>
11 
12 #include "HEPREP/HepRepAttribute.h"
13 #include "HEPREP/HepRepAttValue.h"
14 #include "HEPREP/HepRepConstants.h"
15 #include "HEPREP/HepRepWriter.h"
16 
21 namespace cheprep {
22 
24 
25  private:
26  std::map<std::string, HEPREP::HepRepAttValue*> attValues;
27 
28  public:
31 
32  std::set<HEPREP::HepRepAttValue*> getAttValuesFromNode();
33  void addAttValue(HEPREP::HepRepAttValue* hepRepAttValue);
34  void addAttValue(std::string key, char *value, int showLabel);
35  void addAttValue(std::string key, std::string value, int showLabel);
36  void addAttValue(std::string key, int value, int showLabel);
37  void addAttValue(std::string key, int64 value, int showLabel);
38  void addAttValue(std::string key, double value, int showLabel);
39  void addAttValue(std::string key, bool value, int showLabel);
40  void addAttValue(std::string key, std::vector<double> value, int showLabel);
41  void addAttValue(std::string key, double red, double green, double blue, double alpha, int showLabel);
42  HEPREP::HepRepAttValue* getAttValueFromNode(std::string lowerCaseName);
43  HEPREP::HepRepAttValue* removeAttValue(std::string key);
44 
45  HEPREP::HepRepAttValue* getAttValue(std::string name) = 0;
46 };
47 
48 } // cheprep
49 
50 
51 #endif
const XML_Char * name
Definition: expat.h:151
Definition: test07.cc:36
HEPREP::HepRepAttValue * getAttValueFromNode(std::string lowerCaseName)
std::map< std::string, HEPREP::HepRepAttValue * > attValues
HEPREP::HepRepAttValue * removeAttValue(std::string key)
Definition: test07.cc:36
const XML_Char int const XML_Char * value
Definition: expat.h:331
long long int64
Definition: config.h:31
static const G4double alpha
HEPREP::HepRepAttValue * getAttValue(std::string name)=0
std::set< HEPREP::HepRepAttValue * > getAttValuesFromNode()
void addAttValue(HEPREP::HepRepAttValue *hepRepAttValue)