diff options
author | Ansgar Radermacher | 2014-09-05 12:40:19 +0000 |
---|---|---|
committer | Ansgar Radermacher | 2014-09-05 12:40:19 +0000 |
commit | 1cae46ac29d814b0441f09f7da4e36802a02fd2d (patch) | |
tree | f3ac3b1539ba2053ba08b8d8d944cd25b6826006 /extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassInheritedDeclarations.mtl | |
parent | 6c118f555e1b73f94cb77116006937893848e940 (diff) | |
download | org.eclipse.papyrus-1cae46ac29d814b0441f09f7da4e36802a02fd2d.tar.gz org.eclipse.papyrus-1cae46ac29d814b0441f09f7da4e36802a02fd2d.tar.xz org.eclipse.papyrus-1cae46ac29d814b0441f09f7da4e36802a02fd2d.zip |
443404 - [C++ codegen] Code generation should be based on xtend (done via merge of branch ogurcan)
Diffstat (limited to 'extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassInheritedDeclarations.mtl')
-rw-r--r-- | extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassInheritedDeclarations.mtl | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassInheritedDeclarations.mtl b/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassInheritedDeclarations.mtl deleted file mode 100644 index 66a0c4d223d..00000000000 --- a/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen/src/org/eclipse/papyrus/cpp/codegen/acceleo/util/clazz/CppClassInheritedDeclarations.mtl +++ /dev/null @@ -1,25 +0,0 @@ -[module CppClassInheritedDeclarations('http://www.eclipse.org/uml2/5.0.0/UML', 'http://www.eclipse.org/papyrus/C_Cpp/1')/] -[import org::eclipse::papyrus::acceleo::GenUtils/] -[import org::eclipse::papyrus::cpp::codegen::utils::CppGenUtils/] - -[comment -Return a list of relationships that are either Generalizations or InterfaceRealiazations -and the target does not point to a classifier that has the no-code-gen Stereotype -TODO: not sure if it makes sense NOT to declare an inheritance, since we do not generate code. -/] -[query public filteredRelationships(class : Classifier) : Set(DirectedRelationship) = - getSourceDirectedRelationships()->select( - (oclIsKindOf(Generalization) or oclIsKindOf(InterfaceRealization)) and - (not target->asSequence()->first().hasStereotype(NoCodeGen)) - ) -/] - -[query public getCppVisibility(relationship : Relationship) : String = -if (hasStereotype(Visibility)) then getApplication(Visibility).oclAsType(Visibility).value else 'public' endif -/] - -[template public CppClassInheritedDeclarations(class : Classifier)] -[if (filteredRelationships()->size() > 0)] : [/if] -[for (filteredRelationships()) separator(', \n')] - [getCppVisibility()/] [target->asSequence()->first().oclAsType(Classifier).cppQualifiedName()/][/for] -[/template] |