Last change
on this file since 106 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Shifter/include/Parameters.h" |
---|
[75] | 9 | #include "Behavioural/include/XML.h" |
---|
[2] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace shifter { |
---|
| 15 | |
---|
| 16 | |
---|
[75] | 17 | std::string Parameters::print (uint32_t depth) |
---|
[2] | 18 | { |
---|
[75] | 19 | XML xml ("shifter"); |
---|
| 20 | |
---|
| 21 | xml.balise_open("shifter"); |
---|
| 22 | xml.singleton_begin("size_data "); xml.attribut("value",toString(_size_data )); xml.singleton_end(); |
---|
| 23 | xml.singleton_begin("nb_port "); xml.attribut("value",toString(_nb_port )); xml.singleton_end(); |
---|
| 24 | xml.singleton_begin("shift_value"); xml.attribut("value",toString(_shift_value)); xml.singleton_end(); |
---|
| 25 | xml.singleton_begin("rotate "); xml.attribut("value",toString(_rotate )); xml.singleton_end(); |
---|
| 26 | xml.singleton_begin("direction "); xml.attribut("value",toString(_direction )); xml.singleton_end(); |
---|
| 27 | xml.singleton_begin("carry "); xml.attribut("value",toString(_carry )); xml.singleton_end(); |
---|
[2] | 28 | |
---|
[75] | 29 | return xml.get_body(depth); |
---|
[2] | 30 | }; |
---|
| 31 | |
---|
[75] | 32 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 33 | morpheo::behavioural::generic::shifter::Parameters & x) |
---|
[2] | 34 | { |
---|
| 35 | output_stream << x.print(0); |
---|
| 36 | |
---|
| 37 | return output_stream; |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace shifter |
---|
| 41 | }; // end namespace generic |
---|
| 42 | |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.