#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, xercesc::DOMDocument *&doc) |
void | readDOMFromFile (const std::string &fName) |
void | readDOMFromString (const std::string &str, xercesc::DOMDocument *&doc) |
void | readDOMFromString (const std::string &str) |
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) |
void | pruneString (std::string &str) |
char * | pruneString (char *&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 common_cff::doc, 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, kTypeTable, and parser_.
l1t::XmlConfigParser::XmlConfigParser | ( | xercesc::DOMDocument * | doc | ) |
XmlConfigParser::~XmlConfigParser | ( | ) |
Definition at line 152 of file XmlConfigParser.cc.
References common_cff::doc, parser_, readDOMFromString(), harvestTrackValidationPlots::str, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 584 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 555 of file XmlConfigParser.cc.
References appendNodesFromSubDoc(), MillePedeFileConverter_cfg::fileName, getKeyElement(), mps_fire::i, kAttrModule, kTagLoad, readDOMFromFile(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::xerces::toString().
Referenced by l1t::TriggerSystem::configureSystemFromFiles().
DOMElement * XmlConfigParser::getKeyElement | ( | const std::string & | key | ) |
Definition at line 538 of file XmlConfigParser.cc.
References doc_, equals(), mps_fire::i, kAttrId, kTagDb, kTagKey, and cms::xerces::toString().
Referenced by buildGlobalDoc(), and readContexts().
|
private |
Definition at line 634 of file XmlConfigParser.cc.
Referenced by readContext(), and readHwDescription().
|
private |
Definition at line 623 of file XmlConfigParser.cc.
References XmlConfigParser_reject_symbols.
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 390 of file XmlConfigParser.cc.
References l1t::TriggerSystem::addMask(), l1t::TriggerSystem::addParameter(), l1t::TriggerSystem::addTable(), cms::xerces::cStr(), tablePrinter::delim, l1t::TriggerSystem::disableProcOrRoleOrDaq(), HTMLExport::elem(), equals(), plotBeamSpotDB::first, mps_fire::i, gen::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 521 of file XmlConfigParser.cc.
References HTMLExport::elem(), equals(), getKeyElement(), kTagAlgo, kTagRunSettings, and readContext().
Referenced by l1t::TriggerSystem::configureSystemFromFiles().
void l1t::XmlConfigParser::readDOMFromFile | ( | const std::string & | fName, |
xercesc::DOMDocument *& | doc | ||
) |
Referenced by buildGlobalDoc(), l1t::TriggerSystem::configureSystemFromFiles(), and readDOMFromString().
void XmlConfigParser::readDOMFromFile | ( | const std::string & | fName | ) |
Definition at line 190 of file XmlConfigParser.cc.
void l1t::XmlConfigParser::readDOMFromString | ( | const std::string & | str, |
xercesc::DOMDocument *& | doc | ||
) |
Referenced by L1TMuonEndCapObjectKeysOnlineProd::fillObjectKeys(), L1TGlobalPrescalesVetosESProducer::L1TGlobalPrescalesVetosESProducer(), L1TMuonGlobalParamsOnlineProd::newObject(), L1TMuonEndCapParamsOnlineProd::newObject(), L1TMuonBarrelParamsOnlineProd::newObject(), L1TCaloParamsOnlineProd::newObject(), L1TGlobalPrescalesVetosOnlineProd::newObject(), and ~XmlConfigParser().
void XmlConfigParser::readDOMFromString | ( | const std::string & | str | ) |
Definition at line 168 of file XmlConfigParser.cc.
References common_cff::doc, doc_, parser_, readDOMFromFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
void XmlConfigParser::readElement | ( | const xercesc::DOMElement * | element, |
TriggerSystem & | aTriggerSystem, | ||
const std::string & | sysId = "" |
||
) |
Definition at line 216 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 228 of file XmlConfigParser.cc.
References l1t::TriggerSystem::addDaq(), l1t::TriggerSystem::addProcessor(), l1t::TriggerSystem::disableProcOrRoleOrDaq(), HTMLExport::elem(), equals(), mps_fire::i, kAttrId, kTagCrate, kTagDaqTtc, kTagExclBoards, kTagExclude, kTagProcessor, kTagRole, kTagSlot, 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 203 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 71 of file XmlConfigParser.h.
Referenced by appendNodesFromSubDoc(), getKeyElement(), readDOMFromFile(), readDOMFromString(), readRootElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kAttrDelim |
Definition at line 49 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kAttrId |
Definition at line 47 of file XmlConfigParser.h.
Referenced by getKeyElement(), readContext(), readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kAttrModule |
Definition at line 50 of file XmlConfigParser.h.
Referenced by buildGlobalDoc(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kAttrType |
Definition at line 48 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagAlgo |
Definition at line 28 of file XmlConfigParser.h.
Referenced by appendNodesFromSubDoc(), readContexts(), readElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagColumns |
Definition at line 39 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagContext |
Definition at line 33 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagCrate |
Definition at line 44 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagDaqTtc |
Definition at line 46 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagDb |
Definition at line 30 of file XmlConfigParser.h.
Referenced by getKeyElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagDisable |
Definition at line 36 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagExclBoards |
Definition at line 37 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagExclude |
Definition at line 38 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagHw |
Definition at line 27 of file XmlConfigParser.h.
Referenced by readElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagKey |
Definition at line 31 of file XmlConfigParser.h.
Referenced by getKeyElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagLoad |
Definition at line 32 of file XmlConfigParser.h.
Referenced by buildGlobalDoc(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagMask |
Definition at line 35 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagParam |
Definition at line 34 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagProcessor |
Definition at line 42 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagRole |
Definition at line 43 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagRow |
Definition at line 41 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagRunSettings |
Definition at line 29 of file XmlConfigParser.h.
Referenced by appendNodesFromSubDoc(), readContexts(), readElement(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagSlot |
Definition at line 45 of file XmlConfigParser.h.
Referenced by readHwDescription(), and XmlConfigParser().
const XMLCh* l1t::XmlConfigParser::kTagTypes |
Definition at line 40 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
const std::string l1t::XmlConfigParser::kTypeTable |
Definition at line 51 of file XmlConfigParser.h.
Referenced by readContext(), and XmlConfigParser().
|
private |
Definition at line 70 of file XmlConfigParser.h.
Referenced by readDOMFromFile(), readDOMFromString(), XmlConfigParser(), and ~XmlConfigParser().