artdaq_mfextensions  v1_05_00
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_types.h"
6 #include "ErrorHandler/MessageAnalyzer/ma_domain_cond.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:
23 
25 
26  void evaluate(ma_domains & domains) const;
27 
28  void insert_cond(ma_domain_cond const & cond)
29  { conds.push_back(cond); }
30 
31 private:
32 
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 
41 typedef std::list<ma_domain_andexpr> domain_andexprs_t;
42 
43 } // end of namespace errorhandler
44 } // end of namespace novadaq
45 
46 #endif