[10] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[15] | 8 | #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h" |
---|
[10] | 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace select { |
---|
[15] | 15 | namespace select_priority_fixed { |
---|
[10] | 16 | |
---|
[75] | 17 | std::string Parameters::print (uint32_t depth) |
---|
[10] | 18 | { |
---|
[15] | 19 | log_printf(FUNC,Select_Priority_Fixed,"print","Begin"); |
---|
[10] | 20 | |
---|
[15] | 21 | XML xml ("select_priority_fixed"); |
---|
[10] | 22 | |
---|
[15] | 23 | xml.balise_open("select_priority_fixed"); |
---|
[10] | 24 | xml.singleton_begin("nb_entity "); xml.attribut("value",toString(_nb_entity )); xml.singleton_end(); |
---|
| 25 | xml.singleton_begin("encoding_one_hot"); xml.attribut("value",toString(_encoding_one_hot)); xml.singleton_end(); |
---|
| 26 | xml.singleton_begin("encoding_compact"); xml.attribut("value",toString(_encoding_compact)); xml.singleton_end(); |
---|
| 27 | xml.balise_close(); |
---|
| 28 | |
---|
[15] | 29 | log_printf(FUNC,Select_Priority_Fixed,"print","End"); |
---|
[10] | 30 | |
---|
| 31 | return xml.get_body(depth); |
---|
| 32 | }; |
---|
| 33 | |
---|
[75] | 34 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 35 | morpheo::behavioural::generic::select::select_priority_fixed::Parameters & x) |
---|
[10] | 36 | { |
---|
| 37 | output_stream << x.print(0); |
---|
| 38 | |
---|
| 39 | return output_stream; |
---|
| 40 | }; |
---|
| 41 | |
---|
[15] | 42 | }; // end namespace select_priority_fixed |
---|
[10] | 43 | }; // end namespace select |
---|
| 44 | }; // end namespace generic |
---|
| 45 | |
---|
| 46 | }; // end namespace behavioural |
---|
| 47 | }; // end namespace morpheo |
---|