27 #ifndef GXMLDOCUMENT_HPP
28 #define GXMLDOCUMENT_HPP
67 virtual void clear(
void);
69 virtual std::string
classname(
void)
const;
70 virtual void write(
GUrl& url,
const int& indent = 0)
const;
73 const int& indent = 0)
const;
77 std::string
version(
void)
const;
81 void version(
const std::string& version);
82 void encoding(
const std::string& encoding);
83 void standalone(
const std::string& standalone);
107 return (
"GXmlDocument");
Abstract XML node base class.
virtual NodeType type(void) const
Return XML node type.
std::string standalone(void) const
Return standalone.
virtual void write(GUrl &url, const int &indent=0) const
Write XML document into URL.
virtual ~GXmlDocument(void)
Destructor.
GXmlAttribute m_version
XML version ("1.0", "1.1")
Abstract URL base class interface definition.
std::string version(void) const
Return version.
void copy_members(const GXmlDocument &node)
Copy class members.
virtual GXmlDocument * clone(void) const
Clone XML document.
GFilename m_filename
Name of XML file.
GXmlDocument(void)
Void constructor.
virtual std::string classname(void) const
Return class name.
GXmlDocument & operator=(const GXmlDocument &node)
Assignment operator.
const std::string & value(void) const
Return attribute value.
GXmlAttribute m_standalone
Standalone ("yes", "no")
std::string encoding(void) const
Return encoding.
const GFilename & filename(void) const
Return filename.
GXmlAttribute m_encoding
Encoding (e.g. "UTF-8")
void free_members(void)
Delete class members.
virtual std::string print(const GChatter &chatter=NORMAL, const int &indent=0) const
Print XML document.
Abstract XML node base class interface definition.
virtual void clear(void)
Clear XML document.
Filename class interface definition.
XML attribute class interface definition.
void init_members(void)
Initialise class members.