Belle II Software development
RFMaster.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#ifndef RF_MASTER_H
9#define RF_MASTER_H
10
11#include "daq/rfarm/manager/RFConf.h"
12#include "daq/rfarm/manager/RFSharedMem.h"
13#include "daq/rfarm/manager/RFLogManager.h"
14
15#include "daq/rfarm/manager/RFServerBase.h"
16
17namespace Belle2 {
22 class RFMaster : public RFServerBase {
23 public:
24 explicit RFMaster(const std::string& conf);
25 ~RFMaster();
27 RFMaster(const RFMaster&) = delete;
28
30 RFMaster& operator=(const RFMaster&) = delete;
31
32 // Functions to be hooked to NSM
33 int Configure(NSMmsg*, NSMcontext*) override;
34 int UnConfigure(NSMmsg*, NSMcontext*) override;
35 int Start(NSMmsg*, NSMcontext*) override;
36 int Stop(NSMmsg*, NSMcontext*) override;
37 int Restart(NSMmsg*, NSMcontext*) override;
38
39 // Function to hook message funnctions
40 static void Hook_Message_Handlers();
41
42 // Message functions
43 static void Log_Handler(NSMmsg* msg, NSMcontext* ctx);
44
45 // Server function
46 static void monitor_loop();
47
48
49 private:
50 RFConf* m_conf;
51 // RFSharedMem* m_shm;
52 RFLogManager* m_log;
53
54 };
55
57}
58#endif
59
60
61
RFMaster(const RFMaster &)=delete
Copy constructor (disabled).
RFMaster & operator=(const RFMaster &)=delete
Operator = (disabled).
Abstract base class for different kinds of events.
Definition nsm2.h:224