blob: 99148264afc0459ea780c2f9a4f7f474b7951ccb (
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
|
[module CppBindHeader('http://www.eclipse.org/uml2/4.0.0/UML')/]
[import org::eclipse::papyrus::cpp::codegen::utils::GenUtils/]
[import org::eclipse::papyrus::cpp::codegen::acceleo::util::clazz::CppClassIncludeClassDeclaration/]
[import org::eclipse::papyrus::cpp::codegen::acceleo::util::CppTemplates/]
[import org::eclipse::papyrus::cpp::codegen::preferences::CppCodeGenUtils/]
[template public CppBindHeader(class : Class)]
#ifndef [getFullNameUC()/]_H
#define [getFullNameUC()/]_H
/************************************************************
[class.name/] template binding header
************************************************************/
[_package.CppOwnerPackageIncludeDeclaration()/]
[CppClassAllIncludesDeclaration()/]
[getApplication(C_Cpp::Include).oclAsType(C_Cpp::Include).header/]
[let tb : TemplateBinding = getTemplateBindings()]
[let templateElement : Classifier = tb.target->asSequence()->first()]
#include <[_package.getFullPath()/]/[templateElement.owner.oclAsType(NamedElement).name/].[getHeaderSuffix()/]>
[openNS()/]
/************************************************************/
typedef [templateElement.name/] <[for (tb.parameterSubstitution)][CppTemplateBindingParameter()/][/for]> [class.name/];
[closeNS()/]
[/let][/let]
/************************************************************
End of [class.name/] template binding header
************************************************************/
#endif
[/template]
|