CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Functions
RPCPatternsParser.cc File Reference
#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
 

Macros

#define Char2XMLCh(str)   XStr(str).unicodeForm()
 

Functions

string xMLCh2String (const XMLCh *ch)
 

Macro Definition Documentation

#define Char2XMLCh (   str)    XStr(str).unicodeForm()

Definition at line 104 of file RPCPatternsParser.cc.

Referenced by RPCPatternsParser::startElement().

Function Documentation

string xMLCh2String ( const XMLCh *  ch)

Definition at line 25 of file RPCPatternsParser.cc.

References fetchall_from_DQM_v2::release.

Referenced by RPCPatternsParser::endElement(), RPCPatternsParser::RPCPatternsParser(), and RPCPatternsParser::startElement().

25  {
26 #ifdef __BORLANDC__
27  if(ch == 0) return "";
28  WideString wstr(ch);
29  AnsiString astr(wstr);
30  return astr.c_str();
31 #else
32  if(ch == 0) return "";
33 
34  //auto_ptr<char> v(XMLString::transcode(ch));
35  //return string(v.get());
36  char* buf = XMLString::transcode(ch);
37  string str(buf);
38  XMLString::release(&buf);
39  return str;
40 #endif
41 }