Last change
on this file since 61 was
57,
checked in by rosiere, 17 years ago
|
- VHDL - RegisterFile_Multi_Banked (only partial_crossbar)
- SystemC - modif Component, interface and co -> ajout du type Tusage_T pour instancier un coposant mais ne demander que le VHDL ou le systemC.
- Séminaire interne
|
File size:
955 bytes
|
Line | |
---|
1 | #ifdef POSITION |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Component.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | |
---|
14 | #undef FUNCTION |
---|
15 | #define FUNCTION "Component::toXML" |
---|
16 | |
---|
17 | XML Component::toXML (void) |
---|
18 | { |
---|
19 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
20 | |
---|
21 | XML xml (_entity->get_name()); |
---|
22 | |
---|
23 | xml.balise_open ("description"); |
---|
24 | xml. insert_XML (_entity->toXML()); |
---|
25 | xml. balise_open ("architecture"); |
---|
26 | |
---|
27 | if (_list_component->empty()== false) |
---|
28 | { |
---|
29 | list<Tcomponent_t *>::iterator i = _list_component->begin(); |
---|
30 | |
---|
31 | while (i != _list_component->end()) |
---|
32 | { |
---|
33 | xml.insert_XML ((*i)->_entity->toXML_mapping()); |
---|
34 | ++i; |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | xml. balise_close (); |
---|
39 | xml.balise_close (); |
---|
40 | |
---|
41 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
42 | |
---|
43 | return xml; |
---|
44 | }; |
---|
45 | |
---|
46 | }; // end namespace behavioural |
---|
47 | }; // end namespace morpheo |
---|
48 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.