2727 <documentation >opaque pointer to the test SM</documentation >
2828 <code >= & QHsmTst_inst.super.super;</code >
2929 </attribute >
30- <!-- ${Shared::QHsmTst_ctor}-->
31- <operation name =" QHsmTst_ctor" type =" void" visibility =" 0x00" properties =" 0x00" >
32- <code >QHsmTst *me = & QHsmTst_inst;
33- QHsm_ctor(& me-> super, Q_STATE_CAST(& QHsmTst_initial));</code >
34- </operation >
3530 <!-- ${Shared::BSP_display}-->
3631 <operation name =" BSP_display" type =" void" visibility =" 0x00" properties =" 0x00" >
3732 <!-- ${Shared::BSP_display::msg}-->
@@ -42,6 +37,41 @@ QHsm_ctor(&me->super, Q_STATE_CAST(&QHsmTst_initial));</code>
4237 <!-- ${Shared::BSP_terminate::result}-->
4338 <parameter name =" result" type =" int16_t const" />
4439 </operation >
40+ <!-- ${Shared::QHsmTst_ctor}-->
41+ <operation name =" QHsmTst_ctor" type =" void" visibility =" 0x00" properties =" 0x00" >
42+ <code >QHsmTst *me = & QHsmTst_inst;
43+ QHsm_ctor(& me-> super, Q_STATE_CAST(& QHsmTst_initial));</code >
44+ </operation >
45+ <!-- ${Shared::QHsmTst_isIn}-->
46+ <operation name =" QHsmTst_isIn" type =" bool" visibility =" 0x00" properties =" 0x00" >
47+ <!-- ${Shared::QHsmTst_isIn::state_num}-->
48+ <parameter name =" state_num" type =" uint32_t const" />
49+ <code >QHsm * const me = & QHsmTst_inst.super;
50+ bool stat = false;
51+ switch (state_num) {
52+ case 0:
53+ stat = QHsm_isIn(me, Q_STATE_CAST(& QHsmTst_s));
54+ break;
55+ case 1:
56+ stat = QHsm_isIn(me, Q_STATE_CAST(& QHsmTst_s1));
57+ break;
58+ case 11:
59+ stat = QHsm_isIn(me, Q_STATE_CAST(& QHsmTst_s11));
60+ break;
61+ case 2:
62+ stat = QHsm_isIn(me, Q_STATE_CAST(& QHsmTst_s2));
63+ break;
64+ case 21:
65+ stat = QHsm_isIn(me, Q_STATE_CAST(& QHsmTst_s21));
66+ break;
67+ case 211:
68+ stat = QHsm_isIn(me, Q_STATE_CAST(& QHsmTst_s211));
69+ break;
70+ default:
71+ Q_ERROR();
72+ }
73+ return stat;</code >
74+ </operation >
4575 </package >
4676 <!-- ${SMs}-->
4777 <package name =" SMs" stereotype =" 0x02" >
@@ -349,9 +379,12 @@ $declare ${Shared}
349379 <text >#include " qpc.h" // QP/C framework
350380#include " qhsmtst.h" // this application
351381
382+ Q_DEFINE_THIS_FILE
383+
352384$declare ${SMs::QHsmTst}
353385$define ${Shared::the_sm}
354386$define ${Shared::QHsmTst_ctor}
387+ $define ${Shared::QHsmTst_isIn}
355388$define ${SMs::QHsmTst}</text >
356389 </file >
357390 </directory >
0 commit comments