Last change
on this file since 103 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.1 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/Counter/include/Parameters.h" |
---|
[3] | 9 | #include "Behavioural/include/XML.h" |
---|
[2] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace counter { |
---|
| 15 | |
---|
| 16 | |
---|
[75] | 17 | std::string Parameters::print (uint32_t depth) |
---|
[2] | 18 | { |
---|
| 19 | log_printf(FUNC,Counter,"print","Begin"); |
---|
| 20 | |
---|
[3] | 21 | XML xml ("counter"); |
---|
[2] | 22 | |
---|
[3] | 23 | xml.balise_open("counter"); |
---|
| 24 | xml. singleton_begin("size_data"); |
---|
| 25 | xml. attribut("value",toString(_size_data)); |
---|
| 26 | xml. singleton_end(); |
---|
| 27 | xml. singleton_begin("nb_port "); |
---|
| 28 | xml. attribut("value",toString(_nb_port)); |
---|
| 29 | xml. singleton_end(); |
---|
| 30 | xml.balise_close(); |
---|
| 31 | |
---|
[2] | 32 | log_printf(FUNC,Counter,"print","End"); |
---|
| 33 | |
---|
[3] | 34 | return xml.get_body(depth); |
---|
[2] | 35 | }; |
---|
| 36 | |
---|
[75] | 37 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 38 | morpheo::behavioural::generic::counter::Parameters & x) |
---|
[2] | 39 | { |
---|
| 40 | output_stream << x.print(0); |
---|
| 41 | |
---|
| 42 | return output_stream; |
---|
| 43 | }; |
---|
| 44 | |
---|
| 45 | }; // end namespace counter |
---|
| 46 | }; // end namespace generic |
---|
| 47 | |
---|
| 48 | }; // end namespace behavioural |
---|
| 49 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.