DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbe::MyApplication Class Reference

#include <MyApplication.hpp>

Inheritance diagram for dbe::MyApplication:
[legend]
Collaboration diagram for dbe::MyApplication:
[legend]

Public Member Functions

 MyApplication (int &argc, char **argv)
virtual ~MyApplication ()
virtual bool notify (QObject *rec, QEvent *ev)

Detailed Description

Definition at line 16 of file MyApplication.hpp.

Constructor & Destructor Documentation

◆ MyApplication()

dbe::MyApplication::MyApplication ( int & argc,
char ** argv )
inline

Definition at line 20 of file MyApplication.hpp.

21 : QApplication ( argc, argv )
22 {
23 }

◆ ~MyApplication()

virtual dbe::MyApplication::~MyApplication ( )
inlinevirtual

Definition at line 24 of file MyApplication.hpp.

25 {
26 }

Member Function Documentation

◆ notify()

bool dbe::MyApplication::notify ( QObject * rec,
QEvent * ev )
virtual

Definition at line 19 of file MyApplication.cpp.

20{
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}
virtual bool notify(QObject *rec, QEvent *ev)
#define HERE_AUTO_DEF(funname)
Definition macro.hpp:41
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112
#define TLOG(...)
Definition macro.hpp:22
#define ERROR(...)
Definition messenger.hpp:93
std::string const unwind(ers::Issue const &)

The documentation for this class was generated from the following files: