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