#include <assert.h>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <memory>
#include <string>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/XMLUni.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
#include <xercesc/dom/DOMWriter.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/sax/HandlerBase.hpp>
#include "FWCore/Utilities/interface/Exception.h"
#include "PhysicsTools/MVATrainer/interface/XMLSimpleStr.h"
#include "PhysicsTools/MVATrainer/interface/XMLUniStr.h"
#include "PhysicsTools/MVATrainer/interface/XMLDocument.h"
Go to the source code of this file.
Functions | |
static bool | isBool (std::string value) |
static const char * | makeBool (bool value) |
static bool isBool | ( | std::string | value | ) | [static] |
Definition at line 162 of file XMLDocument.cc.
References lat::endl(), Exception, and i.
Referenced by XMLDocument::readAttribute(), and XMLDocument::readContent().
00163 { 00164 for(unsigned int i = 0; i < value.size(); i++) 00165 if (value[i] >= 'A' && value[i] <= 'Z') 00166 value[i] += 'a' - 'A'; 00167 00168 if (value == "1" || value == "y" || value == "yes" || 00169 value == "true" || value == "ok") 00170 return true; 00171 00172 if (value == "0" || value == "n" || value == "no" || value == "false") 00173 return false; 00174 00175 throw cms::Exception("XMLDocument") 00176 << "Invalid boolean value in XML document" << std::endl; 00177 }
static const char* makeBool | ( | bool | value | ) | [static] |
Definition at line 179 of file XMLDocument.cc.
Referenced by XMLDocument::writeAttribute(), and XMLDocument::writeContent().
00180 { 00181 return value ? "true" : "false"; 00182 }
DOMDocument* doc |
Definition at line 33 of file XMLDocument.cc.
Referenced by pool::TrivialFileCatalog::connect(), IgConfigElement::initConfiguration(), cscdqm::Configuration::load(), cscdqm::Collection::load(), CSCMonitorModule::loadCollection(), MuonAlignmentInputXML::newAlignableMuon(), edm::service::SiteLocalConfigService::parse(), IgModuleCache::parse(), L1GtTriggerMenuXmlParser::parseAlgorithms(), L1GtTriggerMenuXmlParser::parseConditions(), L1GtTriggerMenuXmlParser::parseTechTriggers(), L1GtTriggerMenuXmlParser::parseVmeXML(), MiscalibReaderFromXML::parseXMLMiscalibFile(), cscdqm::Configuration::printXML(), and L1GtTriggerMenuXmlParser::workXML().