Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 97f7653d5c2d705053f7a6cc2188de09135ef758 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[module CppEnumerations('http://www.eclipse.org/uml2/4.0.0/UML', 'http://papyrus/C_CppProfile/1')/]
[import org::eclipse::papyrus::cpp::codegen::utils::GenUtils/]
[import org::eclipse::papyrus::cpp::codegen::acceleo::util::CppDocumentation/]

[template public CppEnumerationDefinition(enum : Enumeration)]
[CppElementDoc()/]
enum [enum.name/] {
[for (ownedLiteral)]/
	[CppElementDoc()/]
	[name/][if hasStereotype(CppInit)] = [getApplication(CppInit).oclAsType(CppInit).value/][/if],
[/for]
};

[/template]

Back to the top