00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _CXMLHELPER
00024 #define _CXMLHELPER
00025 #include "libMRML/include/uses-declarations.h"
00026 #include <string>
00027 #include <map>
00028
00030 class CXMLHelper{
00032 string mName;
00034 typedef map<string,string> CContent;
00036 CContent mAttributes;
00038 bool mIsEmpty;
00040 bool mIsEnd;
00041 public:
00043 CXMLHelper();
00045 string toString()const;
00047 void setName(const string& inName);
00049 void setEmpty();
00051 void setEnd();
00053 void addAttribute(const string& inAttribute,
00054 const string& inValue);
00056 void addAttribute(const string& inAttribute,
00057 int inValue);
00059 void addAttribute(const string& inAttribute,
00060 double inValue);
00061 };
00062
00063 #endif