artdaq_mfextensions  v1_06_02
ma_boolean_expr.h
1 #ifndef ERROR_HANDLER_MA_BOOLEAN_EXPR_H
2 #define ERROR_HANDLER_MA_BOOLEAN_EXPR_H
3 
4 #include "ErrorHandler/MessageAnalyzer/ma_boolean_andexpr.h"
5 
6 namespace novadaq {
7 namespace errorhandler {
8 
9 //-------------------------------------------------------------------
10 //
11 // boolean expression consists of a list of boolean and-expression
12 // connected with 'OR' operator
13 //
14 //-------------------------------------------------------------------
15 
17 {
18 public:
19  // c'tor
20  ma_boolean_expr() {}
21 
22  // reset
23  void reset();
24 
25  // evaluation
26  bool evaluate(ma_domain& value, ma_domain& alarm, ma_domain const& domain) const;
27 
28  // insert an boolean and-expression
29  void insert(ma_boolean_andexpr const& andexpr)
30  {
31  andexprs.push_back(andexpr);
32  }
33 
34 private:
35  boolean_andexprs_t andexprs;
36 };
37 
38 } // end of namespace errorhandler
39 } // end of namespace novadaq
40 
41 #endif
boolean and-expression consists of a list of boolean elemental conditions connected with 'AND' operat...