CMS 3D CMS Logo

Classes | Defines | Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/L1Trigger/RPCTrigger/src/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

Defines

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

Functions

string xMLCh2String (const XMLCh *ch)

Define 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 cmsPerfSuiteHarvest::release.

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

                                     {
#ifdef __BORLANDC__
  if(ch == 0) return "";
  WideString wstr(ch);
  AnsiString astr(wstr);
  return astr.c_str();
#else
        if(ch == 0) return "";

        //auto_ptr<char> v(XMLString::transcode(ch));
  //return string(v.get());
  char* buf = XMLString::transcode(ch);
  string str(buf);
  XMLString::release(&buf);
  return str;
#endif
}