summaryrefslogtreecommitdiffstats
path: root/src/Common/XmlData.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/XmlData.h')
-rw-r--r--src/Common/XmlData.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Common/XmlData.h b/src/Common/XmlData.h
index 6be2b1d..51e5327 100644
--- a/src/Common/XmlData.h
+++ b/src/Common/XmlData.h
@@ -23,6 +23,7 @@
#include "export.h"
#include <Net/Packet.h>
+#include <Core/Exception.h>
#include <map>
#include <string>
@@ -438,6 +439,7 @@ class MAD_COMMON_EXPORT XmlData {
XmlData();
XmlData(const XmlData &o);
XmlData(const Net::Packet &packet);
+ XmlData(const std::string &filename) throw (Core::Exception);
XmlData& operator=(const XmlData &o);
@@ -477,6 +479,8 @@ class MAD_COMMON_EXPORT XmlData {
}
Net::Packet toPacket(boost::uint16_t requestId) const;
+
+ void toFile(const std::string &filename) const throw (Core::Exception);
};
template <> MAD_COMMON_EXPORT std::string XmlData::Entry::get<std::string>(const std::string &name) const;