QXRD  0.11.16
qcepmacros.h
Go to the documentation of this file.
1 #ifndef QCEPMACROS_H
2 #define QCEPMACROS_H
3 
4 #include <QVector>
5 #include <QList>
6 #include <QMetaType>
7 #include <QPointF>
8 #include <QRectF>
9 
10 #define GUI_THREAD_CHECK Q_ASSERT(qApp && qApp ->thread() == QThread::currentThread())
11 #define THREAD_CHECK Q_ASSERT(QThread::currentThread() == thread())
12 
13 #define INVOKE_CHECK(res) if(!res) { printf("Invoke failed File %s, Line %d\n", __FILE__, __LINE__); }
14 #define CONNECT_CHECK(res) if(!res) { printf("Connect failed File %s, Line %d\n", __FILE__, __LINE__); }
15 
16 #define STR(s) _STR(s)
17 #define _STR(s) #s
18 
19 typedef QVector<double> QcepDoubleVector;
20 Q_DECLARE_METATYPE(QcepDoubleVector)
21 typedef QVector<bool> QcepBoolVector;
22 Q_DECLARE_METATYPE(QcepBoolVector)
23 typedef QVector<int> QcepIntVector;
24 Q_DECLARE_METATYPE(QcepIntVector)
25 typedef QVector<QString> QcepStringVector;
26 Q_DECLARE_METATYPE(QcepStringVector)
27 
28 typedef QList<double> QcepDoubleList;
29 Q_DECLARE_METATYPE(QcepDoubleList)
30 typedef QList<bool> QcepBoolList;
31 Q_DECLARE_METATYPE(QcepBoolList)
32 typedef QList<int> QcepIntList;
33 Q_DECLARE_METATYPE(QcepIntList)
34 typedef QList<QString> QcepStringList;
35 Q_DECLARE_METATYPE(QcepStringList)
36 
37 typedef QVector<QPointF> QcepPolygon;
38 Q_DECLARE_METATYPE(QcepPolygon)
39 
40 Q_DECLARE_METATYPE(QPointF)
41 Q_DECLARE_METATYPE(QRectF)
42 
43 #endif // QCEPMACROS_H
QVector< int > QcepIntVector
Definition: qcepmacros.h:23
QVector< bool > QcepBoolVector
Definition: qcepmacros.h:21
QList< bool > QcepBoolList
Definition: qcepmacros.h:30
QVector< double > QcepDoubleVector
Definition: qcepmacros.h:19
QList< QString > QcepStringList
Definition: qcepmacros.h:34
QList< double > QcepDoubleList
Definition: qcepmacros.h:28
QList< int > QcepIntList
Definition: qcepmacros.h:32
QVector< QString > QcepStringVector
Definition: qcepmacros.h:25
QVector< QPointF > QcepPolygon
Definition: qcepmacros.h:37