Last change
on this file since 96 was
82,
checked in by rosiere, 16 years ago
|
- support locale (now must "just" translate)
- update all component with new test format
- update all component with usage
- New component : decod queue and prediction_unit
|
File size:
1.0 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
[73] | 4 | * [ Description ] |
---|
[2] | 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/@DIRECTORY/include/Parameters.h" |
---|
[3] | 9 | #include "Behavioural/include/XML.h" |
---|
[2] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | @NAMESPACE_BEGIN |
---|
| 14 | |
---|
[53] | 15 | #undef FUNCTION |
---|
| 16 | #define FUNCTION "@COMPONENT::print" |
---|
[71] | 17 | std::string Parameters::print (uint32_t depth) |
---|
[2] | 18 | { |
---|
[82] | 19 | log_begin(@COMPONENT,FUNCTION); |
---|
[2] | 20 | |
---|
[3] | 21 | XML xml ("@COMPONENT_LOWER"); |
---|
[2] | 22 | |
---|
[3] | 23 | xml.balise_open("@COMPONENT_LOWER"); |
---|
[53] | 24 | // xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end(); |
---|
[3] | 25 | xml.balise_close(); |
---|
| 26 | |
---|
[82] | 27 | log_end(@COMPONENT,FUNCTION); |
---|
[2] | 28 | |
---|
[3] | 29 | return xml.get_body(depth); |
---|
[2] | 30 | }; |
---|
| 31 | |
---|
[53] | 32 | #undef FUNCTION |
---|
| 33 | #define FUNCTION "@COMPONENT::operator<<" |
---|
[73] | 34 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 35 | morpheo::behavioural::@NAMESPACE_USE::Parameters & x) |
---|
[2] | 36 | { |
---|
[82] | 37 | log_begin(@COMPONENT,FUNCTION); |
---|
[53] | 38 | |
---|
[2] | 39 | output_stream << x.print(0); |
---|
| 40 | |
---|
[82] | 41 | log_end(@COMPONENT,FUNCTION); |
---|
[53] | 42 | |
---|
[2] | 43 | return output_stream; |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | @NAMESPACE_END |
---|
| 47 | }; // end namespace behavioural |
---|
| 48 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.