summaryrefslogtreecommitdiff
path: root/shared/xmlBase.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
commit618dfb51d93898632830f1b87443d3f748780871 (patch)
treebac520a2e261154f8d35b0cb8aa345f5ab373811 /shared/xmlBase.h
parent3.4 (diff)
downloadFreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip
3.5
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