1 | /* |
---|
2 | * $Id: Parameters_print.cpp 110 2009-02-19 16:31:47Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_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 meta_predictor { |
---|
19 | namespace meta_predictor_glue { |
---|
20 | |
---|
21 | |
---|
22 | #undef FUNCTION |
---|
23 | #define FUNCTION "Meta_Predictor_Glue::print" |
---|
24 | std::string Parameters::print (uint32_t depth) |
---|
25 | { |
---|
26 | log_begin(Meta_Predictor_Glue,FUNCTION); |
---|
27 | |
---|
28 | XML xml ("meta_predictor_glue"); |
---|
29 | |
---|
30 | xml.balise_open("meta_predictor_glue"); |
---|
31 | // xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end(); |
---|
32 | xml.balise_close(); |
---|
33 | |
---|
34 | log_end(Meta_Predictor_Glue,FUNCTION); |
---|
35 | |
---|
36 | return xml.get_body(depth); |
---|
37 | }; |
---|
38 | |
---|
39 | #undef FUNCTION |
---|
40 | #define FUNCTION "Meta_Predictor_Glue::operator<<" |
---|
41 | std::ostream& operator<< (std::ostream& output_stream , |
---|
42 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::meta_predictor_glue::Parameters & x) |
---|
43 | { |
---|
44 | log_begin(Meta_Predictor_Glue,FUNCTION); |
---|
45 | |
---|
46 | output_stream << x.print(0); |
---|
47 | |
---|
48 | log_end(Meta_Predictor_Glue,FUNCTION); |
---|
49 | |
---|
50 | return output_stream; |
---|
51 | }; |
---|
52 | |
---|
53 | }; // end namespace meta_predictor_glue |
---|
54 | }; // end namespace meta_predictor |
---|
55 | }; // end namespace direction |
---|
56 | }; // end namespace prediction_unit |
---|
57 | }; // end namespace front_end |
---|
58 | }; // end namespace multi_front_end |
---|
59 | }; // end namespace core |
---|
60 | |
---|
61 | }; // end namespace behavioural |
---|
62 | }; // end namespace morpheo |
---|