Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
AbstractXMLWriter.h
이 파일의 문서화 페이지로 가기
1 // Copyright FreeHEP, 2005.
2 #ifndef ABSTRACTXMLWRITER_H
3 #define ABSTRACTXMLWRITER_H 1
4 
5 #include "cheprep/config.h"
6 
7 #include <string>
8 
13 namespace cheprep {
14 
16 
17  public:
18  AbstractXMLWriter(std::string aDefaultNameSpace) : defaultNameSpace(aDefaultNameSpace) {
19  }
20  virtual ~AbstractXMLWriter() {
21  }
22 
23  virtual void openTag(std::string ns, std::string name) = 0;
24  virtual void printTag(std::string ns, std::string name) = 0;
25  virtual void setAttribute(std::string ns, std::string name, std::string value) = 0;
26  virtual void setAttribute(std::string ns, std::string name, double value) = 0;
27 
28  virtual void close() = 0;
29  virtual void openDoc(std::string version = "1.0", std::string encoding = "", bool standalone = false) = 0;
30  virtual void closeDoc(bool force = false) = 0;
31  virtual void openTag(std::string name) = 0;
32  virtual void closeTag() = 0;
33  virtual void printTag(std::string name) = 0;
34  virtual void setAttribute(std::string name, char* value) = 0;
35  virtual void setAttribute(std::string name, std::string value) = 0;
36  virtual void setAttribute(std::string name, std::vector<double> value) = 0;
37  virtual void setAttribute(std::string name, int64 value) = 0;
38  virtual void setAttribute(std::string name, int value) = 0;
39  virtual void setAttribute(std::string name, bool value) = 0;
40  virtual void setAttribute(std::string name, double value) = 0;
41 
42  protected:
43  std::string defaultNameSpace;
44  };
45 
46 } // cheprep
47 
48 #endif // ABSTRACTXMLWRITER_H
const XML_Char * name
Definition: expat.h:151
virtual void closeDoc(bool force=false)=0
virtual void openDoc(std::string version="1.0", std::string encoding="", bool standalone=false)=0
virtual void openTag(std::string ns, std::string name)=0
const XML_Char const XML_Char int standalone
Definition: expat.h:187
const XML_Char int const XML_Char * value
Definition: expat.h:331
AbstractXMLWriter(std::string aDefaultNameSpace)
long long int64
Definition: config.h:31
virtual void closeTag()=0
virtual void setAttribute(std::string ns, std::string name, std::string value)=0
virtual void printTag(std::string ns, std::string name)=0
const XML_Char * version
Definition: expat.h:187
virtual void close()=0
#define ns
Definition: xmlparse.cc:614