#include <DQMServices/ClientConfig/interface/DQMParserBase.h>
Public Member Functions | |
int | countNodes (std::string tagName) |
Returns the number of nodes with given name. | |
DQMParserBase () | |
Creator. | |
void | getDocument (std::string configFile) |
Methor that parses the xml file configFile. | |
void | getNewDocument (std::string configFile) |
Parses a new Document. | |
virtual | ~DQMParserBase () |
Destructor. | |
Protected Attributes | |
xercesc::DOMDocument * | doc |
xercesc::XercesDOMParser * | parser |
Definition at line 31 of file DQMParserBase.h.
DQMParserBase::DQMParserBase | ( | ) |
DQMParserBase::~DQMParserBase | ( | ) | [virtual] |
int DQMParserBase::countNodes | ( | std::string | tagName | ) |
Returns the number of nodes with given name.
Definition at line 48 of file DQMParserBase.cc.
References qtxml::_toDOMS(), and doc.
00048 { 00049 unsigned int tagsNum = 00050 doc->getElementsByTagName(qtxml::_toDOMS(tagName))->getLength(); 00051 return tagsNum; 00052 }
void DQMParserBase::getDocument | ( | std::string | configFile | ) |
Methor that parses the xml file configFile.
Definition at line 28 of file DQMParserBase.cc.
Referenced by QTestHandle::configureTests(), SiPixelActionExecutor::createSummary(), SiStripInformationExtractor::getTrackerMapHistos(), SiPixelInformationExtractor::getTrackerMapHistos(), SummaryPlotXmlParser::parseXML(), SiStripInformationExtractor::readConfiguration(), SiStripSummaryCreator::readConfiguration(), SiPixelActionExecutor::readConfiguration(), and SiStripTrackerMapCreator::readConfiguration().
00028 { 00029 00030 parser = new XercesDOMParser; 00031 parser->setValidationScheme(XercesDOMParser::Val_Auto); 00032 parser->setDoNamespaces(false); 00033 parser->parse(configFile.c_str()); 00034 doc = parser->getDocument(); 00035 assert(doc); 00036 00037 }
void DQMParserBase::getNewDocument | ( | std::string | configFile | ) |
Parses a new Document.
Definition at line 39 of file DQMParserBase.cc.
Referenced by QTestHandle::configureTests().
00039 { 00040 //delete doc; 00041 //doc =0; 00042 parser->resetDocumentPool(); 00043 parser->parse(configFile.c_str()); 00044 doc = parser->getDocument(); 00045 assert(doc); 00046 00047 }
xercesc::DOMDocument* DQMParserBase::doc [protected] |
Definition at line 47 of file DQMParserBase.h.
Referenced by countNodes(), DQMParserBase(), SiPixelConfigParser::getCalibType(), getDocument(), SiPixelConfigParser::getFrequencyForBarrelSummary(), SiPixelConfigParser::getFrequencyForEndcapSummary(), SiPixelConfigParser::getFrequencyForGrandBarrelSummary(), SiPixelConfigParser::getFrequencyForGrandEndcapSummary(), SiStripConfigParser::getFrequencyForSummary(), SiStripConfigParser::getFrequencyForTrackerMap(), SiPixelConfigParser::getFrequencyForTrackerMap(), SiPixelConfigParser::getMessageLimitForQTests(), getNewDocument(), SiPixelConfigParser::getSourceType(), QTestConfigurationParser::monitorElementTestsMap(), SummaryPlotXmlParser::parseXML(), and QTestConfigurationParser::qtestsConfig().
xercesc::XercesDOMParser* DQMParserBase::parser [protected] |
Definition at line 46 of file DQMParserBase.h.
Referenced by DQMParserBase(), getDocument(), getNewDocument(), and ~DQMParserBase().