2 "bbRegeneratePackageDoc" // bbtk::kernel::appli::bbRegeneratePackageDoc
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 deploymentview 130050 "bbRegeneratePackageDoc"
30 //deployment diagram settings
31 package_name_in_tab default show_context default write_horizontally default auto_label_position default draw_all_relations default shadow default
32 draw_component_as_icon default show_component_req_prov default show_component_rea default show_stereotype_properties default
33 artifact 136962 "main"
35 cpp_src "//==========================================================================
37 int main(int argc, char **argv)
40 std::string pack(\"-a\");
43 pack = std::string(argv[1]);
47 pack = std::string(argv[1]);
48 std::string param(argv[2]);
49 if (param==\"-q\") bbtk::MessageManager::SetMessageLevel(\"max\",0);
50 else if (param==\"-v\") bbtk::MessageManager::SetMessageLevel(\"all\",9);
65 std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path();
66 doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
67 doc_path += \"bbdoc\";
68 doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
70 bbtk::Interpreter::Pointer I = bbtk::Interpreter::New();
71 I->SetCommandLine(true);
73 I->InterpretLine( \"exec freeze_no_error\");
76 I->InterpretLine( \"include \"+pack);
77 I->InterpretLine( \"include \"+pack+\"-appli\");
78 bbtk::Package::Pointer p = I->GetExecuter()->GetFactory()->GetPackage(pack);
80 RegenerateDoc(I->GetExecuter()->GetFactory()->GetPackage(pack),doc_path);
84 I->InterpretLine( \"include *\");
85 bbtk::Factory::PackageMapType::const_iterator i;
86 for (i = I->GetExecuter()->GetFactory()->GetPackageMap().begin();
87 i != I->GetExecuter()->GetFactory()->GetPackageMap().end();
90 if (i->second->GetName()==\"user\") continue;
91 RegenerateDoc(i->second,doc_path);
95 catch (bbtk::Exception e)
97 std::cout << \"* ERROR : \"<<e.GetErrorMessage()<<std::endl;