Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: cd81da94794fa687f218f8e6a99bad59ff6d6b1c (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
[comment encoding = UTF-8 /]
[module IncludeUtils('http://www.eclipse.org/uml2/4.0.0/UML')]
[import org::eclipse::papyrus::cpp::codegen::utils::GenUtils/]
[import org::eclipse::papyrus::cpp::codegen::acceleo::Constants/]

[template public IncludeHeader(ne : NamedElement)]
[if (hasStereotype(C_Cpp::Include) and (getApplication(C_Cpp::Include).oclAsType(C_Cpp::Include).header.size() > 0))]
[IncludeHeaderStart()/]
[getApplication(C_Cpp::Include).oclAsType(C_Cpp::Include).header/]
[IncludeHeaderEnd()/]
[/if]
[/template]

[template public IncludeBody(ne : NamedElement)]
[if (hasStereotype(C_Cpp::Include) and (getApplication(C_Cpp::Include).oclAsType(C_Cpp::Include)._body <> null))]
[IncludeBodyStart()/]
[getApplication(C_Cpp::Include).oclAsType(C_Cpp::Include)._body/]
[IncludeBodyEnd()/]
[/if]
[/template]

[template public IncludePreBody(ne : NamedElement)]
[if (hasStereotype(C_Cpp::Include))]
[IncludePreBodyStart()/]
[getApplication(C_Cpp::Include).oclAsType(C_Cpp::Include).preBody/]
[IncludePreBodyEnd()/]
[/if]
[/template]

Back to the top