Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: f66666b9517b7fa80b18fbd5ce01c459af844996 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                                            
                                                  




                                                                              
                    
                          



                                                                                                      
           
[module CppEnumerations('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::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