QP/C++ public interface including backwards-compatibility layer. More...
Go to the source code of this file.
Macros | |
#define | QP_API_VERSION 0 |
Macro that specifies the backwards compatibility with the QP/C++ API version. | |
#define | QF_NO_MARGIN QP::QF::NO_MARGIN |
#define | Q_ASSERT_COMPILE(expr_) Q_ASSERT_STATIC(expr_) |
Static (compile-time) assertion. | |
#define | QS_FILTER_ON(rec_) QS_GLB_FILTER((rec_)) |
#define | QS_FILTER_OFF(rec_) QS_GLB_FILTER(-(rec_)) |
#define | QS_FILTER_SM_OBJ(obj_) (static_cast<void>(0)) |
#define | QS_FILTER_AO_OBJ(obj_) (static_cast<void>(0)) |
#define | QS_FILTER_MP_OBJ(obj_) (static_cast<void>(0)) |
#define | QS_FILTER_EQ_OBJ(obj_) (static_cast<void>(0)) |
#define | QS_FILTER_TE_OBJ(obj_) (static_cast<void>(0)) |
#define | QS_FILTER_AP_OBJ(obj_) (QP::QS::priv_.locFilter_AP = (obj_)) |
#define | QS_BEGIN(rec_, obj_) |
#define | QS_U32_HEX(width_, data_) |
#define | Q_TRAN(target_) (me->tran(Q_STATE_CAST(target_))) |
#define | Q_TRAN_HIST(hist_) (me->tran_hist((hist_))) |
#define | Q_SUPER(state_) (me->super(Q_STATE_CAST(state_))) |
#define | QM_ENTRY(state_) (me->qm_entry((state_))) |
#define | QM_EXIT(state_) (me->qm_exit((state_))) |
#define | QM_SM_EXIT(state_) (me->qm_sm_exit((state_))) |
#define | QM_TRAN(tatbl_) (me->qm_tran((tatbl_))) |
#define | QM_TRAN_INIT(tatbl_) (me->qm_tran_init((tatbl_))) |
#define | QM_TRAN_HIST(history_, tatbl_) (me->qm_tran_hist((history_), (tatbl_))) |
#define | QM_TRAN_EP(tatbl_) (me->qm_tran_ep((tatbl_))) |
#define | QM_TRAN_XP(xp_, tatbl_) (me->qm_tran_xp((xp_), (tatbl_))) |
#define | QM_SUPER_SUB(state_) (me->qm_super_sub((state_))) |
Typedefs | |
using | char_t = char |
This header file must be included directly or indirectly in all application modules (*.cpp files) that use QP/C++.
Definition in file qpcpp.hpp.
#define QP_API_VERSION 0 |
For example, QP_API_VERSION=540 will cause generating the compatibility layer with QP/C++ version 5.4.0 and newer, but not older than 5.4.0. QP_API_VERSION=0 causes generation of the compatibility layer "from the
begining of time", which is the maximum backwards compatibilty. This is the default.
Conversely, QP_API_VERSION=9999 means that no compatibility layer should be generated. This setting is useful for checking if an application complies with the latest QP/C++ API.
#define QF_NO_MARGIN QP::QF::NO_MARGIN |
#define Q_ASSERT_COMPILE | ( | expr_ | ) | Q_ASSERT_STATIC(expr_) |
static_assert()
instead. #define QS_FILTER_ON | ( | rec_ | ) | QS_GLB_FILTER((rec_)) |
#define QS_FILTER_OFF | ( | rec_ | ) | QS_GLB_FILTER(-(rec_)) |
#define QS_FILTER_SM_OBJ | ( | obj_ | ) | (static_cast<void>(0)) |
#define QS_FILTER_AO_OBJ | ( | obj_ | ) | (static_cast<void>(0)) |
#define QS_FILTER_MP_OBJ | ( | obj_ | ) | (static_cast<void>(0)) |
#define QS_FILTER_EQ_OBJ | ( | obj_ | ) | (static_cast<void>(0)) |
#define QS_FILTER_TE_OBJ | ( | obj_ | ) | (static_cast<void>(0)) |
#define QS_FILTER_AP_OBJ | ( | obj_ | ) | (QP::QS::priv_.locFilter_AP = (obj_)) |
obj_
. #define QS_BEGIN | ( | rec_, | |
obj_ | |||
) |
#define QS_U32_HEX | ( | width_, | |
data_ | |||
) |
#define Q_TRAN | ( | target_ | ) | (me->tran(Q_STATE_CAST(target_))) |
#define Q_TRAN_HIST | ( | hist_ | ) | (me->tran_hist((hist_))) |
#define Q_SUPER | ( | state_ | ) | (me->super(Q_STATE_CAST(state_))) |
#define QM_ENTRY | ( | state_ | ) | (me->qm_entry((state_))) |
#define QM_EXIT | ( | state_ | ) | (me->qm_exit((state_))) |
#define QM_SM_EXIT | ( | state_ | ) | (me->qm_sm_exit((state_))) |
#define QM_TRAN | ( | tatbl_ | ) | (me->qm_tran((tatbl_))) |
#define QM_TRAN_INIT | ( | tatbl_ | ) | (me->qm_tran_init((tatbl_))) |
#define QM_TRAN_HIST | ( | history_, | |
tatbl_ | |||
) | (me->qm_tran_hist((history_), (tatbl_))) |
#define QM_TRAN_EP | ( | tatbl_ | ) | (me->qm_tran_ep((tatbl_))) |
#define QM_TRAN_XP | ( | xp_, | |
tatbl_ | |||
) | (me->qm_tran_xp((xp_), (tatbl_))) |
#define QM_SUPER_SUB | ( | state_ | ) | (me->qm_super_sub((state_))) |
using char_t = char |