artdaq_mfextensions  v1_03_05
ReceiverManager.hh
1 #ifndef RECEIVER_MANAGER_H
2 #define RECEIVER_MANAGER_H
3 
4 #include <QObject>
5 #include "fhiclcpp/fwd.h"
6 #include "mfextensions/Receivers/MVReceiver.hh"
7 
8 namespace mfviewer {
13 class ReceiverManager : public QObject {
14  Q_OBJECT
15 
16  public:
21  explicit ReceiverManager(fhicl::ParameterSet pset);
22 
26  virtual ~ReceiverManager();
27 
31  void start();
32 
36  void stop();
37 
38  signals:
43  void newMessage(qt_mf_msg const& msg);
44 
45  private slots:
50  void onNewMessage(qt_mf_msg const& mfmsg);
51 
52  private:
53  std::vector<std::unique_ptr<mfviewer::MVReceiver>> receivers_;
54 };
55 } // namespace mfviewer
56 
57 #endif
ReceiverManager(fhicl::ParameterSet pset)
ReceiverManager Constructor
void newMessage(qt_mf_msg const &msg)
Signal raised on new message
void start()
Start all receivers
Qt wrapper around MessageFacility message
Definition: qt_mf_msg.hh:30
The ReceiverManager loads one or more receiver plugins and displays messages received by those plugin...
virtual ~ReceiverManager()
ReceiverManager Destructor
void stop()
Stop all receivers