X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fifmsxmldocument.h;h=8e04c3c8bc4db26ef5603f5eee28068e3d39162d;hb=df316253862dc50e8e5a790d9634ef90be37badb;hp=24484ecf080f5cc7369e4b5057785670fae3b655;hpb=d8f51eac91f86a1e00a05a5058a8fa9eb8732464;p=fms.git diff --git a/include/ifmsxmldocument.h b/include/ifmsxmldocument.h index 24484ec..8e04c3c 100644 --- a/include/ifmsxmldocument.h +++ b/include/ifmsxmldocument.h @@ -1,9 +1,15 @@ #ifndef _ifmsxmldocument_ #define _ifmsxmldocument_ +#include "stringfunctions.h" + #include #include +#ifdef XMEM + #include +#endif + /** \brief Interface for objects that represent an XML document */ @@ -60,6 +66,13 @@ protected: return el; } + virtual TiXmlElement *XMLCreateTextElement(const std::string &name, const long data) + { + std::string datastr; + StringFunctions::Convert(data,datastr); + return XMLCreateTextElement(name,datastr); + } + virtual const bool XMLGetBooleanElement(TiXmlElement *parent, const std::string &name) { TiXmlHandle hnd(parent);