3 cpp_h_extension "h" cpp_src_extension "cpp" java_extension "java" php_extension "php" idl_extension "idl"
5 type_forms 15 // uml cpp java idl cpp_in cpp_out cpp_inout cpp_return
6 "void" "void" "void" "void" "${type}" "${type} &" "${type}" "${type}"
7 "any" "void *" "Object" "any" "const ${type}" "${type}" "${type} &" "${type}"
8 "bool" "bool" "boolean" "boolean" "${type}" "${type} &" "${type} &" "${type}"
9 "char" "char" "char" "char" "${type}" "${type} &" "${type} &" "${type}"
10 "uchar" "unsigned char" "char" "octet" "${type}" "${type} &" "${type} &" "${type}"
11 "byte" "unsigned char" "byte" "octet" "${type}" "${type} &" "${type} &" "${type}"
12 "short" "short" "short" "short" "${type}" "${type} &" "${type} &" "${type}"
13 "ushort" "unsigned short" "short" "unsigned short" "${type}" "${type} &" "${type} &" "${type}"
14 "int" "int" "int" "long" "${type}" "${type} &" "${type} &" "${type}"
15 "uint" "unsigned int" "int" "unsigned long" "${type}" "${type} &" "${type} &" "${type}"
16 "long" "long" "long" "long" "${type}" "${type} &" "${type} &" "${type}"
17 "ulong" "unsigned long" "long" "unsigned long" "${type}" "${type} &" "${type} &" "${type}"
18 "float" "float" "float" "float" "${type}" "${type} &" "${type} &" "${type}"
19 "double" "double" "double" "double" "${type}" "${type} &" "${type} &" "${type}"
20 "string" "string" "String" "string" "${type}" "${type} &" "${type} &" "${type}"
22 relations_stereotypes 4 // uml cpp java idl
23 "sequence" "vector" "Vector" "sequence"
24 "vector" "vector" "Vector" "sequence"
25 "list" "list" "Vector" "sequence"
26 "set" "set" "Vector" "sequence"
28 classes_stereotypes 13 // uml cpp java php idl
29 "class" "class" "class" "class" "valuetype"
30 "interface" "class" "interface" "interface" "interface"
31 "exception" "class" "class" "class" "exception"
32 "enum" "enum" "enum" "enum" "enum"
33 "enum_pattern" "enum" "enum_pattern" "enum" "enum"
34 "struct" "struct" "class" "class" "struct"
35 "union" "union" "class" "class" "union"
36 "typedef" "typedef" "ignored" "ignored" "typedef"
37 "boundary" "class" "class" "class" "interface"
38 "control" "class" "class" "class" "valuetype"
39 "entity" "class" "class" "class" "valuetype"
40 "actor" "ignored" "ignored" "ignored" "ignored"
41 "@interface" "ignored" "@interface" "ignored" "ignored"
43 cpp_enum_default_type_forms "${type}" "${type} &" "${type} &" "${type}" // in out inout return
44 other_cpp_types_default_type_forms "const ${type} &" "${type} &" "${type} &" "${type}" // in out inout return
46 cpp_default_h_content "#ifndef ${NAMESPACE}_${NAME}_H
47 #define ${NAMESPACE}_${NAME}_H
57 cpp_default_src_content "${comment}
62 cpp_default_class_decl "${comment}${template}class ${name}${inherit} {
66 cpp_default_external_class_decl "${name}
69 cpp_default_struct_decl "${comment}${template}struct ${name}${inherit} {
73 cpp_default_union_decl "${comment}${template}union ${name} {
77 cpp_default_enum_decl "${comment}enum ${name} {
81 cpp_default_typedef_decl "${comment}typedef ${type} ${name};
83 cpp_default_attribute_declaration " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
85 " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
86 " // multiplicity * a..b
87 " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${multiplicity}${value};
88 " // multiplicity [..]
89 cpp_default_enum_item_declaration " ${name}${value},${comment}"
90 cpp_association_aggregation_declaration
91 " ${comment}${static}${mutable}${volatile}${const}${type} * ${name}${value};
93 " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type} *> ${name}${value};
94 " // multiplicity * a..b
95 " ${comment}${static}${mutable}${volatile}${const}${type} * ${name}${multiplicity}${value};
96 " // multiplicity [..]
97 cpp_aggregation_by_value_declaration
98 " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
100 " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
101 " // multiplicity * a..b
102 " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${multiplicity}${value};
103 " // multiplicity [..]
104 cpp_get "get_${name}" inline const value_const public
105 cpp_set "set_${name}" public
106 cpp_default_operation_declaration " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract};
108 cpp_default_operation_definition "${comment}${inline}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{
111 java_default_src_content "${comment}
115 java_default_class_decl "${comment}${@}${visibility}${final}${abstract}class ${name}${extends}${implements} {
118 java_default_external_class_decl "${name}"
119 java_default_interface_decl "${comment}${@}${visibility}interface ${name}${extends} {
122 java5_default_enum_decl "${comment}${@}${visibility}${final}${abstract}enum ${name}${implements} {
126 java_default_enum_decl "${comment}${@}${visibility}final class ${name} {
128 private final int value;
134 public static ${name} fromInt(int value) {
136 ${cases} default: throw new Error();
140 private ${name}(int v) { value = v; };
143 java_default_attribute_declaration " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type} ${name}${value};
145 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${stereotype} ${name}${value};
146 " // multiplicity * a..b
147 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type}${multiplicity} ${name}${value};
149 java5_default_enum_item_declaration " ${@}${name}${value},${comment}"
150 java_default_enum_item_declaration " ${comment}${@}public static final int _${name}${value};
151 public static final ${class} ${name} = new ${class}(_${name});
153 java_default_enum_case " case _${name}: return ${name};
155 java_association_aggregation_declaration
156 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type} ${name}${value};
158 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${stereotype} ${name}${value};
159 " // multiplicity * a..b
160 " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type}${multiplicity} ${name}${value};
162 java_get "get${Name}" final public
163 java_set "set${Name}" public
164 java_default_operation_definition " ${comment}${@}${visibility}${final}${static}${abstract}${synchronized}${type} ${name}${(}${)}${throws}${staticnl}{
167 php_default_src_content "<?php
172 php_default_class_decl "${comment}${final}${visibility}${abstract}class ${name}${extends}${implements} {
175 php_default_enum_decl "${comment}final ${visibility}class ${name} {
178 php_default_external_class_decl "${name}"
179 php_default_interface_decl "${comment}${visibility}interface ${name} {
182 php_default_attribute_declaration " ${comment}${visibility}${const}${static}${var}${name}${value};
184 php_default_enum_item_decl " const ${name}${value};${comment}
186 php_default_relation_declaration" ${comment}${visibility}${const}${static}${var}${name}${value};
188 php_get "get${Name}" final
190 php_default_operation_definition " ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
194 idl_default_src_content "#ifndef ${MODULE}_${NAME}_H
195 #define ${MODULE}_${NAME}_H
204 idl_default_interface_decl "${comment}${abstract}${local}interface ${name}${inherit} {
207 idl_default_valuetype_decl "${comment}${abstract}${custom}valuetype ${name}${inherit} {
210 idl_default_struct_decl "${comment}struct ${name} {
213 idl_default_typedef_decl "${comment}typedef ${type} ${name};
215 idl_default_exception_decl "${comment}exception ${name} {
218 idl_default_union_decl "${comment}union ${name} switch(${switch}) {
221 idl_default_enum_decl "${comment}enum ${name} {
224 idl_default_external_class_decl "${name}
225 #include \"${name}.idl\"
227 idl_default_attribute_declaration " ${comment}${readonly}${attribute}${type} ${name};
229 " ${comment}${readonly}${attribute}${stereotype}<${type}> ${name};
230 " // multiplicity * a..b
231 " ${comment}${readonly}${attribute}${stereotype}<${type},${multiplicity}> ${name};
233 idl_default_valuetype_attribute_declaration " ${comment}${visibility}${type} ${name};
235 " ${comment}${visibility}${stereotype}<${type}> ${name};
236 " // multiplicity * a..b
237 " ${comment}${visibility}${stereotype}<${type},${multiplicity}> ${name};
239 idl_default_const_declaration " ${comment}const ${type} ${name}${value};
241 " ${comment}const ${stereotype}<${type}> ${name}${value};
242 " // multiplicity * a..b
243 " ${comment}const ${stereotype}<${type},${multiplicity}> ${name}${value};
245 idl_default_enum_item_declaration " ${name},${comment}"
246 idl_default_union_item_declaration " ${comment}case ${case} : ${readonly}${type} ${name};" // multiplicity 1
247 " ${comment}case ${case} : ${readonly}${stereotype}<${type}> ${name};" // multiplicity * a..b
248 " ${comment}case ${case} : ${readonly}${stereotype}<${type},${multiplicity}> ${name};" // multiplicity N
249 idl_association_aggregation_declaration
250 " ${comment}${readonly}${attribute}${type} ${name};
252 " ${comment}${readonly}${attribute}${stereotype}<${type}> ${name};
253 " // multiplicity * a..b
254 " ${comment}${readonly}${attribute}${stereotype}<${type},${multiplicity}> ${name};
256 idl_valuetype_association_aggregation_declaration
257 " ${comment}${visibility}${type} ${name};
259 " ${comment}${visibility}${stereotype}<${type}> ${name};
260 " // multiplicity * a..b
261 " ${comment}${visibility}${stereotype}<${type},${multiplicity}> ${name};
263 idl_union_association_aggregation_declaration
264 " ${comment}case ${case} : ${readonly}${type} ${name};" // multiplicity 1
265 " ${comment}case ${case} : ${readonly}${stereotype}<${type}> ${name};" // multiplicity * a..b
266 " ${comment}case ${case} : ${readonly}${stereotype}<${type},${multiplicity}> ${name};" // multiplicity N
267 idl_get "get_${name}"
268 idl_set "set_${name}" twoways
269 idl_default_operation_declaration " ${comment}${oneway}${type} ${name}${(}${)}${raisesnl}${raises};
271 uml_get_name uml uml_set_name uml