Last change
on this file since 91 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Rev | Line | |
---|
[88] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Core_Glue/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace core_glue { |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Core_Glue::print" |
---|
| 19 | std::string Parameters::print (uint32_t depth) |
---|
| 20 | { |
---|
| 21 | log_begin(Core_Glue,FUNCTION); |
---|
| 22 | |
---|
| 23 | XML xml ("core_glue"); |
---|
| 24 | |
---|
| 25 | xml.balise_open("core_glue"); |
---|
| 26 | // xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end(); |
---|
| 27 | xml.balise_close(); |
---|
| 28 | |
---|
| 29 | log_end(Core_Glue,FUNCTION); |
---|
| 30 | |
---|
| 31 | return xml.get_body(depth); |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | #undef FUNCTION |
---|
| 35 | #define FUNCTION "Core_Glue::operator<<" |
---|
| 36 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 37 | morpheo::behavioural::core::core_glue::Parameters & x) |
---|
| 38 | { |
---|
| 39 | log_begin(Core_Glue,FUNCTION); |
---|
| 40 | |
---|
| 41 | output_stream << x.print(0); |
---|
| 42 | |
---|
| 43 | log_end(Core_Glue,FUNCTION); |
---|
| 44 | |
---|
| 45 | return output_stream; |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | }; // end namespace core_glue |
---|
| 49 | }; // end namespace core |
---|
| 50 | |
---|
| 51 | }; // end namespace behavioural |
---|
| 52 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.