2 "bbPlugPackage" // bbtk::kernel::appli::bbPlugPackage
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 129794 "bbPlugPackage"
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 136706 "main"
35 cpp_src "//==========================================================================
37 int main(int argc, char **argv)
41 std::cout << \"usage : bbPlugPackage <path_to_package>\" << std::endl;
45 std::string path(argv[1]);
46 std::string fname = path + \"/bbtkPackage\";
48 if ( ! Utilities::FileExists( fname ) )
50 std::cout << \"* ERROR : The directory '\"<<path<<\"' does not contain a 'bbtkPackage' file\"
56 f.open(fname.c_str());
62 ConfigurationFile::GetInstance().AddPackagePathsAndWrite( path );
68 command += ConfigurationFile::GetInstance().Get_bin_path();
69 command += ConfigurationFile::GetInstance().Get_file_separator();
70 command += \"bbRegeneratePackageDoc\";
74 command += \" \" + pname + \" -q\";
76 if ( system ( command.c_str() ) )
78 std::cout << \"An error occured while running '\"
79 << command << \"'\" << std::endl;
89 command += ConfigurationFile::GetInstance().Get_bin_path();
90 command += ConfigurationFile::GetInstance().Get_file_separator();
91 command += \"bbRegenerateBoxesLists\";
97 if ( ! system ( command.c_str() ) )
99 std::cout << \"Package '\"
100 << pname << \"' successfully plugged in\" << std::endl;
104 std::cout << \"An error occured while running '\"
105 << command << \"'\" << std::endl;