[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_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace prediction_unit { |
---|
| 17 | namespace direction { |
---|
| 18 | namespace direction_glue { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Direction_Glue::print" |
---|
| 23 | std::string Parameters::print (uint32_t depth) |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Direction_Glue,FUNCTION,"Begin"); |
---|
| 26 | |
---|
| 27 | XML xml ("direction_glue"); |
---|
| 28 | |
---|
| 29 | xml.balise_open("direction_glue"); |
---|
| 30 | xml.singleton_begin("predictor_scheme"); xml.attribut("value",toString(_predictor_scheme)); xml.singleton_end(); |
---|
| 31 | xml.singleton_begin("nb_inst_predict "); xml.attribut("value",toString(_nb_inst_predict )); xml.singleton_end(); |
---|
| 32 | xml.singleton_begin("nb_inst_update "); xml.attribut("value",toString(_nb_inst_update )); xml.singleton_end(); |
---|
| 33 | xml.singleton_begin("size_address "); xml.attribut("value",toString(_size_address )); xml.singleton_end(); |
---|
| 34 | xml.singleton_begin("size_history "); xml.attribut("value",toString(_size_history )); xml.singleton_end(); |
---|
| 35 | xml.balise_close(); |
---|
| 36 | |
---|
| 37 | log_printf(FUNC,Direction_Glue,FUNCTION,"End"); |
---|
| 38 | |
---|
| 39 | return xml.get_body(depth); |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | #undef FUNCTION |
---|
| 43 | #define FUNCTION "Direction_Glue::operator<<" |
---|
| 44 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 45 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::direction_glue::Parameters & x) |
---|
| 46 | { |
---|
| 47 | log_printf(FUNC,Direction_Glue,FUNCTION,"Begin"); |
---|
| 48 | |
---|
| 49 | output_stream << x.print(0); |
---|
| 50 | |
---|
| 51 | log_printf(FUNC,Direction_Glue,FUNCTION,"End"); |
---|
| 52 | |
---|
| 53 | return output_stream; |
---|
| 54 | }; |
---|
| 55 | |
---|
| 56 | }; // end namespace direction_glue |
---|
| 57 | }; // end namespace direction |
---|
| 58 | }; // end namespace prediction_unit |
---|
| 59 | }; // end namespace front_end |
---|
| 60 | }; // end namespace multi_front_end |
---|
| 61 | }; // end namespace core |
---|
| 62 | |
---|
| 63 | }; // end namespace behavioural |
---|
| 64 | }; // end namespace morpheo |
---|