[74] | 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/Multi_Write_unit/Write_unit/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_write_unit { |
---|
| 17 | namespace write_unit { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Write_unit::print" |
---|
| 22 | std::string Parameters::print (uint32_t depth) |
---|
| 23 | { |
---|
| 24 | log_printf(FUNC,Write_unit,FUNCTION,"Begin"); |
---|
| 25 | |
---|
| 26 | XML xml ("write_unit"); |
---|
| 27 | |
---|
| 28 | xml.balise_open("write_unit"); |
---|
| 29 | xml.singleton_begin("size_write_queue "); xml.attribut("value",toString(_size_write_queue )); xml.singleton_end(); |
---|
| 30 | xml.singleton_begin("size_execute_queue "); xml.attribut("value",toString(_size_execute_queue )); xml.singleton_end(); |
---|
| 31 | xml.singleton_begin("nb_context "); xml.attribut("value",toString(_nb_context )); xml.singleton_end(); |
---|
| 32 | xml.singleton_begin("nb_front_end "); xml.attribut("value",toString(_nb_front_end )); xml.singleton_end(); |
---|
| 33 | xml.singleton_begin("nb_ooo_engine "); xml.attribut("value",toString(_nb_ooo_engine )); xml.singleton_end(); |
---|
| 34 | xml.singleton_begin("nb_packet "); xml.attribut("value",toString(_nb_packet )); xml.singleton_end(); |
---|
| 35 | xml.singleton_begin("size_general_data "); xml.attribut("value",toString(_size_general_data )); xml.singleton_end(); |
---|
| 36 | xml.singleton_begin("nb_general_register"); xml.attribut("value",toString(_nb_general_register)); xml.singleton_end(); |
---|
| 37 | xml.singleton_begin("size_special_data "); xml.attribut("value",toString(_size_special_data )); xml.singleton_end(); |
---|
| 38 | xml.singleton_begin("nb_special_register"); xml.attribut("value",toString(_nb_special_register)); xml.singleton_end(); |
---|
| 39 | xml.singleton_begin("nb_bypass_write "); xml.attribut("value",toString(_nb_bypass_write )); xml.singleton_end(); |
---|
| 40 | xml.balise_close(); |
---|
| 41 | |
---|
| 42 | log_printf(FUNC,Write_unit,FUNCTION,"End"); |
---|
| 43 | |
---|
| 44 | return xml.get_body(depth); |
---|
| 45 | }; |
---|
| 46 | |
---|
| 47 | #undef FUNCTION |
---|
| 48 | #define FUNCTION "Write_unit::operator<<" |
---|
| 49 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 50 | morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_write_unit::write_unit::Parameters & x) |
---|
| 51 | { |
---|
| 52 | log_printf(FUNC,Write_unit,FUNCTION,"Begin"); |
---|
| 53 | |
---|
| 54 | output_stream << x.print(0); |
---|
| 55 | |
---|
| 56 | log_printf(FUNC,Write_unit,FUNCTION,"End"); |
---|
| 57 | |
---|
| 58 | return output_stream; |
---|
| 59 | }; |
---|
| 60 | |
---|
| 61 | }; // end namespace write_unit |
---|
| 62 | }; // end namespace multi_write_unit |
---|
| 63 | }; // end namespace execute_loop |
---|
| 64 | }; // end namespace multi_execute_loop |
---|
| 65 | }; // end namespace core |
---|
| 66 | |
---|
| 67 | }; // end namespace behavioural |
---|
| 68 | }; // end namespace morpheo |
---|