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 <QObject>
17#include <QString>
18#include <QMessageBox>
19
20namespace dbe
21{
22namespace interface
23{
24
28class messenger_proxy: public QObject
29{
30 Q_OBJECT
31public:
32 typedef std::string t_extstr;
33
34 static messenger_proxy & ref();
35
36 void debug ( t_extstr const &, t_extstr const & );
37 void info ( t_extstr const &, t_extstr const & );
38 void note ( t_extstr const &, t_extstr const & );
39 void warn ( t_extstr const &, t_extstr const & );
40 void error ( t_extstr const &, t_extstr const & );
41 void fail ( t_extstr const &, t_extstr const & );
42
43 /*
44 * Signals defined below are used to call across the thread boundary, e.g. from an std::thread to
45 * a QThread , in order to guarantee the the strings leave in the receiver thread's memory space
46 * copies have to actually be passed as an argument. Otherwise, in case of context switch the
47 * value may die, as it is going to be unaware of it being held from the receiver.
48 */
49signals:
50 void signal_debug ( QString , QString );
51 void signal_info ( QString , QString );
52 void signal_note ( QString , QString );
53 void signal_warn ( QString , QString );
54 void signal_error ( QString , QString );
55 void signal_fail ( QString , QString );
56
57private:
59 messenger_proxy ( messenger_proxy const & ) = delete;
61};
62
63}
64}
65
66#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 signal_warn(QString, QString)
messenger_proxy(messenger_proxy const &)=delete
void signal_info(QString, QString)
Include QT Headers.
Factory couldn t std::string alg_name Invalid configuration error
Definition Issues.hpp:34