Last change
on this file since 145 was
137,
checked in by rosiere, 14 years ago
|
Various modif (add test, and vhdl)
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifdef POSITION |
---|
2 | /* |
---|
3 | * $Id: Component_toXML.cpp 137 2010-02-16 12:35:48Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Component.h" |
---|
10 | #include "Common/include/Environment.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | |
---|
15 | #undef FUNCTION |
---|
16 | #define FUNCTION "Component::toXML" |
---|
17 | |
---|
18 | XML Component::toXML (void) |
---|
19 | { |
---|
20 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
21 | |
---|
22 | environment (); |
---|
23 | |
---|
24 | XML xml (_entity->get_name()); |
---|
25 | |
---|
26 | xml.balise_open_begin ("description"); |
---|
27 | xml. attribut("morpheo_version",MORPHEO_VERSION); |
---|
28 | xml.balise_open_end(); |
---|
29 | xml. insert_XML (_entity->toXML()); |
---|
30 | xml. balise_open ("architecture"); |
---|
31 | |
---|
32 | if (_list_component->empty()== false) |
---|
33 | { |
---|
34 | std::list<Tcomponent_t *>::iterator i = _list_component->begin(); |
---|
35 | |
---|
36 | while (i != _list_component->end()) |
---|
37 | { |
---|
38 | xml.insert_XML ((*i)->_entity->toXML_mapping()); |
---|
39 | ++i; |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | xml. balise_close (); |
---|
44 | xml.balise_close (); |
---|
45 | |
---|
46 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
47 | |
---|
48 | return xml; |
---|
49 | }; |
---|
50 | |
---|
51 | }; // end namespace behavioural |
---|
52 | }; // end namespace morpheo |
---|
53 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.