10 #ifndef CARMA_MONITOR_THRESHOLDHANDLER_H
11 #define CARMA_MONITOR_THRESHOLDHANDLER_H
13 #include <xercesc/sax/HandlerBase.hpp>
16 XERCES_CPP_NAMESPACE_USE
22 class MonitorSystemWithThreshold;
60 void characters(
const XMLCh *
const chars,
const unsigned int length);
67 void startElement(
const XMLCh *
const name, AttributeList &attributes);
87 const std::vector<ElementInfoStruct> &containerInfo,
88 const PointInfoStruct &mpInfo,
89 const char *thresholdName,
101 const char *thresholdName,
124 void warning(
const SAXParseException &ex);
130 void error(
const SAXParseException &ex);
138 ElementInfoStruct subsystemInfo_;
139 std::vector<ElementInfoStruct> containerInfo_;
140 PointInfoStruct pointInfo_;
void setThreshold(const char *canonicalName, const char *mpType, const char *thresholdName, const char *value)
method for setting a threshold
void processContainer(AttributeList &attributes)
process the <Container> and <Device> elements
void warning(const SAXParseException &ex)
SAX ErrorHandler method for notification of a warning.
MonitorSystemWithThreshold is a class that contains methods for retrieving and setting threshold valu...
void processSubsystem(AttributeList &attributes)
process the <Subsystem> element
ThresholdHandler(carma::monitor::MonitorSystemWithThreshold *system)
constructor
void error(const SAXParseException &ex)
SAX ErrorHandler method for notification of a recoverable parser error.
void characters(const XMLCh *const chars, const unsigned int length)
parse data between <element> and </element> tags
void setThresholds(const ElementInfoStruct &subsystemInfo, const std::vector< ElementInfoStruct > &containerInfo, const PointInfoStruct &mpInfo, const char *thresholdName, const char *value)
method for setting thresholds (setThreshold actually sets thresholds; this method expands all the nam...
void endElement(const XMLCh *const name)
parses end tag.
ThresholdHandler contains methods to deal with setting thresholds via mpml file.
void fatalError(const SAXParseException &ex)
SAX ErrorHandler method for reporting fatal errors.
void processPoint(AttributeList &attributes)
process the <MonitorPoint>, <ControlPoint>, <SoftPoint> elements
void startElement(const XMLCh *const name, AttributeList &attributes)
parse start tag, including attributes