CMS 3D CMS Logo

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 "Utilities/Xerces/interface/Xerces.h"
#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

◆ Char2XMLCh

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

Definition at line 93 of file RPCPatternsParser.cc.

Referenced by RPCPatternsParser::startElement().

Function Documentation

◆ xMLCh2String()

string xMLCh2String ( const XMLCh *  ch)

Definition at line 25 of file RPCPatternsParser.cc.

References visDQMUpload::buf, fetchall_from_DQM_v2::release, and str.

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

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