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_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.singleton_begin("size_general_register"); xml.attribut("value",toString(_size_general_register)); xml.singleton_end(); |
---|
33 | xml.singleton_begin("size_special_register"); xml.attribut("value",toString(_size_special_register)); xml.singleton_end(); |
---|
34 | xml.balise_close(); |
---|
35 | |
---|
36 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"End"); |
---|
37 | |
---|
38 | return xml.get_body(depth); |
---|
39 | }; |
---|
40 | |
---|
41 | #undef FUNCTION |
---|
42 | #define FUNCTION "Register_translation_unit_Glue::operator<<" |
---|
43 | std::ostream& operator<< (std::ostream& output_stream , |
---|
44 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_translation_unit_glue::Parameters & x) |
---|
45 | { |
---|
46 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"Begin"); |
---|
47 | |
---|
48 | output_stream << x.print(0); |
---|
49 | |
---|
50 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"End"); |
---|
51 | |
---|
52 | return output_stream; |
---|
53 | }; |
---|
54 | |
---|
55 | }; // end namespace register_translation_unit_glue |
---|
56 | }; // end namespace register_translation_unit |
---|
57 | }; // end namespace rename_unit |
---|
58 | }; // end namespace ooo_engine |
---|
59 | }; // end namespace multi_ooo_engine |
---|
60 | }; // end namespace core |
---|
61 | |
---|
62 | }; // end namespace behavioural |
---|
63 | }; // end namespace morpheo |
---|