28 std::string fEncoding;
32 enum { kundefined=-1, kNo, kYes };
33 TXMLDecl (
const std::string version,
const std::string encoding,
int stdalone=kundefined)
34 : fVersion(version), fEncoding(encoding), fStandalone(stdalone) {}
37 void setEncoding (std::string encoding) { fEncoding = encoding; }
38 std::string getVersion ()
const {
return fVersion; }
39 std::string getEncoding ()
const {
return fEncoding; }
40 int getStandalone ()
const {
return fStandalone; }
41 void print (std::ostream& s);
49 std::string fStartElement;
51 std::string fPubLitteral;
52 std::string fSysLitteral;
56 TDocType (
const std::string start,
bool pub,
const std::string publit,
const std::string syslit)
57 : fStartElement(start), fPublic(pub), fPubLitteral(publit), fSysLitteral(syslit) {}
60 std::string getStartElement () {
return fStartElement; }
61 bool getPublic () {
return fPublic; }
62 std::string getPubLitteral () {
return fPubLitteral; }
63 std::string getSysLitteral () {
return fSysLitteral; }
64 void print (std::ostream& s);
77 TXMLFile () : fXMLDecl(0), fDocType(0) {}
78 virtual ~TXMLFile () {
delete fXMLDecl;
delete fDocType; }
84 TXMLDecl* getXMLDecl () {
return fXMLDecl; }
85 TDocType* getDocType () {
return fDocType; }
89 void set (
TXMLDecl * dec) { fXMLDecl = dec; }
90 void set (
TDocType * dt) { fDocType = dt; }
92 void print (std::ostream& s);
the smart pointer implementation
Definition: smartpointer.h:58
the base class for smart pointers implementation
Definition: smartpointer.h:29