Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-12-10 18:21:45 +0000
committerHenrik Rentz-Reichert2012-12-10 18:21:45 +0000
commite03421ea8ce957b9b63f89cb906381129e87b669 (patch)
tree858f25eb0654e692e517b85063fc3ee71ab819fe
parenteda07f4971c9e00f1e880c65d6b00addd838961f (diff)
downloadorg.eclipse.etrice-e03421ea8ce957b9b63f89cb906381129e87b669.tar.gz
org.eclipse.etrice-e03421ea8ce957b9b63f89cb906381129e87b669.tar.xz
org.eclipse.etrice-e03421ea8ce957b9b63f89cb906381129e87b669.zip
[generator.cpp] made methods private
-rw-r--r--plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/ActorClassGen.xtend11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/ActorClassGen.xtend b/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/ActorClassGen.xtend
index a742a7db4..f97c69698 100644
--- a/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/ActorClassGen.xtend
+++ b/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/ActorClassGen.xtend
@@ -43,7 +43,7 @@ class ActorClassGen extends GenericActorClassGenerator {
}
}
- def generateHeaderFile(Root root, ExpandedActorClass xpac, ActorClass ac) {
+ def private generateHeaderFile(Root root, ExpandedActorClass xpac, ActorClass ac) {
val ctor = ac.operations.filter(op|op.constructor).head
val dtor = ac.operations.filter(op|op.destructor).head
@@ -149,7 +149,7 @@ class ActorClassGen extends GenericActorClassGenerator {
«generateIncludeGuardEnd(ac.name)»
'''
}
- def generateConstructorInitalizerList(ActorClass ac) {
+ def private generateConstructorInitalizerList(ActorClass ac) {
var initializerList = new ArrayList<CharSequence>();
if (ac.base==null) {
initializerList.add('''ActorClassBase( parent, name, port_addr[0][0], peer_addr[0][0])''')
@@ -179,7 +179,7 @@ class ActorClassGen extends GenericActorClassGenerator {
}
- def generateSourceFile(Root root, ExpandedActorClass xpac, ActorClass ac) {
+ def private generateSourceFile(Root root, ExpandedActorClass xpac, ActorClass ac) {
val ctor = ac.operations.filter(op|op.constructor).head
val dtor = ac.operations.filter(op|op.destructor).head
val async = xpac.actorClass.commType==ActorCommunicationType::ASYNCHRONOUS
@@ -195,11 +195,6 @@ class ActorClassGen extends GenericActorClassGenerator {
#include "«ac.getCppHeaderFileName»"
#include "common/debugging/DebuggingService.h"
#include <iostream>
- «IF GeneratorOptions::useEtUnit»
- extern "C" {
- #include "etUnit.h"
- }
- «ENDIF»
using namespace etRuntime;

Back to the top