1 | #ifdef POSITION |
---|
2 | /* |
---|
3 | * $Id: Interfaces_toXML.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Interfaces.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | |
---|
14 | #undef FUNCTION |
---|
15 | #define FUNCTION "Interfaces::toXML" |
---|
16 | XML Interfaces::toXML (void) |
---|
17 | { |
---|
18 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
19 | |
---|
20 | XML xml ("interfaces"); |
---|
21 | |
---|
22 | if (_list_interface->empty()== false) |
---|
23 | { |
---|
24 | std::list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
25 | |
---|
26 | while (i != _list_interface->end()) |
---|
27 | { |
---|
28 | xml. insert_XML ((*i)->toXML()); |
---|
29 | ++i; |
---|
30 | } |
---|
31 | } |
---|
32 | |
---|
33 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
34 | return xml; |
---|
35 | }; |
---|
36 | |
---|
37 | #undef FUNCTION |
---|
38 | #define FUNCTION "Interfaces::toXML_mapping" |
---|
39 | XML Interfaces::toXML_mapping (void) |
---|
40 | { |
---|
41 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
42 | |
---|
43 | XML xml ("interfaces"); |
---|
44 | |
---|
45 | if (_list_interface->empty()== false) |
---|
46 | { |
---|
47 | std::list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
48 | |
---|
49 | while (i != _list_interface->end()) |
---|
50 | { |
---|
51 | xml. insert_XML ((*i)->toXML_mapping()); |
---|
52 | ++i; |
---|
53 | } |
---|
54 | } |
---|
55 | |
---|
56 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
57 | return xml; |
---|
58 | }; |
---|
59 | }; // end namespace behavioural |
---|
60 | }; // end namespace morpheo |
---|
61 | #endif |
---|