1 #ifndef ERROR_HANDLER_MA_FREQUENCY_H
2 #define ERROR_HANDLER_MA_FREQUENCY_H
4 #include "ErrorHandler/MessageAnalyzer/ma_utils.h"
6 #include <boost/multi_array.hpp>
7 #include <boost/regex.hpp>
10 namespace errorhandler {
36 is_on()
const {
return on; }
40 get_message_count()
const {
return msgs.size(); }
44 get_messages()
const {
return msgs; }
48 get_latest_message()
const
50 assert(!msgs.empty());
51 return msgs.back().text(
false).toStdString();
56 get_message_group(
size_t i)
const
58 if (i > what_.size())
throw std::runtime_error(
"group does not exist");
59 return std::string(what_[i].first, what_[i].second);
73 typedef boost::multi_array<ma_cell, 2> hitmap_t;
74 typedef hitmap_t::index index_t;
76 typedef hitmap_t::const_array_view<2>::type hitmap_view_t;
77 typedef hitmap_view_t ma_cond_domain_view;
78 typedef ma_cond_domain_view::const_iterator ma_cond_domain_view_iter;
79 typedef std::vector<ma_cond_domain_view_iter> ma_cond_domain_view_iters;
80 typedef std::vector<ma_cond_domain_view> ma_domain_view;
81 typedef ma_domain_view::const_iterator ma_domain_view_iter;
82 typedef std::list<ma_domain_view> ma_domain_views;
84 typedef boost::multi_array_types::index_range range;
Qt wrapper around MessageFacility message