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 {
31 , boost::smatch
const & w
40 is_on()
const {
return on; }
44 get_message_count()
const {
return msgs.size(); }
48 get_messages()
const {
return msgs; }
52 get_latest_message()
const
53 { assert( !msgs.empty() );
return msgs.back().text(
false).toStdString(); }
57 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); }
72 typedef boost::multi_array<ma_cell, 2> hitmap_t;
73 typedef hitmap_t::index index_t;
75 typedef hitmap_t::const_array_view<2>::type hitmap_view_t;
76 typedef hitmap_view_t ma_cond_domain_view;
77 typedef ma_cond_domain_view::const_iterator ma_cond_domain_view_iter;
78 typedef std::vector<ma_cond_domain_view_iter> ma_cond_domain_view_iters;
79 typedef std::vector<ma_cond_domain_view> ma_domain_view;
80 typedef ma_domain_view::const_iterator ma_domain_view_iter;
81 typedef std::list<ma_domain_view> ma_domain_views;
83 typedef boost::multi_array_types::index_range range;
Qt wrapper around MessageFacility message