CARMA C++
DagVerifier.h
1 /*
2  * Fault System DAG Verification
3  *
4  * Copyright (c) 2010 Ira W. Snyder <iws@ovro.caltech.edu>
5  */
6 
7 #ifndef DAG_VERIFIER_H
8 #define DAG_VERIFIER_H
9 
10 #include <carma/fault/FaultSystemParser.h>
11 
12 class DagVerifier
13 {
14  public:
15  DagVerifier(const std::string &alarm_name, const std::string &bf_name);
16 
17  void load_xml_files(bool dtdvalidate);
18 
19  void validate_monitor_points(const std::string &input, const std::string &output);
20 
21  void dump_alarm_to_stdout();
22  void dump_bf_to_stdout();
23  void dump_to_file(const std::string &name);
24 
25  protected:
26  const std::string alarm_name_;
27  const std::string bf_name_;
28 
29  FaultSystemParser alarmParser_;
30  FaultSystemParser bfParser_;
31 };
32 
33 #endif /* DAG_VERIFIER_H */