diff --git a/models/128130.diagram b/models/128130.diagram new file mode 100644 index 0000000..897a796 --- /dev/null +++ b/models/128130.diagram @@ -0,0 +1,193 @@ +format 224 + +classcanvas 128002 class_ref 128130 // Bankomat + classdiagramsettings member_max_width 0 end + xyz 305 271.3 2000 +end +classcanvas 128130 class_ref 128258 // Klient + classdiagramsettings member_max_width 0 end + xyz 508.2 268.5 2000 +end +classcanvas 128258 class_ref 128386 // Bank + classdiagramsettings member_max_width 0 end + xyz 60.9 433.5 2000 +end +classcanvas 128386 class_ref 128514 // Serwisant + classdiagramsettings member_max_width 0 end + xyz 391.1 209.7 2000 +end +classcanvas 128514 class_ref 128642 // Konto + classdiagramsettings member_max_width 0 end + xyz 663.3 269 2000 +end +classcanvas 128770 class_ref 128770 // Kaseta + classdiagramsettings member_max_width 0 end + xyz 311.6 523.7 2000 +end +classcanvas 128898 class_ref 128898 // Karta + classdiagramsettings member_max_width 0 end + xyz 777.1 269.8 2000 +end +classcanvas 128899 class_ref 128003 // Operator + classdiagramsettings member_max_width 0 end + xyz 135.9 209.1 2000 +end +classcanvas 129026 class_ref 129026 // Potwierdzenie + classdiagramsettings member_max_width 0 end + xyz 616.5 594.8 2000 +end +classcanvas 129154 class_ref 129154 // KodDoladowania + classdiagramsettings member_max_width 0 end + xyz 358.3 596.3 2000 +end +classcanvas 129282 class_ref 129282 // KluczSerwisanta + classdiagramsettings member_max_width 0 end + xyz 632.1 200.5 2000 +end +classcanvas 129410 class_ref 129410 // SzufladkaNaBanknoty + classdiagramsettings member_max_width 0 end + xyz 148.4 523.2 2000 +end +classcanvas 129538 class_ref 129538 // SystemBankowy + classdiagramsettings member_max_width 0 end + xyz 145.7 369.6 2000 +end +classcanvas 129666 class_ref 129666 // Przelew + classdiagramsettings member_max_width 0 end + xyz 487.7 435.3 2000 +end +classcanvas 129794 class_ref 129794 // Wyplata + classdiagramsettings member_max_width 0 end + xyz 711 443 2000 +end +classcanvas 129922 class_ref 129922 // Zakup + classdiagramsettings member_max_width 0 end + xyz 384.6 489.1 2000 +end +classcanvas 130050 class_ref 130050 // UzupelnianiePieniedzy + classdiagramsettings member_max_width 0 end + xyz 366.2 54.4 2000 +end +classcanvas 130178 class_ref 130178 // UzupelnianiePapieru + classdiagramsettings member_max_width 0 end + xyz 561.5 76.3 2000 +end +classcanvas 130306 class_ref 130306 // Wplata + classdiagramsettings member_max_width 0 end + xyz 537.3 399.1 2000 +end +classcanvas 130434 class_ref 130434 // SprawdzanieStanuKonta + classdiagramsettings member_max_width 0 end + xyz 619.7 329.9 2000 +end +relationcanvas 128515 relation_ref 128259 // + from ref 128899 z 2001 label "Zarzadza>" italic max_width 255 xyz 266 213.5 3000 to ref 128386 + no_role_a no_role_b + multiplicity_a_pos 366 233 3000 multiplicity_b_pos 203 233 3000 +end +relationcanvas 129283 relation_ref 128899 // posiada> + from ref 128130 z 2001 label "posiada>" italic max_width 255 xyz 584 274 3000 to ref 128514 + no_role_a no_role_b + multiplicity_a_pos 636 293 3000 multiplicity_b_pos 560 292 3000 +end +relationcanvas 129411 relation_ref 129027 // + from ref 128002 z 2001 label "dokonuje>" italic max_width 255 xyz 347 384 3000 to ref 129922 + no_role_a no_role_b + multiplicity_a_pos 372 473 3000 multiplicity_b_pos 330 312 3000 +end +relationcanvas 129795 relation_ref 129283 // dokonuje> + from ref 128002 z 2001 label "dokonuje>" italic max_width 255 xyz 401 359 3000 to ref 129666 + no_role_a no_role_b + multiplicity_a_pos 469 449 3000 multiplicity_b_pos 364 319 3000 +end +relationcanvas 129923 relation_ref 129411 // dokonuje> + from ref 128002 z 2001 label "dokonuje>" italic max_width 255 xyz 428 341.5 3000 to ref 130306 + no_role_a no_role_b + multiplicity_a_pos 510 413 3000 multiplicity_b_pos 377 316 3000 +end +relationcanvas 130051 relation_ref 129539 // dokonuje> + from ref 128002 z 2001 label "dokonuje>" italic max_width 255 xyz 468.5 300.5 3000 to ref 130434 + no_role_a no_role_b + multiplicity_a_pos 593 342 3000 multiplicity_b_pos 378 301 3000 +end +relationcanvas 130179 relation_ref 129667 // dokonuje> + from ref 128002 z 2001 label "dokonuje>" italic max_width 255 xyz 515.5 362.5 3000 to ref 129794 + no_role_a no_role_b + multiplicity_a_pos 685 458 3000 multiplicity_b_pos 378 312 3000 +end +relationcanvas 130435 relation_ref 129795 // + from ref 128386 z 2001 label "posiada>" italic max_width 255 xyz 521.5 209 3000 to ref 129282 + no_role_a no_role_b + multiplicity_a_pos 619 226 3000 multiplicity_b_pos 466 231 3000 +end +relationcanvas 130819 relation_ref 130051 // dokonuje> + from ref 128386 z 2001 label "dokonuje>" italic max_width 255 xyz 497 148 3000 to ref 130178 + no_role_a no_role_b + multiplicity_a_pos 580 113 3000 multiplicity_b_pos 458 211 3000 +end +relationcanvas 130947 relation_ref 130179 // dokonuje> + from ref 128386 z 2001 label "dokonuje>" italic max_width 255 xyz 402 137 3000 to ref 130050 + no_role_a no_role_b + multiplicity_a_pos 417 96 3000 multiplicity_b_pos 412 193 3000 +end +relationcanvas 131075 relation_ref 130307 // posiada + from ref 128770 z 2001 label "posiada" italic max_width 255 xyz 315.5 403 3000 to ref 128002 + no_role_a no_role_b + multiplicity_a_pos 323 312 3000 multiplicity_b_pos 321 508 3000 +end +relationcanvas 131203 relation_ref 130435 // korzysta> + from ref 128258 z 2001 label "korzysta>" italic max_width 255 xyz 109 409.5 3000 to ref 129538 + no_role_a no_role_b + multiplicity_a_pos 149 407 3000 multiplicity_b_pos 111 440 3000 +end +relationcanvas 131459 relation_ref 130563 // +using namespace std;" + +"list" "#include +using namespace std;" + +"map" "#include +using namespace std;" + +"string" "#include +using namespace std;" + diff --git a/models/domain-model.png b/models/domain-model.png new file mode 100644 index 0000000..4c17b63 Binary files /dev/null and b/models/domain-model.png differ diff --git a/models/generation_settings b/models/generation_settings new file mode 100644 index 0000000..2fa5995 --- /dev/null +++ b/models/generation_settings @@ -0,0 +1,332 @@ + + + cpp_h_extension "h" cpp_src_extension "cpp" cpp_h_add_extensions "" cpp_src_add_extensions "" java_extension "java" php_extension "php" python_extension "py" idl_extension "idl" + cpp_inline_dont_force_incl_in_h + + type_forms 15 // uml cpp java idl cpp_in cpp_out cpp_inout cpp_return + "void" "void" "void" "void" "${type}" "${type} &" "${type}" "${type}" + "any" "void *" "Object" "any" "const ${type}" "${type}" "${type} &" "${type}" + "bool" "bool" "boolean" "boolean" "${type}" "${type} &" "${type} &" "${type}" + "char" "char" "char" "char" "${type}" "${type} &" "${type} &" "${type}" + "uchar" "unsigned char" "char" "octet" "${type}" "${type} &" "${type} &" "${type}" + "byte" "unsigned char" "byte" "octet" "${type}" "${type} &" "${type} &" "${type}" + "short" "short" "short" "short" "${type}" "${type} &" "${type} &" "${type}" + "ushort" "unsigned short" "short" "unsigned short" "${type}" "${type} &" "${type} &" "${type}" + "int" "int" "int" "long" "${type}" "${type} &" "${type} &" "${type}" + "uint" "unsigned int" "int" "unsigned long" "${type}" "${type} &" "${type} &" "${type}" + "long" "long" "long" "long" "${type}" "${type} &" "${type} &" "${type}" + "ulong" "unsigned long" "long" "unsigned long" "${type}" "${type} &" "${type} &" "${type}" + "float" "float" "float" "float" "${type}" "${type} &" "${type} &" "${type}" + "double" "double" "double" "double" "${type}" "${type} &" "${type} &" "${type}" + "string" "string" "String" "string" "${type}" "${type} &" "${type} &" "${type}" + + relations_stereotypes 5 // uml cpp java pythonidl + "sequence" "vector" "Vector" "list" "sequence" + "vector" "vector" "Vector" "list" "sequence" + "list" "list" "List" "list" "sequence" + "set" "set" "Set" "set" "sequence" + "map" "map" "Map" "dict" "sequence" + + classes_stereotypes 17 // uml cpp java php python idl + "class" "class" "class" "class" "class" "valuetype" + "trait" "class" "class" "trait" "class" "valuetype" + "interface" "class" "interface" "interface" "class" "interface" + "exception" "class" "class" "class" "class" "exception" + "enum" "enum" "enum" "enum" "enum" "enum" + "enum_class" "enum_class" "enum" "enum" "enum" "enum" + "enum_pattern" "enum" "enum_pattern" "enum" "enum" "enum" + "struct" "struct" "class" "class" "class" "struct" + "union" "union" "class" "class" "class" "union" + "typedef" "typedef" "ignored" "ignored" "ignored" "typedef" + "template_typedef" "template_typedef" "ignored" "ignored" "ignored" "ignored" + "boundary" "class" "class" "class" "class" "interface" + "control" "class" "class" "class" "class" "valuetype" + "entity" "class" "class" "class" "class" "valuetype" + "actor" "ignored" "ignored" "ignored" "ignored" "ignored" + "@interface" "ignored" "@interface" "ignored" "ignored" "ignored" + "stereotype" "ignored" "ignored" "ignored" "ignored" "ignored" + + cpp_enum_default_type_forms "${type}" "${type} &" "${type} &" "${type}" // in out inout return + other_cpp_types_default_type_forms "const ${type} &" "${type} &" "${type} &" "${type}" // in out inout return + + cpp_default_h_content "#ifndef ${NAMESPACE}_${NAME}_H +#define ${NAMESPACE}_${NAME}_H + +${comment} +${includes} +${declarations} +${namespace_start} +${definition} +${namespace_end} +#endif +" + cpp_default_src_content "${comment} +${includes} +${namespace_start} +${members} +${namespace_end}" + cpp_default_class_decl "${comment}${template}class ${name}${inherit} { +${members}}; +${inlines} +" + cpp_default_external_class_decl "${name} +#include <${name}.h> +" + cpp_default_struct_decl "${comment}${template}struct ${name}${inherit} { +${members}}; +${inlines} +" + cpp_default_union_decl "${comment}${template}union ${name} { +${members}}; +${inlines} +" + cpp_default_enum_decl "${comment}enum ${name} { +${items}}; +" + cpp_default_enumclass_decl "${comment}enum class ${name} { +${items}}; +" + cpp_default_typedef_decl "${comment}typedef ${type} ${name}; +"cpp_default_template_typedef_decl "${comment}${template}using ${name} = ${inherit}; +" + cpp_default_attribute_declaration " ${comment}${static}${thread_local}${mutable}${volatile}${const}${type} ${name}${value}; +" // multiplicity 1 + " ${comment}${static}${thread_local}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value}; +" // multiplicity * a..b + " ${comment}${static}${thread_local}${mutable}${volatile}${const}${type} ${name}${multiplicity}${value}; +" // multiplicity [..] + cpp_default_enum_item_declaration " ${name}${value},${comment}" + cpp_association_aggregation_declaration + " ${comment}${static}${thread_local}${mutable}${volatile}${const}${type} * ${name}${value}; +" // multiplicity 1 + " ${comment}${static}${thread_local}${mutable}${volatile}${const}${stereotype}<${type} *> ${name}${value}; +" // multiplicity * a..b + " ${comment}${static}${thread_local}${mutable}${volatile}${const}${type} * ${name}${multiplicity}${value}; +" // multiplicity [..] + cpp_aggregation_by_value_declaration + " ${comment}${static}${thread_local}${mutable}${volatile}${const}${type} ${name}${value}; +" // multiplicity 1 + " ${comment}${static}${thread_local}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value}; +" // multiplicity * a..b + " ${comment}${static}${thread_local}${mutable}${volatile}${const}${type} ${name}${multiplicity}${value}; +" // multiplicity [..] + cpp_get "get_${name}" inline const value_const public + cpp_set "set_${name}" public + cpp_default_operation_declaration " ${comment}${friend}${static}${inline}${virtual}${typeprefix}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract}; +" + cpp_default_operation_definition "${comment}${inline}${typeprefix}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{ + ${body}} +" + cpp_indent_visibility " " cpp_indent_friendclass " " cpp_indent_subclass " " + java_default_src_content "${comment} +${package} +${imports} +${definition}" + java_default_class_decl "${comment}${@}${visibility}${static}${final}${abstract}class ${name}${extends}${implements} { +${members}} +" + java_default_external_class_decl "${name}" + java_default_interface_decl "${comment}${@}${visibility}${static}interface ${name}${extends} { +${members}} +" + java5_default_enum_decl "${comment}${@}${visibility}${static}${final}${abstract}enum ${name}${implements} { +${items}; +${members}} +" + java_default_enum_decl "${comment}${@}${visibility}${static}$final class ${name} { +${members} + private final int value; + + public int value() { + return value; + } + + public static ${name} fromInt(int value) { + switch (value) { +${cases} default: throw new Error(); + } + + } + private ${name}(int v) { value = v; }; +} +" + java_default_attribute_declaration " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type} ${name}${value}; +" // multiplicity 1 + " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${stereotype}<${type}> ${name}${value}; +" // multiplicity * a..b + " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type}${multiplicity} ${name}${value}; +" // multiplicity N + java5_default_enum_item_declaration " ${@}${name}${value},${comment}" + java_default_enum_item_declaration " ${comment}${@}public static final int _${name}${value}; +public static final ${class} ${name} = new ${class}(_${name}); +" + java_default_enum_case " case _${name}: return ${name}; +" + java_association_aggregation_declaration + " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type} ${name}${value}; +" // multiplicity 1 + " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${stereotype}<${type}> ${name}${value}; +" // multiplicity * a..b + " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type}${multiplicity} ${name}${value}; +" // multiplicity N + java_get "get${Name}" final public + java_set "set${Name}" public + java_default_operation_definition " ${comment}${@}${visibility}${final}${static}${abstract}${synchronized}${type} ${name}${(}${)}${throws}${staticnl}{ + ${body}} +" + php_default_src_content " +" + php_default_class_decl "${comment}${final}${abstract}class ${name}${extends}${implements} { +${members}} +" + php_default_enum_decl "${comment}${visibility}final class ${name} { +${items}} +" + php_default_external_class_decl "${name}" + php_default_interface_decl "${comment}interface ${name}${extends} { +${members}} +" + php_default_trait_decl "${comment}trait ${name} { +${members}} +" + php_default_attribute_declaration " ${comment}${visibility}${const}${static}${var}${name}${value}; +" + php_default_enum_item_decl " const ${name}${value};${comment} +" + php_default_relation_declaration" ${comment}${visibility}${const}${static}${var}${name}${value}; +" + php_get "get${Name}" final + php_set "set${Name}" + php_default_operation_definition " ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}${type} +{ + ${body}} +" + php_param_typed php_out_inout_by_ref python_2_2 + python_indent_step " " + python_default_src_content "${comment} +${import} +${definition}" + python_default_class_decl "class ${name}${inherit}: +${docstring}${members} +" + python_default_enum_decl "class ${name}: +${docstring}${members} +" + python_default_external_class_decl "${name}" + python_default_attribute_declaration "${comment}${self}${name} = ${value} +" // multiplicity 1 + "${comment}${self}${name} = ${stereotype}() +" // multiplicity != 1 + python_default_enum_item_decl "${comment}${self}${name} = ${value} +" + python_default_relation_declaration"${comment}${self}${name} = ${value} +" // multiplicity 1 + "${comment}${self}${name} = ${stereotype}() +" // multiplicity != 1 + python_default_composition_declaration"${comment}${self}${name} = ${type}() +" // multiplicity 1 + "${comment}${self}${name} = ${stereotype}() +" // multiplicity != 1 + python_default_operation_definition "${@}${static}${abstract}def ${name}${(}${)}: +${docstring}${body} +" + python_default_initoperation_definition "${@}${static}${abstract}def ${name}${(}${p0}${v0}${)}: +${docstring}super(${class}, ${p0}).__init__() +${body} +" + python_get "get${Name}" + python_set "set${Name}" + idl_default_src_content "#ifndef ${MODULE}_${NAME}_H +#define ${MODULE}_${NAME}_H + +${comment} +${includes} +${module_start} +${definition} +${module_end} +#endif +" + idl_default_interface_decl "${comment}${abstract}${local}interface ${name}${inherit} { +${members}}; +" + idl_default_valuetype_decl "${comment}${abstract}${custom}valuetype ${name}${inherit} { +${members}}; +" + idl_default_struct_decl "${comment}struct ${name} { +${members}}; +" + idl_default_typedef_decl "${comment}typedef ${type} ${name}; +" + idl_default_exception_decl "${comment}exception ${name} { +${members}}; +" + idl_default_union_decl "${comment}union ${name} switch(${switch}) { +${members}}; +" + idl_default_enum_decl "${comment}enum ${name} { +${items}}; +" + idl_default_external_class_decl "${name} +#include \"${name}.idl\" +" + idl_default_attribute_declaration " ${comment}${readonly}${attribute}${type} ${name}; +" // multiplicity 1 + " ${comment}${readonly}${attribute}${stereotype}<${type}> ${name}; +" // multiplicity * a..b + " ${comment}${readonly}${attribute}${stereotype}<${type},${multiplicity}> ${name}; +" // multiplicity N + idl_default_valuetype_attribute_declaration " ${comment}${visibility}${type} ${name}; +" // multiplicity 1 + " ${comment}${visibility}${stereotype}<${type}> ${name}; +" // multiplicity * a..b + " ${comment}${visibility}${stereotype}<${type},${multiplicity}> ${name}; +" // multiplicity N + idl_default_const_declaration " ${comment}const ${type} ${name}${value}; +" // multiplicity 1 + " ${comment}const ${stereotype}<${type}> ${name}${value}; +" // multiplicity * a..b + " ${comment}const ${stereotype}<${type},${multiplicity}> ${name}${value}; +" // multiplicity N + idl_default_enum_item_declaration " ${name},${comment}" + idl_default_union_item_declaration " ${comment}case ${case} : ${readonly}${type} ${name};" // multiplicity 1 + " ${comment}case ${case} : ${readonly}${stereotype}<${type}> ${name};" // multiplicity * a..b + " ${comment}case ${case} : ${readonly}${stereotype}<${type},${multiplicity}> ${name};" // multiplicity N + idl_association_aggregation_declaration + " ${comment}${readonly}${attribute}${type} ${name}; +" // multiplicity 1 + " ${comment}${readonly}${attribute}${stereotype}<${type}> ${name}; +" // multiplicity * a..b + " ${comment}${readonly}${attribute}${stereotype}<${type},${multiplicity}> ${name}; +" // multiplicity N + idl_valuetype_association_aggregation_declaration + " ${comment}${visibility}${type} ${name}; +" // multiplicity 1 + " ${comment}${visibility}${stereotype}<${type}> ${name}; +" // multiplicity * a..b + " ${comment}${visibility}${stereotype}<${type},${multiplicity}> ${name}; +" // multiplicity N + idl_union_association_aggregation_declaration + " ${comment}case ${case} : ${readonly}${type} ${name};" // multiplicity 1 + " ${comment}case ${case} : ${readonly}${stereotype}<${type}> ${name};" // multiplicity * a..b + " ${comment}case ${case} : ${readonly}${stereotype}<${type},${multiplicity}> ${name};" // multiplicity N + idl_get "get_${name}" + idl_set "set_${name}" twoways + idl_default_operation_declaration " ${comment}${oneway}${type} ${name}${(}${)}${raisesnl}${raises}; +" + mysqldefault_src_content "${comment}CREATE DATABASE IF NOT EXISTS ${name}; +use ${name}; + +${definition}" + mysql_default_table_decl "DROP TABLE IF EXISTS ${name}; +CREATE TABLE ${name} ${definition}${comment}; +" + mysql_default_column_decl " ${name} ${type}${notnull}${default}${autoincr}${comment}" + mysql_default_key_decl " ${constraint}${modifier}KEY${name}${type} (${columns})${ref}${comment}" + uml_get_name uml uml_set_name uml +end