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