DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
messenger_proxy.hpp
Go to the documentation of this file.
1/*
2 * messenger_proxy.h
3 *
4 * Created on: Nov 4, 2015
5 * Author: lgeorgop
6 */
7
8#ifndef DBE_MESSENGER_PROXY_H_
9#define DBE_MESSENGER_PROXY_H_
10
11#include <QObject>
12#include <QString>
13#include <QMessageBox>
14
15namespace dbe
16{
17namespace interface
18{
19
23class messenger_proxy: public QObject
24{
25 Q_OBJECT
26public:
27 typedef std::string t_extstr;
28
29 static messenger_proxy & ref();
30
31 void debug ( t_extstr const &, t_extstr const & );
32 void info ( t_extstr const &, t_extstr const & );
33 void note ( t_extstr const &, t_extstr const & );
34 void warn ( t_extstr const &, t_extstr const & );
35 void error ( t_extstr const &, t_extstr const & );
36 void fail ( t_extstr const &, t_extstr const & );
37
38 /*
39 * Signals defined below are used to call across the thread boundary, e.g. from an std::thread to
40 * a QThread , in order to guarantee the the strings leave in the receiver thread's memory space
41 * copies have to actually be passed as an argument. Otherwise, in case of context switch the
42 * value may die, as it is going to be unaware of it being held from the receiver.
43 */
44signals:
45 void signal_debug ( QString , QString );
46 void signal_info ( QString , QString );
47 void signal_note ( QString , QString );
48 void signal_warn ( QString , QString );
49 void signal_error ( QString , QString );
50 void signal_fail ( QString , QString );
51
52private:
54 messenger_proxy ( messenger_proxy const & ) = delete;
56};
57
58}
59}
60
61#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