DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
messenger_proxy.hpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: yes (from dbe/messenger_proxy.h to include/dbe/messenger_proxy.hpp).
5
6/*
7 * messenger_proxy.h
8 *
9 * Created on: Nov 4, 2015
10 * Author: lgeorgop
11 */
12
13#ifndef DBE_MESSENGER_PROXY_H_
14#define DBE_MESSENGER_PROXY_H_
15
16#include <QMessageBox>
17#include <QObject>
18#include <QString>
19
20namespace dbe {
21namespace interface {
22
26class messenger_proxy : public QObject
27{
28 Q_OBJECT
29public:
30 typedef std::string t_extstr;
31
32 static messenger_proxy& ref();
33
34 void debug(t_extstr const&, t_extstr const&);
35 void info(t_extstr const&, t_extstr const&);
36 void note(t_extstr const&, t_extstr const&);
37 void warn(t_extstr const&, t_extstr const&);
38 void error(t_extstr const&, t_extstr const&);
39 void fail(t_extstr const&, t_extstr const&);
40
41 /*
42 * Signals defined below are used to call across the thread boundary, e.g. from an std::thread to
43 * a QThread , in order to guarantee the the strings leave in the receiver thread's memory space
44 * copies have to actually be passed as an argument. Otherwise, in case of context switch the
45 * value may die, as it is going to be unaware of it being held from the receiver.
46 */
47signals:
48 void signal_debug(QString, QString);
49 void signal_info(QString, QString);
50 void signal_note(QString, QString);
51 void signal_warn(QString, QString);
52 void signal_error(QString, QString);
53 void signal_fail(QString, QString);
54
55private:
59};
60
61}
62}
63
64#endif /* DBE_MESSENGER_PROXY_H_ */
void fail(t_extstr const &, t_extstr const &)
void signal_error(QString, QString)
void signal_debug(QString, QString)
void debug(t_extstr const &, t_extstr const &)
static messenger_proxy & ref()
void note(t_extstr const &, t_extstr const &)
void info(t_extstr const &, t_extstr const &)
void signal_fail(QString, QString)
void signal_note(QString, QString)
messenger_proxy operator=(messenger_proxy const &)=delete
void warn(t_extstr const &, t_extstr const &)
void error(t_extstr const &, t_extstr const &)
void signal_warn(QString, QString)
messenger_proxy(messenger_proxy const &)=delete
void signal_info(QString, QString)
Include QT Headers.