CMS 3D CMS Logo

XMLUniStr.h

Go to the documentation of this file.
00001 #ifndef PhysicsTools_MVATrainer_XMLUniStr_h
00002 #define PhysicsTools_MVATrainer_XMLUniStr_h
00003 
00004 #include <xercesc/util/XMLString.hpp>
00005 #include <xercesc/util/XMLUni.hpp>
00006 
00007 class XMLUniStr {
00008     public:
00009         XMLUniStr(const char *str) :
00010                 unicode(XERCES_CPP_NAMESPACE_QUALIFIER XMLString::transcode(str))
00011         {}
00012 
00013         ~XMLUniStr()
00014         { XERCES_CPP_NAMESPACE_QUALIFIER XMLString::release(&unicode); }
00015 
00016         operator const XMLCh *() const
00017         { return unicode; }
00018 
00019     private:
00020         XMLCh   *unicode;
00021 };
00022 
00023 #endif // PhysicsTools_MVATrainer_XMLUniStr_h

Generated on Tue Jun 9 17:41:32 2009 for CMSSW by  doxygen 1.5.4