artdaq_mfextensions  v1_05_00
ma_function_count.h
1 #ifndef ERROR_HANDLER_MA_FUNCTION_COUNT_H
2 #define ERROR_HANDLER_MA_FUNCTION_COUNT_H
3 
4 #include "ErrorHandler/MessageAnalyzer/ma_function.h"
5 
6 namespace novadaq {
7 namespace errorhandler {
8 
9 class ma_func_count : public ma_function
10 {
11 
12 public:
13 
14  // c'tor and d'tor
15  ma_func_count() : count_type(SOURCE) { }
16  virtual ~ma_func_count() { }
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 
31 };
32 
33 
34 } // end of namespace errorhandler
35 } // end of namespace novadaq
36 
37 #endif
38 
39 
40 
41 
42