QP/C++ 8.1.2
Real-Time Event Framework
Loading...
Searching...
No Matches
qpcpp.hpp File Reference

QP/C++ Framework in C++ interface including the backwards-compatibility layer. More...

#include "qp_port.hpp"
#include "qsafe.h"
#include "qs_port.hpp"

Go to the source code of this file.

Namespaces

namespace  QP
 QP/C++ Framework namespace.

Macros

#define QP_API_VERSION   0
#define QM_SM_STATE_DECL(subm_, state_)
#define qm_super_sub(sm_state_)
#define qm_tran_ep(tatbl_)
#define qm_tran_xp(xp_, tatbl_)
#define qm_sm_exit(sm_state_)
#define Q_onAssert(module_, id_)
#define Q_ALLEGE_ID(id_, expr_)
#define Q_ALLEGE(expr_)
#define Q_ASSERT_COMPILE(expr_)

Typedefs

using enum_t = int
using char_t = char

Enumerations

enum  QP::QS_Groups_old : std::int16_t {
  QP::QS_ALL_RECORDS = QS_GRP_ALL , QP::QS_SM_RECORDS = QS_GRP_SM , QP::QS_AO_RECORDS = QS_GRP_AO , QP::QS_EQ_RECORDS = QS_GRP_EQ ,
  QP::QS_MP_RECORDS = QS_GRP_MP , QP::QS_TE_RECORDS = QS_GRP_TE , QP::QS_QF_RECORDS = QS_GRP_QF , QP::QS_SC_RECORDS = QS_GRP_SC ,
  QP::QS_SEM_RECORDS = QS_GRP_SEM , QP::QS_MTX_RECORDS = QS_GRP_MTX , QP::QS_U0_RECORDS = QS_GRP_U0 , QP::QS_U1_RECORDS = QS_GRP_U1 ,
  QP::QS_U2_RECORDS = QS_GRP_U2 , QP::QS_U3_RECORDS = QS_GRP_U3 , QP::QS_U4_RECORDS = QS_GRP_U4 , QP::QS_UA_RECORDS = QS_GRP_UA
}

Detailed Description

QP/C++ Framework in C++ interface including the backwards-compatibility layer.

Definition in file qpcpp.hpp.

Macro Definition Documentation

◆ QP_API_VERSION

#define QP_API_VERSION   0

Definition at line 42 of file qpcpp.hpp.

◆ QM_SM_STATE_DECL

#define QM_SM_STATE_DECL ( subm_,
state_ )
Value:
error "submachines no longer supported"
Deprecated
submachines no longer supported

Definition at line 91 of file qpcpp.hpp.

◆ qm_super_sub

#define qm_super_sub ( sm_state_)
Value:
error "submachines no longer supported"
Deprecated
submachines no longer supported

Definition at line 94 of file qpcpp.hpp.

◆ qm_tran_ep

#define qm_tran_ep ( tatbl_)
Value:
error "submachines no longer supported"
Deprecated
submachines no longer supported

Definition at line 97 of file qpcpp.hpp.

◆ qm_tran_xp

#define qm_tran_xp ( xp_,
tatbl_ )
Value:
error "submachines no longer supported"
Deprecated
submachines no longer supported

Definition at line 100 of file qpcpp.hpp.

◆ qm_sm_exit

#define qm_sm_exit ( sm_state_)
Value:
error "submachines no longer supported"
Deprecated
submachines no longer supported

Definition at line 103 of file qpcpp.hpp.

◆ Q_onAssert

#define Q_onAssert ( module_,
id_ )
Value:
Q_onError(module_, id_)
Q_NORETURN Q_onError(char const *const module, int_t const id)
Custom error handler Callback function invoked after detecting an error (part of QP Functional Safety...
Deprecated
assertion failure handler, use custom error handler instead Use Q_onError() instead.

Definition at line 115 of file qpcpp.hpp.

◆ Q_ALLEGE_ID

#define Q_ALLEGE_ID ( id_,
expr_ )
Value:
if (!(expr_)) { \
QF_CRIT_STAT \
QF_CRIT_ENTRY(); \
Q_onError(&Q_this_module_[0], (id_)); \
QF_CRIT_EXIT(); \
} else ((void)0)
Deprecated
general purpose assertion with user-specified ID number that always evaluates the expr_ expression.
Note
The use of this macro is no longer recommended.

Definition at line 138 of file qpcpp.hpp.

◆ Q_ALLEGE

#define Q_ALLEGE ( expr_)
Value:
Q_ALLEGE_ID(__LINE__, (expr_))
#define Q_ALLEGE_ID(id_, expr_)
Definition qpcpp.hpp:138
Deprecated
general-purpose assertion that always evaluates the expr_ expression.
Note
The use of this macro is no longer recommended.

Definition at line 150 of file qpcpp.hpp.

◆ Q_ASSERT_COMPILE

#define Q_ASSERT_COMPILE ( expr_)
Value:
#define Q_ASSERT_STATIC(expr_)
Static (compile-time) assertion.
Definition qsafe.h:114

Static (compile-time) assertion.

Deprecated
Use Q_ASSERT_STATIC() or better yet static_assert() instead.

Definition at line 155 of file qpcpp.hpp.

Typedef Documentation

◆ enum_t

using enum_t = int

Definition at line 55 of file qpcpp.hpp.

◆ char_t

using char_t = char
Deprecated
plain 'char' is no longer forbidden in MISRA-C++:2023

Definition at line 111 of file qpcpp.hpp.