CARMA C++
ThresholdFileWriter.h
Go to the documentation of this file.
1 
8 #ifndef CARMA_MONITOR_THREHOLDFILEWRITER_H
9 #define CARMA_MONITOR_THREHOLDFILEWRITER_H
10 
11 #include <string>
12 #include <map>
13 
14 namespace carma {
15  namespace monitor {
16 
17  // forward declarations
18  class MonitorSystem;
19  class MonitorPoint;
20  class MonitorPointThreshold;
21 
28  public:
29 
31  virtual ~ThresholdFileWriter();
32 
36  void createXmlFile();
37 
38  protected:
39 
46  void addPoint(const MonitorPoint &point,
47  const MonitorPointThreshold &threshold);
48 
56  void createStartTag(const std::string &tagName,
57  const std::map<std::string, std::string> &attributes,
58  bool includeEndl = true);
64  void createEndTag(bool needIndent = true);
65 
66  private:
67  MonitorSystem &system_;
68  }; // end class ThresholdFileWriter
69  } // end namespace monitor
70 } // end namespace carma
71 
72 #endif
void createEndTag(bool needIndent=true)
create end tag for the xml
void createStartTag(const std::string &tagName, const std::map< std::string, std::string > &attributes, bool includeEndl=true)
create the start tag for the xml
void createXmlFile()
creates the xml file by iterating through the monitor points
A class that will allow you to write out the set threshold values for the monitor system into an xml ...
Abstract base class for a monitor point.
Definition: MonitorPoint.h:68
Monitor system base class.
Definition: MonitorSystem.h:81
void addPoint(const MonitorPoint &point, const MonitorPointThreshold &threshold)
method for writing out [Monitor/Sense/Control]Point information