CMS 3D CMS Logo

Classes | Functions
cms::xerces Namespace Reference

Classes

class  ZStr
 

Functions

ZStr< char > cStr (XMLCh const *str)
 
void dispose (char *ptr)
 
void dispose (XMLCh *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

◆ cStr()

ZStr<char> cms::xerces::cStr ( XMLCh const *  str)
inline

◆ dispose() [1/2]

void cms::xerces::dispose ( char *  ptr)
inline

Definition at line 16 of file XercesStrUtils.h.

16 { XMLString::release(&ptr); }

References fetchall_from_DQM_v2::release.

◆ dispose() [2/2]

void cms::xerces::dispose ( XMLCh *  ptr)
inline

Definition at line 15 of file XercesStrUtils.h.

15 { XMLString::release(&ptr); }

References fetchall_from_DQM_v2::release.

Referenced by querying.connection::hard_close().

◆ toBool()

bool cms::xerces::toBool ( XMLCh const *  toTranscode)
inline

Definition at line 43 of file XercesStrUtils.h.

43  {
44  std::string value = toString(toTranscode);
45  if ((value == "true") || (value == "1"))
46  return true;
47  return false;
48  }

References AlCaHLTBitMon_QueryRunRegistry::string, and toString().

◆ toDouble()

double cms::xerces::toDouble ( XMLCh const *  toTranscode)
inline

Definition at line 50 of file XercesStrUtils.h.

50  {
51  std::istringstream iss(toString(toTranscode));
52  double returnValue;
53  iss >> returnValue;
54  return returnValue;
55  }

References toString().

Referenced by CTPPSRPAlignmentCorrectionsMethods::getCorrectionsData().

◆ toString()

std::string cms::xerces::toString ( XMLCh const *  toTranscode)
inline

Definition at line 34 of file XercesStrUtils.h.

34 { return std::string(cStr(toTranscode).ptr()); }

References cStr(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by l1t::XmlConfigParser::buildGlobalDoc(), CTPPSPixelDAQMappingESSourceXML::ChipFramePosition(), TotemDAQMappingESSourceXML::ChipFramePosition(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), EcalTimeBiasCorrectionsXMLTranslator::dumpXML(), EcalTPGLinearizationConstXMLTranslator::dumpXML(), EcalTPGStripStatusXMLTranslator::dumpXML(), EcalTPGTowerStatusXMLTranslator::dumpXML(), ESGainXMLTranslator::dumpXML(), EcalClusterLocalContCorrXMLTranslator::dumpXML(), EcalPulseShapesXMLTranslator::dumpXML(), EcalPedestalsXMLTranslator::dumpXML(), EcalDAQTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalLinearCorrectionsXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), EcalChannelStatusXMLTranslator::dumpXML(), EcalAlignmentXMLTranslator::dumpXML(), EcalPulseSymmCovariancesXMLTranslator::dumpXML(), EcalWeightGroupXMLTranslator::dumpXML(), EcalClusterCrackCorrXMLTranslator::dumpXML(), EcalADCToGeVXMLTranslator::dumpXML(), EcalTimeOffsetXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionObjectSpecificXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionXMLTranslator::dumpXML(), EcalTBWeightsXMLTranslator::dumpXML(), EcalWeightSetXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), TotemDAQMappingESSourceXML::GetChannels(), CTPPSRPAlignmentCorrectionsMethods::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(), CTPPSRPAlignmentCorrectionsMethods::loadFromXML(), TotemDAQMappingESSourceXML::ParseTreeDiamond(), CTPPSPixelDAQMappingESSourceXML::ParseTreePixel(), TotemDAQMappingESSourceXML::ParseTreeRP(), TotemDAQMappingESSourceXML::ParseTreeTotemTiming(), TotemDAQMappingESSourceXML::produce(), xuti::readCellId(), l1t::XmlConfigParser::readContext(), l1t::XmlConfigParser::readHwDescription(), EcalTBWeightsXMLTranslator::readWeightSet(), EcalWeightSetXMLTranslator::readXML(), CTPPSPixelDAQMappingESSourceXML::Test(), TotemDAQMappingESSourceXML::Test(), toBool(), toDouble(), toUInt(), EcalWeightSetXMLTranslator::write10x10(), and EcalWeightSetXMLTranslator::write3x10().

◆ toUInt()

unsigned int cms::xerces::toUInt ( XMLCh const *  toTranscode)
inline

Definition at line 36 of file XercesStrUtils.h.

36  {
37  std::istringstream iss(toString(toTranscode));
38  unsigned int returnValue;
39  iss >> returnValue;
40  return returnValue;
41  }

References toString().

Referenced by CTPPSRPAlignmentCorrectionsMethods::getCorrectionsData().

◆ uStr()

ZStr<XMLCh> cms::xerces::uStr ( char const *  str)
inline

Definition at line 30 of file XercesStrUtils.h.

30 { return ZStr<XMLCh>(XMLString::transcode(str)); }

References str.

Referenced by EcalTPGCrystalStatusXMLTranslator::dumpXML(), EcalTimeBiasCorrectionsXMLTranslator::dumpXML(), ESGainXMLTranslator::dumpXML(), EcalClusterLocalContCorrXMLTranslator::dumpXML(), EcalTPGLinearizationConstXMLTranslator::dumpXML(), EcalTPGStripStatusXMLTranslator::dumpXML(), EcalTPGTowerStatusXMLTranslator::dumpXML(), EcalPedestalsXMLTranslator::dumpXML(), EcalPulseShapesXMLTranslator::dumpXML(), EcalDAQTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalLinearCorrectionsXMLTranslator::dumpXML(), EcalAlignmentXMLTranslator::dumpXML(), EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), EcalChannelStatusXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalWeightGroupXMLTranslator::dumpXML(), EcalClusterCrackCorrXMLTranslator::dumpXML(), EcalPulseSymmCovariancesXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionObjectSpecificXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionXMLTranslator::dumpXML(), EcalTimeOffsetXMLTranslator::dumpXML(), EcalADCToGeVXMLTranslator::dumpXML(), EcalTBWeightsXMLTranslator::dumpXML(), EcalWeightSetXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), 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().

cms::xerces::cStr
ZStr< char > cStr(XMLCh const *str)
Definition: XercesStrUtils.h:32
cms::xerces::toString
std::string toString(XMLCh const *toTranscode)
Definition: XercesStrUtils.h:34
str
#define str(s)
Definition: TestProcessor.cc:51
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
fetchall_from_DQM_v2.release
release
Definition: fetchall_from_DQM_v2.py:92
value
Definition: value.py:1