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/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 | |
---|
20 | |
---|
21 | #undef FUNCTION |
---|
22 | #define FUNCTION "Meta_Predictor::print" |
---|
23 | std::string Parameters::print (uint32_t depth) |
---|
24 | { |
---|
25 | log_begin(Meta_Predictor,FUNCTION); |
---|
26 | |
---|
27 | XML xml ("meta_predictor"); |
---|
28 | |
---|
29 | xml.balise_open("meta_predictor"); |
---|
30 | // xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end(); |
---|
31 | xml.balise_close(); |
---|
32 | |
---|
33 | log_end(Meta_Predictor,FUNCTION); |
---|
34 | |
---|
35 | return xml.get_body(depth); |
---|
36 | }; |
---|
37 | |
---|
38 | #undef FUNCTION |
---|
39 | #define FUNCTION "Meta_Predictor::operator<<" |
---|
40 | std::ostream& operator<< (std::ostream& output_stream , |
---|
41 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::Parameters & x) |
---|
42 | { |
---|
43 | log_begin(Meta_Predictor,FUNCTION); |
---|
44 | |
---|
45 | output_stream << x.print(0); |
---|
46 | |
---|
47 | log_end(Meta_Predictor,FUNCTION); |
---|
48 | |
---|
49 | return output_stream; |
---|
50 | }; |
---|
51 | |
---|
52 | }; // end namespace meta_predictor |
---|
53 | }; // end namespace direction |
---|
54 | }; // end namespace prediction_unit |
---|
55 | }; // end namespace front_end |
---|
56 | }; // end namespace multi_front_end |
---|
57 | }; // end namespace core |
---|
58 | |
---|
59 | }; // end namespace behavioural |
---|
60 | }; // end namespace morpheo |
---|