source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_toXML.cpp @ 57

Last change on this file since 57 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
RevLine 
[31]1#ifdef POSITION
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
[42]9#include "Behavioural/include/Component.h"
[31]10
11namespace morpheo              {
12namespace behavioural          {
13
[43]14#undef  FUNCTION
15#define FUNCTION "Component::toXML"
16
[42]17  XML Component::toXML (void)
[31]18  {
[43]19    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
20
[42]21    XML xml (_entity->get_name());
[31]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      {
[57]29        list<Tcomponent_t *>::iterator i = _list_component->begin();
[31]30
31        while (i != _list_component->end())
32          {
[57]33            xml.insert_XML ((*i)->_entity->toXML_mapping());
[31]34            ++i;
35          }
36      }
37       
38    xml.  balise_close      ();
39    xml.balise_close        ();
[43]40 
41    log_printf(FUNC,Behavioural,FUNCTION,"End");
42 
[31]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.