CMS 3D CMS Logo

DQMParserBase Class Reference

* Base class for Parsers used by DQM More...

#include <DQMServices/ClientConfig/interface/DQMParserBase.h>

Inheritance diagram for DQMParserBase:

QTestConfigurationParser SiPixelConfigParser SiPixelLayoutParser SiStripConfigParser SiStripLayoutParser SummaryPlotXmlParser

List of all members.

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


Detailed Description

* Base class for Parsers used by DQM

Date
2007/01/31 18:57:41
Revision
1.4
Author:
Ilaria Segoni

Definition at line 31 of file DQMParserBase.h.


Constructor & Destructor Documentation

DQMParserBase::DQMParserBase (  ) 

Creator.

Definition at line 17 of file DQMParserBase.cc.

References doc, and parser.

00017                             {
00018         parser=0; 
00019         doc=0; 
00020 }

DQMParserBase::~DQMParserBase (  )  [virtual]

Destructor.

Definition at line 22 of file DQMParserBase.cc.

References parser.

00022                              {
00023         delete parser;
00024         parser=0; 
00025 }


Member Function Documentation

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.

References doc, and parser.

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.

References doc, and parser.

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 }


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:18:36 2009 for CMSSW by  doxygen 1.5.4