[10] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 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 | using namespace std; |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace generic { |
---|
| 15 | namespace select { |
---|
[15] | 16 | namespace select_priority_fixed { |
---|
[10] | 17 | |
---|
| 18 | string Parameters::print (uint32_t depth) |
---|
| 19 | { |
---|
[15] | 20 | log_printf(FUNC,Select_Priority_Fixed,"print","Begin"); |
---|
[10] | 21 | |
---|
[15] | 22 | XML xml ("select_priority_fixed"); |
---|
[10] | 23 | |
---|
[15] | 24 | xml.balise_open("select_priority_fixed"); |
---|
[10] | 25 | xml.singleton_begin("nb_entity "); xml.attribut("value",toString(_nb_entity )); xml.singleton_end(); |
---|
| 26 | xml.singleton_begin("encoding_one_hot"); xml.attribut("value",toString(_encoding_one_hot)); xml.singleton_end(); |
---|
| 27 | xml.singleton_begin("encoding_compact"); xml.attribut("value",toString(_encoding_compact)); xml.singleton_end(); |
---|
| 28 | xml.balise_close(); |
---|
| 29 | |
---|
[15] | 30 | log_printf(FUNC,Select_Priority_Fixed,"print","End"); |
---|
[10] | 31 | |
---|
| 32 | return xml.get_body(depth); |
---|
| 33 | }; |
---|
| 34 | |
---|
| 35 | ostream& operator<< (ostream& output_stream , |
---|
[15] | 36 | morpheo::behavioural::generic::select::select_priority_fixed::Parameters & x) |
---|
[10] | 37 | { |
---|
| 38 | output_stream << x.print(0); |
---|
| 39 | |
---|
| 40 | return output_stream; |
---|
| 41 | }; |
---|
| 42 | |
---|
[15] | 43 | }; // end namespace select_priority_fixed |
---|
[10] | 44 | }; // end namespace select |
---|
| 45 | }; // end namespace generic |
---|
| 46 | |
---|
| 47 | }; // end namespace behavioural |
---|
| 48 | }; // end namespace morpheo |
---|