QEP/C++ platform-independent public interface. More...
|Provides miscellaneous QEP services. More...|
|Finite State Machine base class. More...|
|Hierarchical State Machine base class. More...|
|Designates a target for an initial or regular transition. Q_TRAN() can be used both in the FSMs and HSMs. |
|Designates the superstate of a given state in an HSM. |
|#define||Q_STATE_CAST(handler_) (reinterpret_cast<QP_ QStateHandler>(handler_))|
|Perform cast to QStateHandler. |
|#define||Q_EVT_CAST(class_) (static_cast<class_ const *>(e))|
|Perform downcast of an event onto a subclass of QEvt class_. |
|Type returned from a state-handler function. |
|typedef QState(*||QStateHandler )(void *const me, QEvt const *const e)|
|pointer to state-handler function |
|QState const||Q_RET_HANDLED = static_cast<QState>(0)|
|Value returned by a state-handler function when it handles the event. |
|QState const||Q_RET_IGNORED = static_cast<QState>(1)|
|Value returned by a non-hierarchical state-handler function when it ignores (does not handle) the event. |
|QState const||Q_RET_TRAN = static_cast<QState>(2)|
|Value returned by a state-handler function when it takes a regular state transition. |
|QState const||Q_RET_SUPER = static_cast<QState>(3)|
|Value returned by a state-handler function when it forwards the event to the superstate to handle. |
|QState const||Q_RET_UNHANDLED = static_cast<QState>(4)|
|Value returned by a state-handler function when a guard condition prevents it from handling the event. |
|enum_t const||Q_USER_SIG = static_cast<enum_t>(4)|
|Offset or the user signals. |
QEP/C++ platform-independent public interface.
This header file must be included directly or indirectly in all modules (*.cpp files) that use QEP/C++.
Definition in file qep.h.
|#define Q_EVT_CAST||(||class_||)||(static_cast<class_ const *>(e))|
Perform cast to QStateHandler.
This macro encapsulates the cast of a specific state handler function pointer to QStateHandler, which violates MISRA-C 2004 rule 11.4(advisory). This macro helps to localize this deviation.