artdaq_mfextensions  v1_05_00
ma_boolean_andexpr.h
1 #ifndef ERROR_HANDLER_MA_BOOLEAN_ANDEXPR_H
2 #define ERROR_HANDLER_MA_BOOLEAN_ANDEXPR_H
3 
4 #include "ErrorHandler/MessageAnalyzer/ma_boolean_cond.h"
5 
6 #include <list>
7 
8 namespace novadaq {
9 namespace errorhandler {
10 
11 //-------------------------------------------------------------------
12 //
13 // boolean and-expression consists of a list of boolean elemental
14 // conditions connected with 'AND' operator
15 //
16 //-------------------------------------------------------------------
17 
19 {
20 public:
21 
22  // c'tor
23  ma_boolean_andexpr( ) { }
24 
25  // reset
26  void reset( );
27 
28  // evaluateion
29  bool evaluate( ma_domain & value
30  , ma_domain & alarm
31  , ma_domain const & domain ) const;
32 
33  // insert a boolean cond
34  void insert( ma_boolean_cond const & cond )
35  { conds.push_back(cond); }
36 
37 private:
38 
39  boolean_conds_t conds;
40 
41 };
42 
43 typedef std::list<ma_boolean_andexpr> boolean_andexprs_t;
44 
45 } // end of namespace errorhandler
46 } // end of namespace novadaq
47 
48 #endif