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