Selaa lähdekoodia

dump enter and exit state steps

terfloth@itemis.de 14 vuotta sitten
vanhempi
commit
30edfac599

+ 11 - 3
plugins/org.yakindu.sct.generator.cpp/src/org/yakindu/sct/generator/cpp/templates/Dump.xpt

@@ -32,9 +32,8 @@ Cycle: 
 «ENDDEFINE»
 
 
-«DEFINE code FOR Sequence»
-	{
-		«EXPAND code FOREACH this.steps»
+«DEFINE code FOR Sequence -»
+	{ «EXPAND code FOREACH this.steps -»
 	}
 «ENDDEFINE»
 
@@ -44,12 +43,21 @@ Cycle: 
 		«IF this.elseStep != null -»else «EXPAND code FOR this.elseStep»«ENDIF-»
 «ENDDEFINE»
 
+«DEFINE code FOR EnterState -»
+ enter «this.state.name -»
+«ENDDEFINE»
+
+«DEFINE code FOR ExitState -»
+ exit «this.state.name -»
+«ENDDEFINE»
+
 
 «DEFINE code FOR Step»
 !!! UNKNOWN STEP !!!
 «ENDDEFINE»
 
 
+
 «DEFINE code FOR Statement -»
 «ENDDEFINE»