[3] | 1 | #ifdef CONFIGURATION |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Configuration_Parameters.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | |
---|
[43] | 15 | #undef FUNCTION |
---|
| 16 | #define FUNCTION "Configuration_Parameters::print" |
---|
[3] | 17 | string Configuration_Parameters::print (uint32_t depth) |
---|
| 18 | { |
---|
[43] | 19 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[3] | 20 | XML * xml = new XML (_name); |
---|
| 21 | |
---|
| 22 | xml->balise_open_begin("generic"); |
---|
| 23 | xml-> attribut("name" , _name ); |
---|
| 24 | xml-> attribut("value" ,toString(_value)); |
---|
| 25 | xml-> attribut("min" ,toString(_min )); |
---|
| 26 | xml-> attribut("max" ,toString(_max )); |
---|
| 27 | xml-> attribut("step" , _step ); |
---|
| 28 | xml-> attribut("default",toString(_value)); |
---|
| 29 | xml-> attribut("level" ,toString(_level)); |
---|
| 30 | xml->balise_open_end (); |
---|
| 31 | xml-> text (_comment); |
---|
| 32 | xml->balise_close(); |
---|
| 33 | |
---|
[43] | 34 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[3] | 35 | return xml->get_body(depth); |
---|
| 36 | }; |
---|
| 37 | |
---|
[43] | 38 | #undef FUNCTION |
---|
| 39 | #define FUNCTION "Configuration_Parameters::operator<<" |
---|
[3] | 40 | ostream& operator<< (ostream& output_stream, |
---|
| 41 | morpheo::behavioural::Configuration_Parameters & x) |
---|
| 42 | { |
---|
[43] | 43 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[3] | 44 | output_stream << x.print(0); |
---|
[43] | 45 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[3] | 46 | return output_stream; |
---|
| 47 | }; |
---|
| 48 | |
---|
| 49 | }; // end namespace behavioural |
---|
| 50 | }; // end namespace morpheo |
---|
| 51 | #endif |
---|