14 " Creating SiPixelLayoutParser " <<
"\n" ;
15 cout <<
" Creating SiPixelLayoutParser " << endl;
22 " Deleting SiPixelLayoutParser " <<
"\n" ;
29 cout <<
" SiPixelLayoutParser::Configuration File is not set!!! " << endl;
35 DOMNodeList * layoutList
38 unsigned int nlayout = layoutList->getLength();
39 if (nlayout == 0)
return false;
41 for (
unsigned int k = 0;
k < layoutList->getLength();
k++) {
43 = layoutList->item(
k);
44 if (!layoutNode)
return false;
46 DOMElement* layoutElement =
static_cast<DOMElement *
>(layoutNode);
47 if (!layoutElement)
return false;
51 = layoutElement->getElementsByTagName(
qtxml::_toDOMS(
"monitorable"));
52 vector<string> me_names;
53 for (
unsigned int l = 0;
l < meList->getLength();
l++) {
54 DOMNode* meNode = meList->item(
l);
55 if (!meNode)
return false;
56 DOMElement* meElement =
static_cast<DOMElement *
>(meNode);
57 if (!meElement)
return false;
59 me_names.push_back(meName);
61 if (!me_names.empty()) layouts[layoutName] = me_names;
63 if ( !layouts.empty())
return true;
bool getAllLayouts(std::map< std::string, std::vector< std::string > > &me_names)
std::string _toString(const XMLCh *toTranscode)
XMLCh * _toDOMS(std::string temp)
xercesc::DOMDocument * doc()
DOM Document.
~SiPixelLayoutParser() override