artdaq_mfextensions  v1_05_00
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 
12 public:
13 
14  // c'tor and d'tor
15  ma_func_count_percent() : count_type(SOURCE), group() { }
16  virtual ~ma_func_count_percent() { }
17 
18  // evaluate function
19  virtual boost::any
20  evaluate( ma_condition const & cond
21  , ma_cond_domain dom );
22 
23  // parse arguments
24  virtual bool
25  parse_arguments( anys_t const & args );
26 
27 private:
28 
29  arg_t count_type;
30  std::string group;
31 
32 };
33 
34 
35 } // end of namespace errorhandler
36 } // end of namespace novadaq
37 
38 #endif
39 
40 
41 
42 
43