CMS 3D CMS Logo

Classes | Functions
cms::xerces Namespace Reference

Classes

class  ZStr
 

Functions

ZStr< char > cStr (XMLCh const *str)
 
void dispose (XMLCh *ptr)
 
void dispose (char *ptr)
 
bool toBool (XMLCh const *toTranscode)
 
double toDouble (XMLCh const *toTranscode)
 
std::string toString (XMLCh const *toTranscode)
 
unsigned int toUInt (XMLCh const *toTranscode)
 
ZStr< XMLCh > uStr (char const *str)
 

Function Documentation

ZStr<char> cms::xerces::cStr ( XMLCh const *  str)
inline
void cms::xerces::dispose ( XMLCh *  ptr)
inline
void cms::xerces::dispose ( char *  ptr)
inline
bool cms::xerces::toBool ( XMLCh const *  toTranscode)
inline

Definition at line 51 of file XercesStrUtils.h.

References AlCaHLTBitMon_QueryRunRegistry::string, and toString().

Referenced by edm::service::SiteLocalConfigService::parse().

51  {
52  std::string value = toString(toTranscode);
53  if ((value == "true") || (value == "1"))
54  return true;
55  return false;
56  }
std::string toString(XMLCh const *toTranscode)
Definition: value.py:1
double cms::xerces::toDouble ( XMLCh const *  toTranscode)
inline

Definition at line 58 of file XercesStrUtils.h.

References toString().

Referenced by RPAlignmentCorrectionsMethods::getCorrectionsData(), and edm::service::SiteLocalConfigService::parse().

58  {
59  std::istringstream iss(toString(toTranscode));
60  double returnValue;
61  iss >> returnValue;
62  return returnValue;
63  }
std::string toString(XMLCh const *toTranscode)
std::string cms::xerces::toString ( XMLCh const *  toTranscode)
inline

Definition at line 40 of file XercesStrUtils.h.

References cStr(), cms::xerces::ZStr< CharType >::ptr(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by l1t::XmlConfigParser::buildGlobalDoc(), CTPPSPixelDAQMappingESSourceXML::ChipFramePosition(), TotemDAQMappingESSourceXML::ChipFramePosition(), EcalTPGLinearizationConstXMLTranslator::dumpXML(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ESGainXMLTranslator::dumpXML(), EcalTimeBiasCorrectionsXMLTranslator::dumpXML(), EcalAlignmentXMLTranslator::dumpXML(), EcalTPGStripStatusXMLTranslator::dumpXML(), EcalTPGTowerStatusXMLTranslator::dumpXML(), EcalClusterLocalContCorrXMLTranslator::dumpXML(), EcalPedestalsXMLTranslator::dumpXML(), EcalPulseShapesXMLTranslator::dumpXML(), EcalPulseSymmCovariancesXMLTranslator::dumpXML(), EcalDAQTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalChannelStatusXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), EcalLinearCorrectionsXMLTranslator::dumpXML(), EcalWeightGroupXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionObjectSpecificXMLTranslator::dumpXML(), EcalClusterCrackCorrXMLTranslator::dumpXML(), EcalTimeOffsetXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionXMLTranslator::dumpXML(), EcalADCToGeVXMLTranslator::dumpXML(), EcalTBWeightsXMLTranslator::dumpXML(), EcalWeightSetXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), TotemDAQMappingESSourceXML::GetChannels(), RPAlignmentCorrectionsMethods::getCorrectionsData(), l1t::XmlConfigParser::getKeyElement(), CTPPSPixelDAQMappingESSourceXML::GetNodeContent(), TotemDAQMappingESSourceXML::GetNodeContent(), xuti::GetNodeData(), xuti::GetNodeStringData(), CTPPSPixelDAQMappingESSourceXML::GetNodeType(), TotemDAQMappingESSourceXML::GetNodeType(), CTPPSPixelDAQMappingESSourceXML::GetNodeValue(), TotemDAQMappingESSourceXML::GetNodeValue(), CTPPSPixelDAQMappingESSourceXML::GetPixels(), popcon::EcalSRPHandler::importDccConfigFile(), RPAlignmentCorrectionsDataSequence::loadXMLFile(), TotemDAQMappingESSourceXML::ParseTreeDiamond(), CTPPSPixelDAQMappingESSourceXML::ParseTreePixel(), TotemDAQMappingESSourceXML::ParseTreeRP(), TotemDAQMappingESSourceXML::produce(), xuti::readCellId(), l1t::XmlConfigParser::readContext(), l1t::XmlConfigParser::readHwDescription(), EcalTBWeightsXMLTranslator::readWeightSet(), EcalWeightSetXMLTranslator::readXML(), CTPPSPixelDAQMappingESSourceXML::Test(), TotemDAQMappingESSourceXML::Test(), toBool(), toDouble(), toUInt(), EcalWeightSetXMLTranslator::write10x10(), EcalWeightSetXMLTranslator::write3x10(), and xuti::writeCell().

