source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Position_toXML.cpp @ 31

Last change on this file since 31 was 31, checked in by rosiere, 17 years ago

Class Position qui encapsule la génération des fichiers de positions

File size: 777 bytes
Line 
1#ifdef POSITION
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Position.h"
10
11namespace morpheo              {
12namespace behavioural          {
13
14  XML Position::toXML (void)
15  {
16    XML xml (_entity->_name);
17   
18    xml.balise_open         ("description");
19    xml.  insert_XML        (_entity->toXML());
20    xml.  balise_open       ("architecture");
21
22    if (_list_component->empty()== false)
23      {
24        list<Entity *>::iterator i = _list_component->begin();
25
26        while (i != _list_component->end())
27          {
28            xml.insert_XML ((*i)->toXML_mapping());
29            ++i;
30          }
31      }
32       
33    xml.  balise_close      ();
34    xml.balise_close        ();
35   
36    return xml;
37  };
38
39}; // end namespace behavioural         
40}; // end namespace morpheo             
41#endif
Note: See TracBrowser for help on using the repository browser.