18 #include <qfileinfo.h>
19 #include <qtextstream.h>
26 : m_document ( document )
79 QFile filedev ( filename.c_str() );
81 #if QT_VERSION < 0x040000
82 bool ok = filedev.open ( IO_WriteOnly );
84 bool ok = filedev.open ( QIODevice::WriteOnly );
102 QFile file ( filename.c_str() );
103 #if QT_VERSION < 0x040000
104 bool ok = file.open ( IO_ReadOnly );
106 bool ok = file.open ( QIODevice::ReadOnly );
120 #if QT_VERSION < 0x040000
QDomNode m_node
The DOM node wrapped by this object.
virtual XmlElement * createElement(const std::string &tagName)
Creates a new DOM element wrapper object and returns a pointer to it.
A pure virtual base class of XML element wrapper.
setCurrent(const QString &path)
QDomDocument m_document
The DOM element wrapped by this object.
Status
Status codes for opening an XML document.
virtual void appendChild(XmlElement &)
Appends the root element to the document.
createTextNode(const QString &value)
virtual XmlTextNode * createTextNode(const std::string &tag)
Creates a new DOM Text node.
A pure virtual base class of XML DOM Text node wrapper.
dirPath(bool absPath=FALSE) const
hippodraw::QtXmlTextNode class interface
virtual Status setContent(const std::string &filename)
Sets the content of the XML document from the text in the file filename.
QtXmlDocument(const QtXmlDocument &)
A private copy constructor in order to avoid copying.
hippodraw::QtXmlElement class interface
QtXmlDocument class interface.
createElement(const QString &tagName)
virtual Status saveToFile(const std::string &filename)
Saves the document to the file.
~QtXmlDocument()
The dstructor.
virtual XmlElement * documentElement() const
Returns the root document element.
An XML Dom text node using the Qt XML module.
setContent(const QCString &buffer, bool namespaceProcessing, QString *errorMsg=0, int *errorLine=0, int *errorColumn=0)
An XML element using the Qt XML module.