Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:56

0001 #ifndef ONLMONSERVER_MESSAGESYSTEM_H
0002 #define ONLMONSERVER_MESSAGESYSTEM_H
0003 
0004 #include "OnlMonBase.h"
0005 
0006 #include <map>
0007 #include <string>
0008 #include <utility>  // for pair
0009 
0010 class msg_control;
0011 
0012 class MessageSystem : public OnlMonBase
0013 {
0014  public:
0015   MessageSystem(const std::string &name);
0016   ~MessageSystem() override;
0017 
0018  // delete copy ctor and assignment operator (cppcheck)
0019   explicit MessageSystem(const MessageSystem&) = delete;
0020   MessageSystem& operator=(const MessageSystem&) = delete;
0021 
0022   int send_message(const int msg_source, const int severity, const std::string &err_message, const int msgtype);
0023 
0024   int Reset();
0025 
0026  protected:
0027   msg_control *Message;
0028   std::map<int, std::pair<int, int> > msgcounter;
0029 };
0030 
0031 #endif