2 "bbfy" // bbtk::kernel::appli::bbfy
6 //class diagram settings
7 draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default show_attribute_modifiers default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_relation_modifiers default show_infonote default shadow default show_stereotype_properties default
8 //use case diagram settings
9 package_name_in_tab default show_context default auto_label_position default draw_all_relations default class_drawing_mode default shadow default show_stereotype_properties default
10 //sequence diagram settings
11 show_full_operations_definition default write_horizontally default class_drawing_mode default drawing_language default draw_all_relations default shadow default show_stereotype_properties default
12 //collaboration diagram settings
13 show_full_operations_definition default show_hierarchical_rank default write_horizontally default drawing_language default package_name_in_tab default show_context default draw_all_relations default shadow default show_stereotype_properties default
14 //object diagram settings
15 write_horizontally default package_name_in_tab default show_context default auto_label_position default draw_all_relations default shadow default show_stereotype_properties default
16 //component diagram settings
17 package_name_in_tab default show_context default auto_label_position default draw_all_relations default shadow default
18 draw_component_as_icon default show_component_req_prov default show_component_rea default show_stereotype_properties default
19 //deployment diagram settings
20 package_name_in_tab default show_context default write_horizontally default auto_label_position default draw_all_relations default shadow default
21 draw_component_as_icon default show_component_req_prov default show_component_rea default show_stereotype_properties default
22 //state diagram settings
23 package_name_in_tab default show_context default auto_label_position default write_trans_label_horizontally default show_trans_definition default draw_all_relations default shadow default
24 show_activities default region_horizontally default drawing_language default show_stereotype_properties default
25 //activity diagram settings
26 package_name_in_tab default show_context default show_opaque_action_definition default auto_label_position default write_flow_label_horizontally default draw_all_relations default shadow default
27 show_infonote default drawing_language default show_stereotype_properties default
29 classview 129666 "bbfy"
30 //class diagram settings
31 draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default show_attribute_modifiers default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_relation_modifiers default show_infonote default shadow default show_stereotype_properties default
32 //collaboration diagram settings
33 show_full_operations_definition default show_hierarchical_rank default write_horizontally default drawing_language default package_name_in_tab default show_context default draw_all_relations default shadow default show_stereotype_properties default
34 //object diagram settings
35 write_horizontally default package_name_in_tab default show_context default auto_label_position default draw_all_relations default shadow default show_stereotype_properties default
36 //sequence diagram settings
37 show_full_operations_definition default write_horizontally default class_drawing_mode default drawing_language default draw_all_relations default shadow default show_stereotype_properties default
38 //state diagram settings
39 package_name_in_tab default show_context default auto_label_position default write_trans_label_horizontally default show_trans_definition default draw_all_relations default shadow default
40 show_activities default region_horizontally default drawing_language default show_stereotype_properties default
42 //activity diagram settings
43 package_name_in_tab default show_context default show_opaque_action_definition default auto_label_position default write_flow_label_horizontally default draw_all_relations default shadow default
44 show_infonote default drawing_language default show_stereotype_properties default
45 class 152834 "bbfyException"
47 cpp_decl "${comment}${template}class ${name}${inherit} {
53 python_2_2 python_decl ""
55 explicit_switch_type ""
57 comment "=========================================================================="
58 operation 202498 "bbfyException"
59 cpp_inline public explicit_return_type ""
61 param in name "message" explicit_type "std::string"
62 cpp_decl " ${comment}${inline}${name}${(}const ${t0} & ${p0}${v0}${)}${volatile}${throw} : mMessage(message) {};
70 attribute 153730 "mMessage"
71 public explicit_type "std::string"
72 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
83 cpp_decl "${comment}${template}class ${name}${inherit} {
89 python_2_2 python_decl ""
91 explicit_switch_type ""
93 comment "=========================================================================="
94 operation 202626 "bbfy"
95 preserve_cpp_body_indent public explicit_return_type ""
97 param in name "filename" explicit_type "std::string"
98 param in name "package" explicit_type "std::string"
99 defaultvalue "\"PACKAGE_NAME\""
100 param in name "output_path" explicit_type "std::string"
102 param in name "verbose" explicit_type "bool"
104 cpp_decl " ${comment}${inline}${name}${(}const ${t0} & ${p0}${v0}, const ${t1} & ${p1}${v1}, const ${t2} & ${p2}${v2}, ${t3} ${p3}${v3}${)}${volatile}${throw};
106 cpp_def "//==========================================================================
107 //==========================================================================
109 ${comment}${inline}${class}::${name}${(}const ${t0} & ${p0}, const ${t1} & ${p1}, const ${t2} & ${p2}, ${t3} ${p3}${)}${throw}{
118 operation 202754 "CreateBlackBox"
119 preserve_cpp_body_indent public explicit_return_type "void"
121 cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract};
123 cpp_def "//==========================================================================
124 //==========================================================================
126 ${comment}${inline}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{
135 operation 202882 "ParseXML"
136 preserve_cpp_body_indent public explicit_return_type "void"
138 cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract};
140 cpp_def "//==========================================================================
141 //==========================================================================
143 ${comment}${inline}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{
152 operation 203010 "CreateHeader"
153 preserve_cpp_body_indent public explicit_return_type "void"
155 cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract};
157 cpp_def "//==========================================================================
158 //==========================================================================
160 ${comment}${inline}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{
169 operation 203138 "CreateCode"
170 preserve_cpp_body_indent public explicit_return_type "void"
172 cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract};
174 cpp_def "//==========================================================================
175 //==========================================================================
177 ${comment}${inline}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{
186 operation 203266 "WriteGenericITKFilterHeader"
187 preserve_cpp_body_indent public explicit_return_type "void"
189 cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract};
191 cpp_def "//==========================================================================
192 //==========================================================================
194 ${comment}${inline}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{
203 operation 203394 "BeginNamespace"
204 preserve_cpp_body_indent public explicit_return_type "void"
206 cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract};
208 cpp_def "//==========================================================================
209 //==========================================================================
211 ${comment}${inline}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{
220 operation 203522 "EndNamespace"
221 preserve_cpp_body_indent public explicit_return_type "void"
223 cpp_decl " ${comment}${friend}${static}${inline}${virtual}${type} ${name}${(}${)}${const}${volatile}${throw}${abstract};
225 cpp_def "//==========================================================================
226 //==========================================================================
228 ${comment}${inline}${type} ${class}::${name}${(}${)}${const}${volatile}${throw}${staticnl}{
237 attribute 153858 "mFilename"
238 private explicit_type "std::string"
239 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
247 attribute 153986 "mOutputPath"
248 private explicit_type "std::string"
249 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
257 attribute 154114 "mVerbose"
258 private explicit_type "bool"
259 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
267 attribute 154242 "mName"
268 private explicit_type "std::string"
269 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
277 class 153090 "BoxType"
278 visibility package stereotype "enum"
279 cpp_decl "${comment}enum ${name} {
285 python_2_2 python_decl ""
287 explicit_switch_type ""
289 attribute 154370 "STD"
290 public type class_ref 153090 // BoxType
291 cpp_decl " ${name}${value},${comment}"
298 attribute 154498 "itkImageToImageFilter"
299 public type class_ref 153090 // BoxType
300 cpp_decl " ${name}${value},${comment}"
307 attribute 154626 "vtkImageAlgorithm"
308 public type class_ref 153090 // BoxType
309 cpp_decl " ${name}${value},${comment}"
316 attribute 154754 "vtkPolyDataAlgorithm"
317 public type class_ref 153090 // BoxType
318 cpp_decl " ${name}${value},${comment}"
326 classrelation 141314 // mType (<directional composition>)
328 a role_name "mType" private
329 cpp default " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
331 classrelation_ref 141314 // mType (<directional composition>)
332 b parent class_ref 153090 // BoxType
335 attribute 154882 "mIsWidget"
336 private explicit_type "bool"
337 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
345 attribute 155010 "mParentBlackBox"
346 private explicit_type "std::string"
347 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
355 attribute 155138 "mItkParent"
356 private explicit_type "std::string"
357 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
365 attribute 155266 "mVtkObject"
366 private explicit_type "std::string"
367 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
375 attribute 155394 "mGeneric"
376 private explicit_type "bool"
377 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
385 attribute 155522 "mAuthor"
386 private explicit_type "std::string"
387 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
395 attribute 155650 "mDescription"
396 private explicit_type "std::string"
397 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
405 attribute 155778 "mCategory"
406 private explicit_type "std::string"
407 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
415 attribute 155906 "mPackage"
416 private explicit_type "std::string"
417 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
425 attribute 156034 "mNamespace"
426 private explicit_type "std::string"
427 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
435 attribute 156162 "mTemplateParam"
436 private explicit_type "std::string"
437 stereotype "std::vector"
438 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
446 attribute 156290 "mTemplateDeclaration"
447 private explicit_type "std::string"
448 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
456 attribute 156418 "mTemplateImplementation"
457 private explicit_type "std::string"
458 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
466 attribute 156546 "mInclude"
467 private explicit_type "std::string"
468 stereotype "std::vector"
469 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
477 attribute 156674 "mTypedef"
478 private explicit_type "std::string"
479 stereotype "std::vector"
480 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
488 attribute 156802 "mUserSetDefaultValues"
489 private explicit_type "std::string"
490 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
498 attribute 156930 "mUserInitializeProcessing"
499 private explicit_type "std::string"
500 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
508 attribute 157058 "mUserFinalizeProcessing"
509 private explicit_type "std::string"
510 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
519 visibility package stereotype "struct"
520 cpp_decl "${comment}${template}struct ${name}${inherit} {
526 python_2_2 python_decl ""
528 explicit_switch_type ""
530 attribute 157186 "name"
531 public explicit_type "std::string"
532 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
540 attribute 157314 "type"
541 public explicit_type "std::string"
542 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
550 attribute 157442 "nature"
551 public explicit_type "std::string"
552 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
560 attribute 157570 "descr"
561 public explicit_type "std::string"
562 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
570 attribute 157698 "special"
571 public explicit_type "std::string"
572 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
580 attribute 157826 "generic_type"
581 public explicit_type "std::string"
582 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
591 classrelation 141442 // mInput (<directional composition>)
593 stereotype "std::vector"
594 a role_name "mInput" private
595 cpp default " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
597 classrelation_ref 141442 // mInput (<directional composition>)
598 b parent class_ref 153218 // IO
601 classrelation 141570 // mOutput (<directional composition>)
603 stereotype "std::vector"
604 a role_name "mOutput" private
605 cpp default " ${comment}${static}${mutable}${volatile}${const}${stereotype}<${type}> ${name}${value};
607 classrelation_ref 141570 // mOutput (<directional composition>)
608 b parent class_ref 153218 // IO
611 attribute 157954 "mProcess"
612 private explicit_type "std::string"
613 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
621 attribute 158082 "mCreateWidget"
622 private explicit_type "std::string"
623 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
631 attribute 158210 "mFile"
632 private explicit_type "std::ofstream"
633 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
641 attribute 158338 "mHName"
642 private explicit_type "std::string"
643 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
651 attribute 158466 "mCxxName"
652 private explicit_type "std::string"
653 cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value};
663 deploymentview 129666 "bbfy"
664 //deployment diagram settings
665 package_name_in_tab default show_context default write_horizontally default auto_label_position default draw_all_relations default shadow default
666 draw_component_as_icon default show_component_req_prov default show_component_rea default show_stereotype_properties default
667 artifact 136322 "bbfyException"
669 cpp_h "#ifndef ${NAMESPACE}_${NAME}_H
670 #define ${NAMESPACE}_${NAME}_H
686 class_ref 152834 // bbfyException
690 artifact 136450 "bbfy"
692 cpp_h "#ifndef ${NAMESPACE}_${NAME}_H
693 #define ${NAMESPACE}_${NAME}_H
709 class_ref 152962 // bbfy
713 artifact 136578 "main"
715 cpp_src "//==========================================================================
716 //==========================================================================
718 int main(int argc, char **argv)
721 if (argc<2 || argc>5)
723 std::cerr << \"usage : \"<< argv[0] <<\" xml_file [package_name] [output_path] [-q]\" << std::endl;
729 std::string package(\"PACKAGE_NAME\");
730 std::string output_path(\"\");
732 if (argc>2) package = argv[2];
733 if (argc>3) output_path = argv[3];
734 if (argc>4) verbose = false;
736 bbfy B(argv[1],package,output_path,verbose);
738 catch (bbfyException e)
740 std::cerr << argv[0] << \" \" << argv[1] << std::endl
741 << e.mMessage << std::endl;