Last change
on this file since 29 was
29,
checked in by rosiere, 17 years ago
|
Changement de classes de gestions des Interfaces.
-> simplification pour les déclarations de ports, application pour le composant Select_Priority_Fixed.
-> !!! essayer de supprimer la redondance dans les fichierx xxx_vhdl_testbench_transition.cpp
|
File size:
881 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Interface.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | XML Interface::toXML (void) |
---|
14 | { |
---|
15 | XML xml ("interface"); |
---|
16 | |
---|
17 | xml.balise_open_begin ("interface"); |
---|
18 | xml. attribut ("name" ,_name ); |
---|
19 | xml. attribut ("direction" ,toString(_direction )); |
---|
20 | xml. attribut ("localisation",toString(_localisation)); |
---|
21 | xml.balise_open_end (); |
---|
22 | xml. text (get_comment()); |
---|
23 | |
---|
24 | if (_list_signal.empty()== false) |
---|
25 | { |
---|
26 | list<Signal>::iterator i = _list_signal.begin(); |
---|
27 | |
---|
28 | while (i != _list_signal.end()) |
---|
29 | { |
---|
30 | xml. insert_XML ((*i).toXML()); |
---|
31 | ++i; |
---|
32 | } |
---|
33 | } |
---|
34 | |
---|
35 | xml.balise_close (); |
---|
36 | |
---|
37 | return xml; |
---|
38 | }; |
---|
39 | |
---|
40 | }; // end namespace behavioural |
---|
41 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.