[60] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_execute_loop { |
---|
| 15 | namespace execute_loop { |
---|
| 16 | namespace register_unit { |
---|
| 17 | namespace register_unit_glue { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Register_unit_Glue::print" |
---|
[75] | 22 | std::string Parameters::print (uint32_t depth) |
---|
[60] | 23 | { |
---|
| 24 | log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); |
---|
| 25 | |
---|
| 26 | XML xml ("register_unit_glue"); |
---|
| 27 | |
---|
| 28 | xml.balise_open("register_unit_glue"); |
---|
| 29 | xml.singleton_begin("nb_ooo_engine "); xml.attribut("value",toString(_nb_ooo_engine )); xml.singleton_end(); |
---|
| 30 | xml.singleton_begin("size_general_data"); xml.attribut("value",toString(_size_general_data)); xml.singleton_end(); |
---|
| 31 | xml.singleton_begin("size_special_data"); xml.attribut("value",toString(_size_special_data)); xml.singleton_end(); |
---|
| 32 | xml.singleton_begin("nb_gpr_read "); xml.attribut("value",toString(_nb_gpr_read )); xml.singleton_end(); |
---|
| 33 | xml.singleton_begin("nb_spr_read "); xml.attribut("value",toString(_nb_spr_read )); xml.singleton_end(); |
---|
| 34 | xml.singleton_begin("nb_gpr_write "); xml.attribut("value",toString(_nb_gpr_write )); xml.singleton_end(); |
---|
| 35 | xml.singleton_begin("nb_spr_write "); xml.attribut("value",toString(_nb_spr_write )); xml.singleton_end(); |
---|
| 36 | |
---|
| 37 | xml. balise_open("multi_ooo_engine"); |
---|
| 38 | for (uint32_t i=0; i<_nb_ooo_engine; i++) |
---|
| 39 | { |
---|
| 40 | xml. balise_open_begin("ooo_engine"); |
---|
| 41 | xml. attribut("id", toString(i)); |
---|
| 42 | xml. balise_open_end(); |
---|
| 43 | xml. singleton_begin("nb_inst_insert_rob "); xml.attribut("value",toString(_nb_inst_insert_rob [i])); xml.singleton_end(); |
---|
| 44 | xml. singleton_begin("nb_inst_retire_rob "); xml.attribut("value",toString(_nb_inst_retire_rob [i])); xml.singleton_end(); |
---|
| 45 | xml. balise_close(); |
---|
| 46 | } |
---|
| 47 | xml. balise_close(); |
---|
| 48 | xml.balise_close(); |
---|
| 49 | |
---|
| 50 | log_printf(FUNC,Register_unit_Glue,FUNCTION,"End"); |
---|
| 51 | |
---|
| 52 | return xml.get_body(depth); |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | #undef FUNCTION |
---|
| 56 | #define FUNCTION "Register_unit_Glue::operator<<" |
---|
[75] | 57 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 58 | morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::register_unit_glue::Parameters & x) |
---|
[60] | 59 | { |
---|
| 60 | log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); |
---|
| 61 | |
---|
| 62 | output_stream << x.print(0); |
---|
| 63 | |
---|
| 64 | log_printf(FUNC,Register_unit_Glue,FUNCTION,"End"); |
---|
| 65 | |
---|
| 66 | return output_stream; |
---|
| 67 | }; |
---|
| 68 | |
---|
| 69 | }; // end namespace register_unit_glue |
---|
| 70 | }; // end namespace register_unit |
---|
| 71 | }; // end namespace execute_loop |
---|
| 72 | }; // end namespace multi_execute_loop |
---|
| 73 | }; // end namespace core |
---|
| 74 | }; // end namespace behavioural |
---|
| 75 | }; // end namespace morpheo |
---|