CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
XMLSimpleStr.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_MVATrainer_XMLSimpleStr_h
2 #define PhysicsTools_MVATrainer_XMLSimpleStr_h
3 
4 #include <string>
5 
6 #include <xercesc/util/XMLString.hpp>
7 #include <xercesc/util/XMLUni.hpp>
8 
9 class XMLSimpleStr {
10  public:
11  XMLSimpleStr(const XMLCh *str) :
12  string(XERCES_CPP_NAMESPACE_QUALIFIER XMLString::transcode(str))
13  {}
14 
17 
18  operator const char *() const
19  { return string; }
20 
21  operator std::string() const
22  { return string; }
23 
24  private:
25  char *string;
26 };
27 
28 #endif // PhysicsTools_MVATrainer_XMLSimpleStr_h
XMLSimpleStr(const XMLCh *str)
Definition: XMLSimpleStr.h:11
char * string
Definition: XMLSimpleStr.h:25
#define XERCES_CPP_NAMESPACE_QUALIFIER
Definition: LHERunInfo.h:16