artdaq_mfextensions  v1_06_02
ma_function_countpercent.h
1 #ifndef ERROR_HANDLER_MA_FUNCTION_COUNT_PERCENT_H
2 #define ERROR_HANDLER_MA_FUNCTION_COUNT_PERCENT_H
3 
4 #include "ErrorHandler/MessageAnalyzer/ma_function.h"
5 
6 namespace novadaq {
7 namespace errorhandler {
8 
10 {
11 public:
12  // c'tor and d'tor
14  : count_type(SOURCE), group() {}
15  virtual ~ma_func_count_percent() {}
16 
17  // evaluate function
18  virtual boost::any
19  evaluate(ma_condition const& cond, ma_cond_domain dom);
20 
21  // parse arguments
22  virtual bool
23  parse_arguments(anys_t const& args);
24 
25 private:
26  arg_t count_type;
27  std::string group;
28 };
29 
30 } // end of namespace errorhandler
31 } // end of namespace novadaq
32 
33 #endif