diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:53 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:53 +0200 |
commit | 618dfb51d93898632830f1b87443d3f748780871 (patch) | |
tree | bac520a2e261154f8d35b0cb8aa345f5ab373811 /shared/xmlBase.h | |
parent | 3.4 (diff) | |
download | FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2 FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip |
3.5
Diffstat (limited to 'shared/xmlBase.h')
-rw-r--r-- | shared/xmlBase.h | 12 |
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; }; |