40  {
41  return std::string(cStr(toTranscode).ptr());
42  }
ZStr< char > cStr(XMLCh const *str)
unsigned int cms::xerces::toUInt ( XMLCh const *  toTranscode)
inline

Definition at line 44 of file XercesStrUtils.h.

References toString().

Referenced by RPAlignmentCorrectionsMethods::getCorrectionsData(), and edm::service::SiteLocalConfigService::parse().

44  {
45  std::istringstream iss(toString(toTranscode));
46  unsigned int returnValue;
47  iss >> returnValue;
48  return returnValue;
49  }
std::string toString(XMLCh const *toTranscode)
ZStr<XMLCh> cms::xerces::uStr ( char const *  str)
inline

Definition at line 32 of file XercesStrUtils.h.

Referenced by EcalTPGLinearizationConstXMLTranslator::dumpXML(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ESGainXMLTranslator::dumpXML(), EcalTimeBiasCorrectionsXMLTranslator::dumpXML(), EcalClusterLocalContCorrXMLTranslator::dumpXML(), EcalAlignmentXMLTranslator::dumpXML(), EcalTPGStripStatusXMLTranslator::dumpXML(), EcalTPGTowerStatusXMLTranslator::dumpXML(), EcalPedestalsXMLTranslator::dumpXML(), EcalPulseShapesXMLTranslator::dumpXML(), EcalPulseSymmCovariancesXMLTranslator::dumpXML(), EcalDAQTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalChannelStatusXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), EcalWeightGroupXMLTranslator::dumpXML(), EcalLinearCorrectionsXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionObjectSpecificXMLTranslator::dumpXML(), EcalClusterCrackCorrXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionXMLTranslator::dumpXML(), EcalTimeOffsetXMLTranslator::dumpXML(), EcalADCToGeVXMLTranslator::dumpXML(), EcalTBWeightsXMLTranslator::dumpXML(), EcalWeightSetXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), edm::FileLocator::init(), edm::service::SiteLocalConfigService::parse(), edm::FileLocator::parseRule(), xuti::readCellId(), EcalTBWeightsXMLTranslator::readWeightSet(), EcalWeightSetXMLTranslator::readXML(), DDLSAX2ExpressionHandler::startElement(), DDLSAX2ConfigHandler::startElement(), EcalWeightSetXMLTranslator::write10x10(), EcalWeightSetXMLTranslator::write3x10(), xuti::writeCell(), EcalTBWeightsXMLTranslator::writeChi2WeightMatrix(), xuti::writeHeader(), xuti::WriteNodeWithValue(), EcalTBWeightsXMLTranslator::writeWeightMatrix(), and EcalTBWeightsXMLTranslator::writeWeightSet().

32  {
33  return ZStr<XMLCh>(XMLString::transcode(str));
34  }