[54] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/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 multi_read_unit { |
---|
| 17 | namespace read_unit { |
---|
| 18 | namespace read_queue { |
---|
| 19 | |
---|
| 20 | |
---|
[75] | 21 | std::string Parameters::print (uint32_t depth) |
---|
[54] | 22 | { |
---|
| 23 | log_printf(FUNC,Read_queue,"print","Begin"); |
---|
| 24 | |
---|
| 25 | XML xml ("read_queue"); |
---|
| 26 | |
---|
| 27 | xml.balise_open("read_queue"); |
---|
[55] | 28 | xml.singleton_begin("size_queue "); xml.attribut("value",toString(_size_queue )); xml.singleton_end(); |
---|
[54] | 29 | xml.singleton_begin("nb_context "); xml.attribut("value",toString(_nb_context )); xml.singleton_end(); |
---|
[66] | 30 | xml.singleton_begin("nb_front_end "); xml.attribut("value",toString(_nb_front_end )); xml.singleton_end(); |
---|
| 31 | xml.singleton_begin("nb_ooo_engine "); xml.attribut("value",toString(_nb_ooo_engine )); xml.singleton_end(); |
---|
[54] | 32 | xml.singleton_begin("nb_packet "); xml.attribut("value",toString(_nb_packet )); xml.singleton_end(); |
---|
[88] | 33 | // xml.singleton_begin("size_general_data "); xml.attribut("value",toString(_size_general_data )); xml.singleton_end(); |
---|
| 34 | // xml.singleton_begin("size_special_data "); xml.attribut("value",toString(_size_special_data )); xml.singleton_end(); |
---|
[54] | 35 | xml.singleton_begin("nb_general_register"); xml.attribut("value",toString(_nb_general_register)); xml.singleton_end(); |
---|
| 36 | xml.singleton_begin("nb_special_register"); xml.attribut("value",toString(_nb_special_register)); xml.singleton_end(); |
---|
[66] | 37 | xml.singleton_begin("nb_gpr_write "); xml.attribut("value",toString(_nb_gpr_write )); xml.singleton_end(); |
---|
[54] | 38 | xml.singleton_begin("nb_spr_write "); xml.attribut("value",toString(_nb_spr_write )); xml.singleton_end(); |
---|
[88] | 39 | // xml.singleton_begin("size_store_queue "); xml.attribut("value",toString(_size_store_queue )); xml.singleton_end(); |
---|
| 40 | // xml.singleton_begin("size_load_queue "); xml.attribut("value",toString(_size_load_queue )); xml.singleton_end(); |
---|
[76] | 41 | |
---|
[54] | 42 | xml.balise_close(); |
---|
| 43 | |
---|
| 44 | log_printf(FUNC,Read_queue,"print","End"); |
---|
| 45 | |
---|
| 46 | return xml.get_body(depth); |
---|
| 47 | }; |
---|
| 48 | |
---|
[75] | 49 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 50 | morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Parameters & x) |
---|
[54] | 51 | { |
---|
| 52 | output_stream << x.print(0); |
---|
| 53 | |
---|
| 54 | return output_stream; |
---|
| 55 | }; |
---|
| 56 | |
---|
| 57 | }; // end namespace read_queue |
---|
| 58 | }; // end namespace read_unit |
---|
| 59 | }; // end namespace multi_read_unit |
---|
| 60 | }; // end namespace execute_loop |
---|
| 61 | }; // end namespace multi_execute_loop |
---|
| 62 | }; // end namespace core |
---|
| 63 | |
---|
| 64 | }; // end namespace behavioural |
---|
| 65 | }; // end namespace morpheo |
---|