version 0.1.11
[fms.git] / include / ifmsxmldocument.h
index 24484ec..8e04c3c 100644 (file)
@@ -1,9 +1,15 @@
 #ifndef _ifmsxmldocument_\r
 #define _ifmsxmldocument_\r
 \r
+#include "stringfunctions.h"\r
+\r
 #include <string>\r
 #include <tinyxml.h>\r
 \r
+#ifdef XMEM\r
+       #include <xmem.h>\r
+#endif\r
+\r
 /**\r
        \brief Interface for objects that represent an XML document\r
 */\r
@@ -60,6 +66,13 @@ protected:
                return el;\r
        }\r
 \r
+       virtual TiXmlElement *XMLCreateTextElement(const std::string &name, const long data)\r
+       {\r
+               std::string datastr;\r
+               StringFunctions::Convert(data,datastr);\r
+               return XMLCreateTextElement(name,datastr);\r
+       }\r
+\r
        virtual const bool XMLGetBooleanElement(TiXmlElement *parent, const std::string &name)\r
        {\r
                TiXmlHandle hnd(parent);\r