00001 #ifndef ots_ConvertToXML_h
00002 #define ots_ConvertToXML_h
00003
00004 #include <string>
00005 #include <xercesc/util/XMLChar.hpp>
00006
00007 namespace ots
00008 {
00009 class ConvertToXML
00010 {
00011 public:
00012 ConvertToXML(const char* const toTranscode);
00013 ConvertToXML(const std::string& toTranscode);
00014 ConvertToXML(const int toTranscode);
00015 ~ConvertToXML(void);
00016
00017 const XMLCh* unicodeForm() const;
00018
00019 private:
00020 XMLCh* fUnicodeForm_;
00021 };
00022
00023 #define CONVERT_TO_XML(str) ConvertToXML(str).unicodeForm()
00024
00025 }
00026
00027 #endif