QtUtil.h File Reference
+ Include dependency graph for QtUtil.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CHECK_NOT_QT_THREAD(qtObject)
 
#define CHECK_QT_THREAD(qtObject)
 Macro to check whether the current function is executed in the thread of the given Qt object. More...
 

Macro Definition Documentation

◆ CHECK_NOT_QT_THREAD

#define CHECK_NOT_QT_THREAD (   qtObject)
Value:
ARMARX_CHECK_EXPRESSION(qtObject!=nullptr); ARMARX_CHECK_NOT_EQUAL(qtObject->thread(), QThread::currentThread()) << \
"The current function is called in the Qt Thread of the object (most of the time the main thread)! This function was declared to be not in the GUI thread."

Definition at line 33 of file QtUtil.h.

◆ CHECK_QT_THREAD

#define CHECK_QT_THREAD (   qtObject)
Value:
ARMARX_CHECK_EXPRESSION(qtObject!=nullptr); ARMARX_CHECK_EQUAL(qtObject->thread(), QThread::currentThread()) << \
"The current function is not called in the correct Qt Thread of the object (most of the time the main thread)!"

Macro to check whether the current function is executed in the thread of the given Qt object.

This object should be the object that is manipulated/read by the called function.

Definition at line 30 of file QtUtil.h.

ARMARX_CHECK_NOT_EQUAL
#define ARMARX_CHECK_NOT_EQUAL(lhs, rhs)
This macro evaluates whether lhs is inequal (!=) rhs and if it turns out to be false it will throw an...
Definition: ExpressionException.h:137
ARMARX_CHECK_EXPRESSION
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...
Definition: ExpressionException.h:73
ARMARX_CHECK_EQUAL
#define ARMARX_CHECK_EQUAL(lhs, rhs)
This macro evaluates whether lhs is equal (==) rhs and if it turns out to be false it will throw an E...
Definition: ExpressionException.h:130