8 #ifndef MonitorXMLParser_h 9 #define MonitorXMLParser_h 17 #include <xercesc/dom/DOM.hpp> 18 #include <xercesc/dom/DOMElement.hpp> 19 #include <xercesc/parsers/XercesDOMParser.hpp> 128 }
catch (xercesc::XMLException &
e) {
129 char *message = xercesc::XMLString::transcode(
e.getMessage());
131 std::ostringstream
buf;
132 buf <<
"Error parsing file: " << message << std::flush;
136 throw(std::runtime_error(
buf.str()));
138 }
catch (
const xercesc::DOMException &
e) {
139 char *message = xercesc::XMLString::transcode(
e.getMessage());
141 std::ostringstream
buf;
142 buf <<
"Encountered DOM Exception: " << message << std::flush;
146 throw(std::runtime_error(
buf.str()));
173 #endif // MonitorXMLParser_h
MonitorXMLParser(const std::string &fromFile)
~TagNames() noexcept(false)
const std::vector< DB_ME > & getDB_ME(void) const
void load() noexcept(false)
std::vector< DB_ME > DBMonitoringElements_
void handleElement(xercesc::DOMElement *element)
std::vector< DbQuery > queries
xercesc::XercesDOMParser * parser_