[78] | 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_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_ooo_engine { |
---|
| 15 | namespace ooo_engine { |
---|
| 16 | namespace rename_unit { |
---|
| 17 | namespace register_translation_unit { |
---|
| 18 | namespace register_translation_unit_glue { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Register_translation_unit_Glue::print" |
---|
| 23 | std::string Parameters::print (uint32_t depth) |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"Begin"); |
---|
| 26 | |
---|
| 27 | XML xml ("register_translation_unit_glue"); |
---|
| 28 | |
---|
| 29 | xml.balise_open("register_translation_unit_glue"); |
---|
| 30 | xml.singleton_begin("nb_inst_insert"); xml.attribut("value",toString(_nb_inst_insert)); xml.singleton_end(); |
---|
| 31 | xml.singleton_begin("nb_inst_retire"); xml.attribut("value",toString(_nb_inst_retire)); xml.singleton_end(); |
---|
| 32 | xml.balise_close(); |
---|
| 33 | |
---|
| 34 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"End"); |
---|
| 35 | |
---|
| 36 | return xml.get_body(depth); |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | #undef FUNCTION |
---|
| 40 | #define FUNCTION "Register_translation_unit_Glue::operator<<" |
---|
| 41 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 42 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_translation_unit_glue::Parameters & x) |
---|
| 43 | { |
---|
| 44 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"Begin"); |
---|
| 45 | |
---|
| 46 | output_stream << x.print(0); |
---|
| 47 | |
---|
| 48 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"End"); |
---|
| 49 | |
---|
| 50 | return output_stream; |
---|
| 51 | }; |
---|
| 52 | |
---|
| 53 | }; // end namespace register_translation_unit_glue |
---|
| 54 | }; // end namespace register_translation_unit |
---|
| 55 | }; // end namespace rename_unit |
---|
| 56 | }; // end namespace ooo_engine |
---|
| 57 | }; // end namespace multi_ooo_engine |
---|
| 58 | }; // end namespace core |
---|
| 59 | |
---|
| 60 | }; // end namespace behavioural |
---|
| 61 | }; // end namespace morpheo |
---|