Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Belle2018-09-19 08:25:43 +0000
committerJan Belle2018-09-19 08:25:43 +0000
commitf8f82d046d2b781b44af7c418e1d30c12e329e5b (patch)
treef694c4bb47f0cc95e1c3856adc6e5c443d5703ea /plugins/org.eclipse.etrice.generator.c
parent213c105164c1a1c1eae88c06a3473f07b2f3e28b (diff)
downloadorg.eclipse.etrice-f8f82d046d2b781b44af7c418e1d30c12e329e5b.tar.gz
org.eclipse.etrice-f8f82d046d2b781b44af7c418e1d30c12e329e5b.tar.xz
org.eclipse.etrice-f8f82d046d2b781b44af7c418e1d30c12e329e5b.zip
[generator.doc] Add standalone doc generator module
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.c')
-rw-r--r--plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend
index 09516bec3..22b3c60c1 100644
--- a/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.c/src/org/eclipse/etrice/generator/c/gen/ProtocolClassGen.xtend
@@ -24,13 +24,13 @@ import org.eclipse.etrice.core.room.ProtocolClass
import org.eclipse.etrice.core.room.RoomModel
import org.eclipse.etrice.generator.base.io.IGeneratorFileIO
import org.eclipse.etrice.generator.base.logging.ILogger
-import org.eclipse.etrice.generator.base.AbstractGenerator
import org.eclipse.etrice.generator.c.Main
import org.eclipse.etrice.generator.generic.GenericProtocolClassGenerator
import org.eclipse.etrice.generator.generic.ProcedureHelpers
import org.eclipse.etrice.generator.generic.RoomExtensions
import org.eclipse.etrice.generator.generic.TypeHelpers
import org.eclipse.etrice.generator.c.setup.GeneratorOptionsHelper
+import org.eclipse.etrice.generator.fsm.generic.IDetailCodeTranslator
@Singleton
class ProtocolClassGen extends GenericProtocolClassGenerator {
@@ -41,6 +41,7 @@ class ProtocolClassGen extends GenericProtocolClassGenerator {
@Inject extension ProcedureHelpers
@Inject extension TypeHelpers
@Inject protected extension GeneratorOptionsHelper
+ @Inject protected extension IDetailCodeTranslator
@Inject ILogger logger
def doGenerate(Root root) {
@@ -372,7 +373,7 @@ class ProtocolClassGen extends GenericProtocolClassGenerator {
«messageSignature(portClassName, message.name, "", data)» {
«IF hdlr !== null»
- «AbstractGenerator::getInstance().getTranslatedCode(hdlr.detailCode)»
+ «hdlr.detailCode.translatedCode»
«ELSE»
ET_MSC_LOGGER_SYNC_ENTRY("«portClassName»", "«message.name»")
«sendMessageCall(hasData, "self", memberInUse(pc.name, dir+message.name), typeName+refp, refa+"data__et")»
@@ -480,7 +481,7 @@ class ProtocolClassGen extends GenericProtocolClassGenerator {
/* receiver handlers */
«FOR h:pc.getReceiveHandlers(conj)»
void «portClassName»_«h.msg.name»_receiveHandler(«portClassName»* self, const etMessage* msg, void * actor, etActorReceiveMessage receiveMessageFunc){
- «AbstractGenerator::getInstance().getTranslatedCode(h.detailCode)»
+ «h.detailCode.translatedCode»
/* hand over the message to the actor: */
/* (*receiveMessageFunc)(actor, self, msg); */
}

Back to the top