Last change
on this file since 35 was
31,
checked in by rosiere, 17 years ago
|
Class Position qui encapsule la génération des fichiers de positions
|
File size:
898 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Interfaces.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | XML Interfaces::toXML (void) |
---|
14 | { |
---|
15 | XML xml ("interfaces"); |
---|
16 | |
---|
17 | if (_list_interface->empty()== false) |
---|
18 | { |
---|
19 | list<Interface>::iterator i = _list_interface->begin(); |
---|
20 | |
---|
21 | while (i != _list_interface->end()) |
---|
22 | { |
---|
23 | xml. insert_XML ((*i).toXML()); |
---|
24 | ++i; |
---|
25 | } |
---|
26 | } |
---|
27 | |
---|
28 | return xml; |
---|
29 | }; |
---|
30 | |
---|
31 | #ifdef POSITION |
---|
32 | XML Interfaces::toXML_mapping (void) |
---|
33 | { |
---|
34 | XML xml ("interfaces"); |
---|
35 | |
---|
36 | if (_list_interface->empty()== false) |
---|
37 | { |
---|
38 | list<Interface>::iterator i = _list_interface->begin(); |
---|
39 | |
---|
40 | while (i != _list_interface->end()) |
---|
41 | { |
---|
42 | xml. insert_XML ((*i).toXML_mapping()); |
---|
43 | ++i; |
---|
44 | } |
---|
45 | } |
---|
46 | |
---|
47 | return xml; |
---|
48 | }; |
---|
49 | #endif |
---|
50 | }; // end namespace behavioural |
---|
51 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.