Psyllid  v1.12.4
Project 8 Data Acquisisition Software
message_relayer.hh
Go to the documentation of this file.
1 /*
2  * message_relayer.hh
3  *
4  * Created on: Jun 28, 2017
5  * Author: obla999
6  */
7 
8 #ifndef PSYLLID_MESSAGE_RELAYER_HH_
9 #define PSYLLID_MESSAGE_RELAYER_HH_
10 
11 #include "relayer.hh"
12 
13 #include "singleton.hh"
14 
15 namespace scarab
16 {
17  class param_node;
18 }
19 
20 namespace psyllid
21 {
22 
23  class message_relayer : public dripline::relayer, public scarab::singleton< message_relayer >
24  {
25  public:
26  message_relayer( const scarab::param_node& a_config = scarab::param_node() );
27  virtual ~message_relayer();
28 
29  public:
30  void slack_notice( const std::string& a_msg_text ) const;
31  void slack_warn( const std::string& a_msg_text ) const;
32  void slack_error( const std::string& a_msg_text ) const;
33  void slack_critical( const std::string& a_msg_text ) const;
34  };
35 
36 } /* namespace psyllid */
37 
38 #endif /* PSYLLID_MESSAGE_RELAYER_HH_ */