[10] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Select/Priority_Fixed/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | using namespace std; |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace generic { |
---|
| 15 | namespace select { |
---|
| 16 | namespace priority_fixed { |
---|
| 17 | |
---|
| 18 | string Parameters::print (uint32_t depth) |
---|
| 19 | { |
---|
| 20 | log_printf(FUNC,Priority_Fixed,"print","Begin"); |
---|
| 21 | |
---|
| 22 | XML xml ("priority_fixed"); |
---|
| 23 | |
---|
| 24 | xml.balise_open("priority_fixed"); |
---|
| 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 | |
---|
| 30 | log_printf(FUNC,Priority_Fixed,"print","End"); |
---|
| 31 | |
---|
| 32 | return xml.get_body(depth); |
---|
| 33 | }; |
---|
| 34 | |
---|
| 35 | ostream& operator<< (ostream& output_stream , |
---|
| 36 | morpheo::behavioural::generic::select::priority_fixed::Parameters & x) |
---|
| 37 | { |
---|
| 38 | output_stream << x.print(0); |
---|
| 39 | |
---|
| 40 | return output_stream; |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | }; // end namespace priority_fixed |
---|
| 44 | }; // end namespace select |
---|
| 45 | }; // end namespace generic |
---|
| 46 | |
---|
| 47 | }; // end namespace behavioural |
---|
| 48 | }; // end namespace morpheo |
---|