#include <XmlConfigReader.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, TrigSystem &aTrigSystem) |
void | readContexts (const std::string &key, const std::string &sysId, TrigSystem &aTrigSystem) |
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, TrigSystem &aTrigSystem, const std::string &sysId="") |
void | readHwDescription (const xercesc::DOMElement *element, TrigSystem &aTrigSystem, const std::string &sysId="") |
void | readRootElement (TrigSystem &aTrigSystem, const std::string &sysId="") |
XmlConfigReader () | |
XmlConfigReader (xercesc::DOMDocument *doc) | |
~XmlConfigReader () | |
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 XmlConfigReader.h.
XmlConfigReader::XmlConfigReader | ( | ) |
Initialise XML parser
Definition at line 26 of file XmlConfigReader.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, parser_, and XERCES_CPP_NAMESPACE_USE::transcode().
l1t::XmlConfigReader::XmlConfigReader | ( | xercesc::DOMDocument * | doc | ) |
XmlConfigReader::~XmlConfigReader | ( | ) |
|
private |
Definition at line 504 of file XmlConfigReader.cc.
References doc_, equals(), kTagAlgo, and kTagRunSettings.
Referenced by buildGlobalDoc().
void XmlConfigReader::buildGlobalDoc | ( | const std::string & | key, |
const std::string & | topPath = "" |
||
) |
Definition at line 475 of file XmlConfigReader.cc.
References _toString(), appendNodesFromSubDoc(), MillePedeFileConverter_cfg::fileName, getKeyElement(), i, kAttrModule, kTagLoad, readDOMFromFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by l1t::TrigSystem::configureSystemFromFiles().
DOMElement * XmlConfigReader::getKeyElement | ( | const std::string & | key | ) |
Definition at line 458 of file XmlConfigReader.cc.
References _toString(), doc_, equals(), i, kAttrId, kTagDb, and kTagKey.
Referenced by buildGlobalDoc(), and readContexts().
|
private |
|
private |
Definition at line 543 of file XmlConfigReader.cc.
References XmlConfigReader_reject_symbols.
void XmlConfigReader::readContext | ( | const xercesc::DOMElement * | element, |
const std::string & | sysId, | ||
TrigSystem & | aTrigSystem | ||
) |
columnsStr = _toString(colChilds->item(k)->getNodeValue()); pruneString(columnsStr);
typesStr = _toString(colTypesChilds->item(k)->getNodeValue()); pruneString(typesStr);
std::string rowStr = _toString(rowChilds->item(k)->getNodeValue()); pruneString(rowStr); rowStrs.push_back(rowStr);
Definition at line 328 of file XmlConfigReader.cc.
References _toString(), l1t::TrigSystem::addMask(), l1t::TrigSystem::addSetting(), l1t::TrigSystem::addSettingTable(), l1t::TrigSystem::disableDaqProc(), HTMLExport::elem(), equals(), i, j, relval_2017::k, kAttrDelim, kAttrId, kAttrType, kTagColumns, kTagContext, kTagDisable, kTagMask, kTagParam, kTagRow, kTagTypes, kTypeTable, pruneString(), fetchall_from_DQM_v2::release, AlCaHLTBitMon_QueryRunRegistry::string, l1t::TrigSystem::systemId(), XERCES_CPP_NAMESPACE_USE::transcode(), and relativeConstraints::value.
Referenced by readContexts(), and readElement().
void XmlConfigReader::readContexts | ( | const std::string & | key, |
const std::string & | sysId, | ||
TrigSystem & | aTrigSystem | ||
) |
Definition at line 441 of file XmlConfigReader.cc.
References gather_cfg::cout, HTMLExport::elem(), equals(), getKeyElement(), kTagAlgo, kTagRunSettings, and readContext().
Referenced by l1t::TrigSystem::configureSystemFromFiles().
void l1t::XmlConfigReader::readDOMFromFile | ( | const std::string & | fName, |
xercesc::DOMDocument *& | doc | ||
) |
Referenced by buildGlobalDoc(), and l1t::TrigSystem::configureSystemFromFiles().
void XmlConfigReader::readDOMFromFile | ( | const std::string & | fName | ) |
Definition at line 186 of file XmlConfigReader.cc.
References assert(), doc_, and parser_.
void l1t::XmlConfigReader::readDOMFromString | ( | const std::string & | str, |
xercesc::DOMDocument *& | doc | ||
) |
void XmlConfigReader::readDOMFromString | ( | const std::string & | str | ) |
Definition at line 164 of file XmlConfigReader.cc.
References assert(), doc_, and parser_.
void XmlConfigReader::readElement | ( | const xercesc::DOMElement * | element, |
TrigSystem & | aTrigSystem, | ||
const std::string & | sysId = "" |
||
) |
Definition at line 212 of file XmlConfigReader.cc.
References equals(), kTagAlgo, kTagHw, kTagRunSettings, readContext(), and readHwDescription().
Referenced by readRootElement().
void XmlConfigReader::readHwDescription | ( | const xercesc::DOMElement * | element, |
TrigSystem & | aTrigSystem, | ||
const std::string & | sysId = "" |
||
) |
Definition at line 224 of file XmlConfigReader.cc.
References _toString(), l1t::TrigSystem::addDaqCrate(), l1t::TrigSystem::addDaqRole(), l1t::TrigSystem::addProcCrate(), l1t::TrigSystem::addProcRole(), l1t::TrigSystem::addProcSlot(), l1t::TrigSystem::disableDaqProc(), HTMLExport::elem(), equals(), i, j, kAttrId, kTagCrate, kTagDaqTtc, kTagExclBoards, kTagExclude, kTagProcessor, kTagRole, kTagSlot, l1t::TrigSystem::setSystemId(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by readElement().
void XmlConfigReader::readRootElement | ( | TrigSystem & | aTrigSystem, |
const std::string & | sysId = "" |
||
) |
Definition at line 199 of file XmlConfigReader.cc.
References gather_cfg::cout, doc_, and readElement().
Referenced by l1t::TrigSystem::configureSystemFromFiles(), and L1TGlobalPrescalesVetosESProducer::L1TGlobalPrescalesVetosESProducer().
|
private |
Definition at line 71 of file XmlConfigReader.h.
Referenced by appendNodesFromSubDoc(), getKeyElement(), readDOMFromFile(), readDOMFromString(), readRootElement(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kAttrDelim |
Definition at line 49 of file XmlConfigReader.h.
Referenced by readContext(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kAttrId |
Definition at line 47 of file XmlConfigReader.h.
Referenced by getKeyElement(), readContext(), readHwDescription(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kAttrModule |
Definition at line 50 of file XmlConfigReader.h.
Referenced by buildGlobalDoc(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kAttrType |
Definition at line 48 of file XmlConfigReader.h.
Referenced by readContext(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagAlgo |
Definition at line 28 of file XmlConfigReader.h.
Referenced by appendNodesFromSubDoc(), readContexts(), readElement(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagColumns |
Definition at line 39 of file XmlConfigReader.h.
Referenced by readContext(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagContext |
Definition at line 33 of file XmlConfigReader.h.
Referenced by readContext(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagCrate |
Definition at line 44 of file XmlConfigReader.h.
Referenced by readHwDescription(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagDaqTtc |
Definition at line 46 of file XmlConfigReader.h.
Referenced by readHwDescription(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagDb |
Definition at line 30 of file XmlConfigReader.h.
Referenced by getKeyElement(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagDisable |
Definition at line 36 of file XmlConfigReader.h.
Referenced by readContext(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagExclBoards |
Definition at line 37 of file XmlConfigReader.h.
Referenced by readHwDescription(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagExclude |
Definition at line 38 of file XmlConfigReader.h.
Referenced by readHwDescription(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagHw |
Definition at line 27 of file XmlConfigReader.h.
Referenced by readElement(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagKey |
Definition at line 31 of file XmlConfigReader.h.
Referenced by getKeyElement(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagLoad |
Definition at line 32 of file XmlConfigReader.h.
Referenced by buildGlobalDoc(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagMask |
Definition at line 35 of file XmlConfigReader.h.
Referenced by readContext(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagParam |
Definition at line 34 of file XmlConfigReader.h.
Referenced by readContext(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagProcessor |
Definition at line 42 of file XmlConfigReader.h.
Referenced by readHwDescription(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagRole |
Definition at line 43 of file XmlConfigReader.h.
Referenced by readHwDescription(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagRow |
Definition at line 41 of file XmlConfigReader.h.
Referenced by readContext(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagRunSettings |
Definition at line 29 of file XmlConfigReader.h.
Referenced by appendNodesFromSubDoc(), readContexts(), readElement(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagSlot |
Definition at line 45 of file XmlConfigReader.h.
Referenced by readHwDescription(), and XmlConfigReader().
const XMLCh* l1t::XmlConfigReader::kTagTypes |
Definition at line 40 of file XmlConfigReader.h.
Referenced by readContext(), and XmlConfigReader().
const std::string l1t::XmlConfigReader::kTypeTable |
Definition at line 51 of file XmlConfigReader.h.
Referenced by readContext().
|
private |
Definition at line 70 of file XmlConfigReader.h.
Referenced by readDOMFromFile(), readDOMFromString(), XmlConfigReader(), and ~XmlConfigReader().