Line data Source code
1 : #ifndef ERRORHANDLER_MA_RICHMSG_H
2 : #define ERRORHANDLER_MA_RICHMSG_H
3 :
4 : #include "ErrorHandler/MessageAnalyzer/ma_types.h"
5 :
6 : #include <vector>
7 :
8 : namespace novadaq {
9 : namespace errorhandler {
10 :
11 : class ma_rule;
12 :
13 : class ma_richmsg
14 : {
15 : public:
16 : ma_richmsg();
17 : ma_richmsg(std::string const& s, ma_rule const* parent);
18 :
19 0 : ~ma_richmsg() {}
20 :
21 : void init(ma_rule const* parent, std::string const& s);
22 :
23 : const std::string& plain_message() const;
24 : std::string message() const;
25 :
26 : private:
27 : ma_rule const* rule;
28 : std::string plain_msg;
29 : std::string stripped_msg;
30 :
31 : std::vector<size_t> insert_pos;
32 : std::vector<cond_arg_t> symbols;
33 : };
34 :
35 : } // end of namespace errorhandler
36 : } // end of namespace novadaq
37 :
38 : #endif
|