artdaq_mfextensions  v1_06_02
ma_domain_andexpr.cpp
1 
2 #include "ErrorHandler/MessageAnalyzer/ma_domain_andexpr.h"
3 
4 using namespace novadaq::errorhandler;
5 
6 ma_domain_andexpr::ma_domain_andexpr()
7 //: conditions (conds)
8 {
9 }
10 
11 void ma_domain_andexpr::evaluate(ma_domains& domains) const
12 {
13  ma_domains mydomains;
14 
15  domain_conds_t::const_iterator it = conds.begin();
16 
17  for (; it != conds.end(); ++it)
18  {
19  it->evaluate(mydomains);
20  if (mydomains.empty()) return;
21  }
22 
23  // cat the domain list
24  {
25  domains.splice(domains.end(), mydomains);
26  }
27 }