[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/Multi_OOO_Engine/OOO_Engine/OOO_Engine_Glue/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_ooo_engine { |
---|
| 15 | namespace ooo_engine { |
---|
| 16 | namespace ooo_engine_glue { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "OOO_Engine_Glue::print" |
---|
| 21 | std::string Parameters::print (uint32_t depth) |
---|
| 22 | { |
---|
| 23 | log_begin(OOO_Engine_Glue,FUNCTION); |
---|
| 24 | |
---|
| 25 | XML xml ("ooo_engine_glue"); |
---|
| 26 | |
---|
| 27 | xml.balise_open("ooo_engine_glue"); |
---|
| 28 | // xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end(); |
---|
| 29 | xml.balise_close(); |
---|
| 30 | |
---|
| 31 | log_end(OOO_Engine_Glue,FUNCTION); |
---|
| 32 | |
---|
| 33 | return xml.get_body(depth); |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | #undef FUNCTION |
---|
| 37 | #define FUNCTION "OOO_Engine_Glue::operator<<" |
---|
| 38 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 39 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::ooo_engine_glue::Parameters & x) |
---|
| 40 | { |
---|
| 41 | log_begin(OOO_Engine_Glue,FUNCTION); |
---|
| 42 | |
---|
| 43 | output_stream << x.print(0); |
---|
| 44 | |
---|
| 45 | log_end(OOO_Engine_Glue,FUNCTION); |
---|
| 46 | |
---|
| 47 | return output_stream; |
---|
| 48 | }; |
---|
| 49 | |
---|
| 50 | }; // end namespace ooo_engine_glue |
---|
| 51 | }; // end namespace ooo_engine |
---|
| 52 | }; // end namespace multi_ooo_engine |
---|
| 53 | }; // end namespace core |
---|
| 54 | |
---|
| 55 | }; // end namespace behavioural |
---|
| 56 | }; // end namespace morpheo |
---|