artdaq_mfextensions  v1_05_00
ma_richmsg.h
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 
14 {
15 public:
16 
17  ma_richmsg( );
18  ma_richmsg( std::string const & s, ma_rule const * parent );
19 
20  ~ma_richmsg( ) { }
21 
22  void init( ma_rule const * parent, std::string const & s );
23 
24  const std::string & plain_message() const;
25  std::string message() const;
26 
27 private:
28 
29  ma_rule const * rule;
30  std::string plain_msg;
31  std::string stripped_msg;
32 
33  std::vector<size_t> insert_pos;
34  std::vector<cond_arg_t> symbols;
35 };
36 
37 } // end of namespace errorhandler
38 } // end of namespace novadaq
39 
40 
41 #endif