11 " Creating SiStripLayoutParser " <<
"\n" ;
18 " Deleting SiStripLayoutParser " <<
"\n" ;
25 std::cout <<
" SiStripLayoutParser::Configuration File is not set!!! " << std::endl;
31 xercesc::DOMNodeList * layoutList
34 unsigned int nlayout = layoutList->getLength();
35 if (nlayout == 0)
return false;
37 for (
unsigned int k = 0;
k < layoutList->getLength();
k++) {
38 xercesc::DOMNode* layoutNode = layoutList->item(
k);
39 if (!layoutNode)
return false;
41 xercesc::DOMElement* layoutElement =
static_cast<xercesc::DOMElement *
>(layoutNode);
42 if (!layoutElement)
return false;
45 xercesc::DOMNodeList * meList
46 = layoutElement->getElementsByTagName(
qtxml::_toDOMS(
"monitorable"));
47 std::vector<std::string> me_names;
48 for (
unsigned int l = 0;
l < meList->getLength();
l++) {
49 xercesc::DOMNode* meNode = meList->item(
l);
50 if (!meNode)
return false;
51 xercesc::DOMElement* meElement =
static_cast<xercesc::DOMElement *
>(meNode);
52 if (!meElement)
return false;
54 me_names.push_back(meName);
56 if (!me_names.empty()) layouts[layoutName] = me_names;
58 if ( !layouts.empty())
return true;
std::string _toString(const XMLCh *toTranscode)
XMLCh * _toDOMS(std::string temp)
bool getAllLayouts(std::map< std::string, std::vector< std::string > > &me_names)
xercesc::DOMDocument * doc()
DOM Document.
~SiStripLayoutParser() override