Last change
on this file since 69 was
53,
checked in by rosiere, 17 years ago
|
- Banc de registre multi banc
- Banc de registre générique.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/@DIRECTORY/include/Parameters.h" |
---|
[3] | 9 | #include "Behavioural/include/XML.h" |
---|
[2] | 10 | using namespace std; |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | @NAMESPACE_BEGIN |
---|
| 15 | |
---|
[53] | 16 | #undef FUNCTION |
---|
| 17 | #define FUNCTION "@COMPONENT::print" |
---|
[2] | 18 | string Parameters::print (uint32_t depth) |
---|
| 19 | { |
---|
[53] | 20 | log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); |
---|
[2] | 21 | |
---|
[3] | 22 | XML xml ("@COMPONENT_LOWER"); |
---|
[2] | 23 | |
---|
[3] | 24 | xml.balise_open("@COMPONENT_LOWER"); |
---|
[53] | 25 | // xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end(); |
---|
[3] | 26 | xml.balise_close(); |
---|
| 27 | |
---|
[53] | 28 | log_printf(FUNC,@COMPONENT,FUNCTION,"End"); |
---|
[2] | 29 | |
---|
[3] | 30 | return xml.get_body(depth); |
---|
[2] | 31 | }; |
---|
| 32 | |
---|
[53] | 33 | #undef FUNCTION |
---|
| 34 | #define FUNCTION "@COMPONENT::operator<<" |
---|
[2] | 35 | ostream& operator<< (ostream& output_stream , |
---|
| 36 | morpheo::behavioural::@NAMESPACE_USE::Parameters & x) |
---|
| 37 | { |
---|
[53] | 38 | log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); |
---|
| 39 | |
---|
[2] | 40 | output_stream << x.print(0); |
---|
| 41 | |
---|
[53] | 42 | log_printf(FUNC,@COMPONENT,FUNCTION,"End"); |
---|
| 43 | |
---|
[2] | 44 | return output_stream; |
---|
| 45 | }; |
---|
| 46 | |
---|
| 47 | @NAMESPACE_END |
---|
| 48 | }; // end namespace behavioural |
---|
| 49 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.