#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "L1Trigger/RPCTrigger/interface/RPCPatternsParser.h"
#include <xercesc/sax2/SAX2XMLReader.hpp>
#include <xercesc/sax2/XMLReaderFactory.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include <sstream>
#include <fstream>
#include <iostream>
#include "L1Trigger/RPCTrigger/interface/RPCException.h"
Go to the source code of this file.
Classes | |
class | XStr |
Defines | |
#define | Char2XMLCh(str) XStr(str).unicodeForm() |
Functions | |
string | xMLCh2String (const XMLCh *ch) |
#define Char2XMLCh | ( | str | ) | XStr(str).unicodeForm() |
Definition at line 104 of file RPCPatternsParser.cc.
string xMLCh2String | ( | const XMLCh * | ch | ) |
Definition at line 25 of file RPCPatternsParser.cc.
References release(), and transcode().
00025 { 00026 #ifdef __BORLANDC__ 00027 if(ch == 0) return ""; 00028 WideString wstr(ch); 00029 AnsiString astr(wstr); 00030 return astr.c_str(); 00031 #else 00032 if(ch == 0) return ""; 00033 00034 //auto_ptr<char> v(XMLString::transcode(ch)); 00035 //return string(v.get()); 00036 char* buf = XMLString::transcode(ch); 00037 string str(buf); 00038 XMLString::release(&buf); 00039 return str; 00040 #endif 00041 }