artdaq_mfextensions  v1_05_00
ma_cond_test_expr.cpp
1 
2 #include "ErrorHandler/MessageAnalyzer/ma_cond_test_expr.h"
3 
4 using namespace novadaq::errorhandler;
5 
6 bool ma_cond_test_expr::evaluate( ma_condition const * cond ) const
7 {
8  if( andexprs.empty() ) return true;
9 
10  test_andexprs_t::const_iterator it = andexprs.begin();
11 
12  for( ; it!=andexprs.end(); ++it )
13  if( it->evaluate( cond ) == true ) return true;
14 
15  return false;
16 }
17 
18