Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a5c2d6f9a17b5fcd744423fcd2365a86ed2c9e9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[module CppBindBody('http://www.eclipse.org/uml2/4.0.0/UML')/]
[import org::eclipse::papyrus::cpp::codegen::utils::GenUtils/]
[import org::eclipse::papyrus::cpp::codegen::utils::ClassUtils/]
[import org::eclipse::papyrus::cpp::codegen::acceleo::CppIncludeUtils/]
[import org::eclipse::papyrus::cpp::codegen::preferences::CppCodeGenUtils/]
[import org::eclipse::papyrus::cpp::codegen::acceleo::Constants/]
[import org::eclipse::papyrus::cpp::codegen::acceleo::util::CppTemplates/]
[import org::eclipse::papyrus::cpp::codegen::acceleo::util::clazz::CppClassIncludeClassDeclaration/]


[template public CppBindBody(class : Class)]
#define [getFullNameUC()/]_BODY

/************************************************************
              [class.name/] template binding body
 ************************************************************/

[CppIncludePreBody()/]

[constIncludeHFile()/]
#include <[_package.getFullPath()/]/[class.name/].[getHeaderSuffix()/]>

[CppIncludeBody()/]

[openNS()/]

[constDerivedIncludes()/]
[CppClassAllIncludesDeclaration()/]

/************************************************************/
[let tb : TemplateBinding = getTemplateBindings()]
[let templateElement : Element = tb.target->asSequence()->first()]
template class [templateElement.owner.oclAsType(NamedElement).name/]<[for (tb.parameterSubstitution)][CppTemplateBindingParameter()/][/for]>;
[/let][/let]

[closeNS()/]

/************************************************************
              End of [class.name/] template binding body
 ************************************************************/
[/template]

Back to the top