Last change
on this file since 49 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
1.2 KB
|
Rev | Line | |
---|
[42] | 1 | #ifdef POSITION |
---|
[29] | 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Interfaces.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
[43] | 14 | #undef FUNCTION |
---|
| 15 | #define FUNCTION "Interfaces::toXML" |
---|
[29] | 16 | XML Interfaces::toXML (void) |
---|
| 17 | { |
---|
[43] | 18 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 19 | |
---|
[29] | 20 | XML xml ("interfaces"); |
---|
| 21 | |
---|
[31] | 22 | if (_list_interface->empty()== false) |
---|
[29] | 23 | { |
---|
[40] | 24 | list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
[29] | 25 | |
---|
[31] | 26 | while (i != _list_interface->end()) |
---|
[29] | 27 | { |
---|
[38] | 28 | xml. insert_XML ((*i)->toXML()); |
---|
[29] | 29 | ++i; |
---|
| 30 | } |
---|
| 31 | } |
---|
[43] | 32 | |
---|
| 33 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[31] | 34 | return xml; |
---|
| 35 | }; |
---|
[29] | 36 | |
---|
[43] | 37 | #undef FUNCTION |
---|
| 38 | #define FUNCTION "Interfaces::toXML_mapping" |
---|
[31] | 39 | XML Interfaces::toXML_mapping (void) |
---|
| 40 | { |
---|
[43] | 41 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 42 | |
---|
[31] | 43 | XML xml ("interfaces"); |
---|
| 44 | |
---|
| 45 | if (_list_interface->empty()== false) |
---|
| 46 | { |
---|
[40] | 47 | list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
[31] | 48 | |
---|
| 49 | while (i != _list_interface->end()) |
---|
| 50 | { |
---|
[38] | 51 | xml. insert_XML ((*i)->toXML_mapping()); |
---|
[31] | 52 | ++i; |
---|
| 53 | } |
---|
| 54 | } |
---|
[43] | 55 | |
---|
| 56 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[29] | 57 | return xml; |
---|
| 58 | }; |
---|
| 59 | }; // end namespace behavioural |
---|
| 60 | }; // end namespace morpheo |
---|
[42] | 61 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.