Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MessageSystem.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MessageSystem.h
1 #ifndef ONLMONSERVER_MESSAGESYSTEM_H
2 #define ONLMONSERVER_MESSAGESYSTEM_H
3 
4 #include "OnlMonBase.h"
5 
6 #include <map>
7 #include <string>
8 #include <utility> // for pair
9 
10 class msg_control;
11 
12 class MessageSystem : public OnlMonBase
13 {
14  public:
16  ~MessageSystem() override;
17 
18  // delete copy ctor and assignment operator (cppcheck)
19  explicit MessageSystem(const MessageSystem&) = delete;
20  MessageSystem& operator=(const MessageSystem&) = delete;
21 
22  int send_message(const int msg_source, const int severity, const std::string &err_message, const int msgtype);
23 
24  int Reset();
25 
26  protected:
28  std::map<int, std::pair<int, int> > msgcounter;
29 };
30 
31 #endif