CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Definition at line 14 of file XercesStrUtils.h.

References fetchall_from_DQM_v2::release.

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

Definition at line 15 of file XercesStrUtils.h.

References fetchall_from_DQM_v2::release.

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

Definition at line 50 of file XercesStrUtils.h.

References AlCaHLTBitMon_QueryRunRegistry::string, toString(), and relativeConstraints::value.

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

50  {
51  std::string value = toString(toTranscode);
52  if ((value == "true") || (value == "1"))
53  return true;
54  return false;
55  }
std::string toString(const char *format,...)
Definition: xdaq_compat.cc:4
double cms::xerces::toDouble ( XMLCh const *  toTranscode)
inline

Definition at line 57 of file XercesStrUtils.h.

References toString().

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

57  {
58  std::istringstream iss(toString(toTranscode));
59  double returnValue;
60  iss >> returnValue;
61  return returnValue;
62  }
std::string toString(const char *format,...)
Definition: xdaq_compat.cc:4
std::string cms::xerces::toString ( XMLCh const *  toTranscode)
inline

Definition at line 39 of file XercesStrUtils.h.

References cStr(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by EcalTPGLinearizationConstXMLTranslator::dumpXML(), EcalTPGCrystalStatusXMLTranslator::dumpXML(), ESGainXMLTranslator::dumpXML(), EcalTimeBiasCorrectionsXMLTranslator::dumpXML(), EcalAlignmentXMLTranslator::dumpXML(), EcalClusterLocalContCorrXMLTranslator::dumpXML(), EcalTPGStripStatusXMLTranslator::dumpXML(), EcalTPGTowerStatusXMLTranslator::dumpXML(), EcalPedestalsXMLTranslator::dumpXML(), EcalPulseShapesXMLTranslator::dumpXML(), EcalPulseSymmCovariancesXMLTranslator::dumpXML(), EcalDAQTowerStatusXMLTranslator::dumpXML(), EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalChannelStatusXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalWeightGroupXMLTranslator::dumpXML(), EcalLinearCorrectionsXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionObjectSpecificXMLTranslator::dumpXML(), EcalClusterCrackCorrXMLTranslator::dumpXML(), EcalLaserAPDPNRatiosXMLTranslator::dumpXML(), EcalClusterEnergyCorrectionXMLTranslator::dumpXML(), EcalTimeOffsetXMLTranslator::dumpXML(), EcalADCToGeVXMLTranslator::dumpXML(), EcalTBWeightsXMLTranslator::dumpXML(), EcalWeightSetXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), xuti::GetNodeData(), xuti::GetNodeStringData(), popcon::EcalSRPHandler::importDccConfigFile(), xuti::readCellId(), EcalTBWeightsXMLTranslator::readWeightSet(), EcalWeightSetXMLTranslator::readXML(), toBool(), toDouble(), toUInt(), EcalWeightSetXMLTranslator::write10x10(), and EcalWeightSetXMLTranslator::write3x10().

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

Definition at line 43 of file XercesStrUtils.h.

References toString().

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

43  {
44  std::istringstream iss(toString(toTranscode));
45  unsigned int returnValue;
46  iss >> returnValue;
47  return returnValue;
48  }
std::string toString(const char *format,...)
Definition: xdaq_compat.cc:4
ZStr<XMLCh> cms::xerces::uStr ( char const *  str)
inline

Definition at line 31 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().

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