otsdaq  v2_01_00
ConvertToXML.h
1 #ifndef ots_ConvertToXML_h
2 #define ots_ConvertToXML_h
3 
4 #include <xercesc/util/XMLChar.hpp>
5 #include <string>
6 
7 namespace ots
8 {
9 
11 {
12 public :
13  ConvertToXML (const char* const toTranscode);
14  ConvertToXML (const std::string& toTranscode);
15  ConvertToXML (const int toTranscode);
16  ~ConvertToXML(void);
17 
18  const XMLCh* unicodeForm() const;
19 
20 private :
21  XMLCh* fUnicodeForm_;
22 };
23 
24 #define CONVERT_TO_XML(str) ConvertToXML(str).unicodeForm()
25 
26 }
27 
28 #endif