DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
src
MyApplication.cpp
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: no.
5
7
#include "
dbe/MyApplication.hpp
"
8
#include "
dbe/Exceptions.hpp
"
10
#include "
conffwk/Configuration.hpp
"
11
#include "
ers/ers.hpp
"
12
#include "
logging/Logging.hpp
"
13
14
#include "
dbe/messenger.hpp
"
15
#include "
dbe/version.hpp
"
16
17
char
const
*
const
dbe_lib_core_version
=
dbe_compiled_version
;
18
19
bool
dbe::MyApplication::notify
( QObject * rec, QEvent * ev )
20
{
21
HERE_AUTO_DEF
(
notify
);
22
23
try
24
{
25
return
QApplication::notify ( rec, ev );
26
}
27
catch
( dunedaq::conffwk::Exception
const
& err )
28
{
29
TLOG
() <<
"MyApplication: dunedaq::conffwk::Exception: "
<< err ;
30
ERROR
(
"Unexpected error occurred"
,
dbe::config::errors::unwind
(err),
"dunedaq::conffwk::Exception caught at"
, HERE );
31
return
false
;
32
}
33
catch
(
ers::Issue
const
& err )
34
{
35
TLOG
() <<
"MyApplication: ers::Issue: "
<< err ;
36
ERROR
(
"ers::Issue occurred"
,
dbe::config::errors::unwind
(err),
"\n\nCaught at:"
, HERE );
37
return
false
;
38
}
39
catch
( std::exception
const
& err )
40
{
41
TLOG
() <<
"MyApplication: std::exception: "
;
42
ERROR
(
"Error sending event"
, err.what(),
"for object"
, typeid ( *ev ).name(),
"Receiver"
,
43
typeid ( *rec ).name() );
44
return
false
;
45
}
46
catch
(
char
const
* str )
47
{
48
TLOG
() <<
"MyApplication: EXCEPTION: "
<< str << std::endl ;
49
ERROR
(
"Unknown exception"
, str,
"\n\nCaught at: "
, HERE );
50
return
false
;
51
}
52
catch
( ... )
53
{
54
TLOG_DEBUG
(0) <<
"MyApplication: Unknown exception!"
;
55
ERROR
(
"Unknown exception"
,
"\n\nCaught at: "
, HERE );
56
return
false
;
57
}
58
59
TLOG
() <<
"MyApplication: outside catch..."
;
60
return
false
;
61
}
Exceptions.hpp
MyApplication.hpp
dbe_lib_core_version
char const *const dbe_lib_core_version
Including DBE.
Definition
MyApplication.cpp:17
dbe::MyApplication::notify
virtual bool notify(QObject *rec, QEvent *ev)
Definition
MyApplication.cpp:19
ers::Issue
Base class for any user define issue.
Definition
Issue.hpp:80
Configuration.hpp
conffwk entry point
HERE_AUTO_DEF
#define HERE_AUTO_DEF(funname)
Definition
macro.hpp:41
ers.hpp
Logging.hpp
TLOG_DEBUG
#define TLOG_DEBUG(lvl,...)
Definition
Logging.hpp:112
TLOG
#define TLOG(...)
Definition
macro.hpp:22
messenger.hpp
ERROR
#define ERROR(...)
Definition
messenger.hpp:93
dbe::config::errors::unwind
std::string const unwind(ers::Issue const &)
Definition
config_api.cpp:50
version.hpp
dbe_compiled_version
#define dbe_compiled_version
Definition
version.hpp:22
Generated on
for DUNE-DAQ by
1.17.0