artdaq_mfextensions  v1_06_02
ma_domain_andexpr.h
1 #ifndef ERROR_HANDLER_MA_DOMAIN_ANDEXPR_H
2 #define ERROR_HANDLER_MA_DOMAIN_ANDEXPR_H
3 
4 // from novadaq
5 #include "ErrorHandler/MessageAnalyzer/ma_domain_cond.h"
6 #include "ErrorHandler/MessageAnalyzer/ma_types.h"
7 
8 // from ups
9 
10 // from system
11 #include <list>
12 
13 namespace novadaq {
14 namespace errorhandler {
15 
16 // A domain and-expression is a collection of elemental domain conditions
17 // connected with 'AND' operator
18 // e.g.: and-expression = domain_cond_1 AND domain_cond_2 AND ...
19 
21 {
22 public:
24 
25  void evaluate(ma_domains& domains) const;
26 
27  void insert_cond(ma_domain_cond const& cond)
28  {
29  conds.push_back(cond);
30  }
31 
32 private:
33  // all conditions in the parent rule
34  //cond_vec_t const & conditions;
35 
36  // list of domain conditions
37  domain_conds_t conds;
38 };
39 
40 typedef std::list<ma_domain_andexpr> domain_andexprs_t;
41 
42 } // end of namespace errorhandler
43 } // end of namespace novadaq
44 
45 #endif