summaryrefslogtreecommitdiff
path: root/shared/xmlBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/xmlBase.h')
-rw-r--r--shared/xmlBase.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/shared/xmlBase.h b/shared/xmlBase.h
index d8e389ad..ceed1afe 100644
--- a/shared/xmlBase.h
+++ b/shared/xmlBase.h
@@ -25,11 +25,11 @@ enum XmlType
XML_OTHER
};
-XmlType getXmlType(const wxString& filename);
+XmlType getXmlType(const wxString& filename); //throw()
-bool loadXmlDocument(const wxString& fileName, const XmlType type, TiXmlDocument& document);
+void loadXmlDocument(const wxString& fileName, const XmlType type, TiXmlDocument& document); //throw (XmlError)
void getDefaultXmlDocument(const XmlType type, TiXmlDocument& document);
-bool saveXmlDocument(const wxString& fileName, const TiXmlDocument& document);
+void saveXmlDocument(const wxString& fileName, const TiXmlDocument& document); //throw (XmlError)
//------------------------------------------------------------------------------------------
@@ -90,6 +90,12 @@ protected:
logError(name);
}
+ const TiXmlElement* const getRoot() const
+ {
+ return root;
+ }
+
+private:
const TiXmlElement* const root;
std::vector<wxString> failedNodes;
};
bgstack15