1 #ifndef ERROR_HANDLER_MA_TYPES_H
2 #define ERROR_HANDLER_MA_TYPES_H
12 #include <messagefacility/MessageLogger/MessageLogger.h>
13 #include "mfextensions/Receivers/qt_mf_msg.hh"
15 #include <boost/multi_array.hpp>
25 #include <TRACE/trace.h>
28 namespace errorhandler {
35 typedef std::list<qt_mf_msg> msgs_t;
36 typedef std::shared_ptr<msgs_t> msgs_sp_t;
38 typedef boost::multi_array_types::index_range range;
39 typedef std::map<std::string, size_t> idx_t;
47 typedef std::pair<int, int> ma_cond_range;
48 typedef std::pair<int, int> ma_cond_domain;
49 typedef std::list<ma_cond_domain> ma_cond_domains;
52 typedef std::vector<ma_cond_domain> ma_domain;
55 typedef std::list<ma_domain> ma_domains;
56 typedef std::vector<ma_domain> ma_domain_vec;
114 typedef std::pair<ma_condition *, size_t> cond_idx_t;
115 typedef std::pair<cond_idx_t, arg_t> cond_arg_t;
116 typedef std::list<cond_arg_t> cond_arg_list_t;
136 typedef std::list<ma_rule *> notify_list_t;
137 typedef std::list<ma_condition *> conds_t;
141 typedef std::list<ma_condition *> reaction_starters_t;
147 const unsigned int STATUS_CHANGE = 0x01;
148 const unsigned int SOURCE_CHANGE = 0x02;
149 const unsigned int TARGET_CHANGE = 0x04;
152 typedef std::function<void(std::string const &, std::string const &)> alarm_fn_t;
155 typedef std::function<void(std::string const &)> cond_match_fn_t;