#include <XmlConfigParser.h>
Public Member Functions | |
void | buildGlobalDoc (const std::string &key, const std::string &topPath="") |
xercesc::DOMElement * | getKeyElement (const std::string &key) |
void | readContext (const xercesc::DOMElement *element, const std::string &sysId, TriggerSystem &aTriggerSystem) |
void | readContexts (const std::string &key, const std::string &sysId, TriggerSystem &aTriggerSystem) |
void | readDOMFromFile (const std::string &fName) |
void | readDOMFromFile (const std::string &fName, xercesc::DOMDocument *&doc) |
void | readDOMFromString (const std::string &str) |
void | readDOMFromString (const std::string &str, xercesc::DOMDocument *&doc) |
void | readElement (const xercesc::DOMElement *element, TriggerSystem &aTriggerSystem, const std::string &sysId="") |
void | readHwDescription (const xercesc::DOMElement *element, TriggerSystem &aTriggerSystem, const std::string &sysId="") |
void | readRootElement (TriggerSystem &aTriggerSystem, const std::string &sysId="") |
XmlConfigParser () | |
XmlConfigParser (xercesc::DOMDocument *doc) | |
~XmlConfigParser () | |
Public Attributes | |
const XMLCh * | kAttrDelim |
const XMLCh * | kAttrId |
const XMLCh * | kAttrModule |
const XMLCh * | kAttrType |
const XMLCh * | kTagAlgo |
const XMLCh * | kTagColumns |
const XMLCh * | kTagContext |
const XMLCh * | kTagCrate |
const XMLCh * | kTagDaqTtc |
const XMLCh * | kTagDb |
const XMLCh * | kTagDisable |
const XMLCh * | kTagExclBoards |
const XMLCh * | kTagExclude |
const XMLCh * | kTagHw |
const XMLCh * | kTagKey |
const XMLCh * | kTagLoad |
const XMLCh * | kTagMask |
const XMLCh * | kTagParam |
const XMLCh * | kTagProcessor |
const XMLCh * | kTagRole |
const XMLCh * | kTagRow |
const XMLCh * | kTagRunSettings |
const XMLCh * | kTagSlot |
const XMLCh * | kTagTypes |
const std::string | kTypeTable |
Private Member Functions | |
void | appendNodesFromSubDoc (xercesc::DOMNode *parentNode, xercesc::DOMDocument *subDoc) |
char * | pruneString (char *&str) |
void | pruneString (std::string &str) |
Private Attributes | |
xercesc::DOMDocument * | doc_ |
xercesc::XercesDOMParser * | parser_ |
Definition at line 23 of file XmlConfigParser.h.
XmlConfigParser::XmlConfigParser | ( | ) |
Initialise XML parser
Definition at line 30 of file XmlConfigParser.cc.
References doc_, kAttrDelim, kAttrId, kAttrModule, kAttrType, kTagAlgo, kTagColumns, kTagContext, kTagCrate, kTagDaqTtc, kTagDb, kTagDisable, kTagExclBoards, kTagExclude, kTagHw, kTagKey, kTagLoad, kTagMask, kTagParam, kTagProcessor, kTagRole, kTagRow, kTagRunSettings, kTagSlot, kTagTypes, and parser_.
l1t::XmlConfigParser::XmlConfigParser | ( | xercesc::DOMDocument * | doc | ) |
XmlConfigParser::~XmlConfigParser | ( | ) |
Definition at line 148 of file XmlConfigParser.cc.
References parser_.
|
private |
Definition at line 560 of file XmlConfigParser.cc.
References doc_, equals(), kTagAlgo, and kTagRunSettings.
Referenced by buildGlobalDoc().
void XmlConfigParser::buildGlobalDoc | ( | const std::string & | key, |
const std::string & | topPath = "" |
||
) |
Definition at line 533 of file XmlConfigParser.cc.
References appendNodesFromSubDoc(), MillePedeFileConverter_cfg::fileName, getKeyElement(), mps_fire::i, kAttrModule, crabWrapper::key, kTagLoad, readDOMFromFile(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::xerces::toString().
Referenced by l1t::TriggerSystem::configureSystemFromFiles().
DOMElement * XmlConfigParser::getKeyElement | ( | const std::string & | key | ) |
Definition at line 518 of file XmlConfigParser.cc.
References doc_, equals(), mps_fire::i, kAttrId, crabWrapper::key, kTagDb, kTagKey, and cms::xerces::toString().
Referenced by buildGlobalDoc(), and readContexts().
|
private |
Definition at line 582 of file XmlConfigParser.cc.
References str, and XmlConfigParser_reject_symbols.
|
private |
Definition at line 594 of file XmlConfigParser.cc.
References str.
Referenced by readContext(), and readHwDescription().
void XmlConfigParser::readContext | ( | const xercesc::DOMElement * | element, |
const std::string & | sysId, | ||
TriggerSystem & | aTriggerSystem | ||
) |
columnsStr = cms::xerces::toString(colChilds->item(k)->getNodeValue()); pruneString(columnsStr);
typesStr = cms::xerces::toString(colTypesChilds->item(k)->getNodeValue()); pruneString(typesStr);
std::string rowStr = cms::xerces::toString(rowChilds->item(k)->getNodeValue()); pruneString(rowStr); rowStrs.push_back(rowStr);
Definition at line 376 of file XmlConfigParser.cc.
References l1t::TriggerSystem::addMask(), l1t::TriggerSystem::addParameter(), l1t::TriggerSystem::addTable(), cms::xerces::cStr(), l1t::TriggerSystem::disableProcOrRoleOrDaq(), equals(), dqmdumpme::first, mps_fire::i, B2GTnPMonitor_cfi::item, dqmiolumiharvest::j, dqmdumpme::k, kAttrDelim, kAttrId, kAttrType, kTagColumns, kTagContext, kTagDisable, kTagMask, kTagParam, kTagRow, kTagTypes, kTypeTable, pruneString(), fetchall_from_DQM_v2::release, AlCaHLTBitMon_QueryRunRegistry::string, l1t::TriggerSystem::systemId(), and cms::xerces::toString().
Referenced by readContexts(), and readElement().
void XmlConfigParser::readContexts | ( | const std::string & | key, |
const std::string & | sysId, | ||
TriggerSystem & | aTriggerSystem | ||
) |
Definition at line 502 of file XmlConfigParser.cc.
References equals(), getKeyElement(), crabWrapper::key, kTagAlgo, kTagRunSettings, and readContext().
Referenced by l1t::TriggerSystem::configureSystemFromFiles().
void XmlConfigParser::readDOMFromFile | ( | const std::string & | fName | ) |
Definition at line 178 of file XmlConfigParser.cc.
References cms::cuda::assert(), doc_, MainPageGenerator::fName, and parser_.
void l1t::XmlConfigParser::readDOMFromFile | ( | const std::string & | fName, |
xercesc::DOMDocument *& | doc | ||
) |
Referenced by buildGlobalDoc(), and l1t::TriggerSystem::configureSystemFromFiles().
void XmlConfigParser::readDOMFromString | ( | const std::string & | str | ) |
void l1t::XmlConfigParser::readDOMFromString | ( | const std::string & | str, |
xercesc::DOMDocument *& | doc | ||
) |
Referenced by L1TMuonEndCapObjectKeysOnlineProd::fillObjectKeys(), L1TGlobalPrescalesVetosESProducer::L1TGlobalPrescalesVetosESProducer(), L1TMuonGlobalParamsOnlineProd::newObject(), L1TMuonEndCapParamsOnlineProd::newObject(), L1TMuonBarrelParamsOnlineProd::newObject(), L1TGlobalPrescalesVetosOnlineProd::newObject(), and L1TCaloParamsOnlineProd::newObject().
void XmlConfigParser::readElement | ( | const xercesc::DOMElement * | element, |
TriggerSystem & | aTriggerSystem, | ||
const std::string & | sysId = "" |
||
) |
Definition at line 200 of file XmlConfigParser.cc.
References equals(), kTagAlgo, kTagHw, kTagRunSettings, readContext(), and readHwDescription().
Referenced by readRootElement().
void XmlConfigParser::readHwDescription | ( | const xercesc::DOMElement * | element, |
TriggerSystem & | aTriggerSystem, | ||
const std::string & | sysId = "" |
||
) |
Definition at line 211 of file XmlConfigParser.cc.
References l1t::TriggerSystem::addDaq(), l1t::TriggerSystem::addProcessor(), l1t::TriggerSystem::disableProcOrRoleOrDaq(), equals(), mps_fire::i, dqmiolumiharvest::j, kAttrId, kTagCrate, kTagDaqTtc, kTagExclBoards, kTagExclude, kTagProcessor, kTagRole, kTagSlot, ValidateTausOnZEEFastSim_cff::proc, pruneString(), fetchall_from_DQM_v2::release, l1t::TriggerSystem::setSystemId(), AlCaHLTBitMon_QueryRunRegistry::string, cms::xerces::toString(), and geometryCSVtoXML::xx.
Referenced by readElement().
void XmlConfigParser::readRootElement | ( | TriggerSystem & | aTriggerSystem, |
const std::string & | sysId = "" |
||
) |
Definition at line 189 of file XmlConfigParser.cc.
References doc_, and readElement().
Referenced by l1t::TriggerSystem::configureSystemFromFiles(), L1TMuonEndCapObjectKeysOnlineProd::fillObjectKeys(), L1TGlobalPrescalesVetosESProducer::L1TGlobalPrescalesVetosESProducer(), L1TMuonGlobalParamsOnlineProd::newObject(), L1TMuonEndCapParamsOnlineProd::newObject(), L1TMuonBarrelParamsOnlineProd::newObject(), L1TCaloParamsOnlineProd::newObject(), and L1TGlobalPrescalesVetosOnlineProd::newObject().
|
private |
Definition at line 70 of file XmlConfigParser.h.
Referenced by appendNodesFromSubDoc(), getKeyElement(), readDOMFromFile(), readDOMFromString(), readRootElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kAttrDelim |
Definition at line 47 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kAttrId |
Definition at line 45 of file XmlConfigParser.h.
Referenced by getKeyElement(), readContext(), readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kAttrModule |
Definition at line 48 of file XmlConfigParser.h.
Referenced by buildGlobalDoc(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kAttrType |
Definition at line 46 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagAlgo |
Definition at line 26 of file XmlConfigParser.h.
Referenced by appendNodesFromSubDoc(), readContexts(), readElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagColumns |
Definition at line 37 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagContext |
Definition at line 31 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagCrate |
Definition at line 42 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagDaqTtc |
Definition at line 44 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagDb |
Definition at line 28 of file XmlConfigParser.h.
Referenced by getKeyElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagDisable |
Definition at line 34 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagExclBoards |
Definition at line 35 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagExclude |
Definition at line 36 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagHw |
Definition at line 25 of file XmlConfigParser.h.
Referenced by readElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagKey |
Definition at line 29 of file XmlConfigParser.h.
Referenced by getKeyElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagLoad |
Definition at line 30 of file XmlConfigParser.h.
Referenced by buildGlobalDoc(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagMask |
Definition at line 33 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagParam |
Definition at line 32 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagProcessor |
Definition at line 40 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagRole |
Definition at line 41 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagRow |
Definition at line 39 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagRunSettings |
Definition at line 27 of file XmlConfigParser.h.
Referenced by appendNodesFromSubDoc(), readContexts(), readElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagSlot |
Definition at line 43 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagTypes |
Definition at line 38 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const std::string l1t::XmlConfigParser::kTypeTable |
Definition at line 49 of file XmlConfigParser.h.
Referenced by readContext().
|
private |
Definition at line 69 of file XmlConfigParser.h.
Referenced by valtools.webpage::parseArgs(), batchmanager.BatchManager::ParseOptions(), readDOMFromFile(), readDOMFromString(), XmlConfigParser(), and ~XmlConfigParser().