diff options
Diffstat (limited to 'plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/DataClassGen.xtend')
-rw-r--r-- | plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/DataClassGen.xtend | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/DataClassGen.xtend b/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/DataClassGen.xtend index 0398aba3c..b29dca461 100644 --- a/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/DataClassGen.xtend +++ b/plugins/org.eclipse.etrice.generator.cpp/src/org/eclipse/etrice/generator/cpp/gen/DataClassGen.xtend @@ -64,8 +64,8 @@ class DataClassGen { } def generateHeaderFile(Root root, DataClass dc) { - val ctor = dc.operations.filter(op|op.constructor).head - val dtor = dc.operations.filter(op|op.destructor).head +// val ctor = dc.operations.filter(op|op.constructor).head +// val dtor = dc.operations.filter(op|op.destructor).head //TODO: getReferencedDataClasses does not contain a base class of the own package ''' «generateIncludeGuardBegin(dc.path + dc.name)» @@ -118,8 +118,8 @@ class DataClassGen { } def generateSourceFile(Root root, DataClass dc) { - val ctor = dc.operations.filter(op|op.constructor).head - val dtor = dc.operations.filter(op|op.destructor).head +// val ctor = dc.operations.filter(op|op.constructor).head +// val dtor = dc.operations.filter(op|op.destructor).head ''' /** @@ -145,14 +145,14 @@ class DataClassGen { «ENDIF» { «dc.attributes.attributeInitialization(false)» - «IF ctor!=null» - { - // user defined constructor body - «FOR l : ctor.detailCode.lines» - «l» - «ENDFOR» - } - «ENDIF» +««« «IF ctor!=null» +««« { +««« // user defined constructor body +««« «FOR l : ctor.detailCode.lines» +««« «l» +««« «ENDFOR» +««« } +««« «ENDIF» } // copy constructor |