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

Last change on this file since 146 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
RevLine 
[31]1#ifdef POSITION
2/*
3 * $Id: Component_toXML.cpp 137 2010-02-16 12:35:48Z rosiere $
4 *
[137]5 * [ Description ]
[31]6 *
7 */
8
[42]9#include "Behavioural/include/Component.h"
[137]10#include "Common/include/Environment.h"
[31]11
12namespace morpheo              {
13namespace behavioural          {
14
[43]15#undef  FUNCTION
16#define FUNCTION "Component::toXML"
17
[42]18  XML Component::toXML (void)
[31]19  {
[43]20    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
21
[137]22    environment ();
23
[42]24    XML xml (_entity->get_name());
[31]25   
[81]26    xml.balise_open_begin   ("description");
27    xml.  attribut("morpheo_version",MORPHEO_VERSION);
28    xml.balise_open_end();
[31]29    xml.  insert_XML        (_entity->toXML());
30    xml.  balise_open       ("architecture");
31
32    if (_list_component->empty()== false)
33      {
[75]34        std::list<Tcomponent_t *>::iterator i = _list_component->begin();
[31]35
36        while (i != _list_component->end())
37          {
[57]38            xml.insert_XML ((*i)->_entity->toXML_mapping());
[31]39            ++i;
40          }
41      }
42       
43    xml.  balise_close      ();
44    xml.balise_close        ();
[43]45 
46    log_printf(FUNC,Behavioural,FUNCTION,"End");
47 
[31]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.