source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_toXML.cpp @ 40

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

Interface et Signal, c'est deux classes enregistres la valeurs des signaux à chaque cycle ... étape préparatoire avan le changement de la classe Vhdl_Testbench

File size: 912 bytes
RevLine 
[29]1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interfaces.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13  XML Interfaces::toXML (void)
14  {
15    XML xml ("interfaces");
16   
[31]17    if (_list_interface->empty()== false)
[29]18      {
[40]19        list<Interface_fifo*>::iterator i     = _list_interface->begin();
[29]20
[31]21        while (i != _list_interface->end())
[29]22          {
[38]23            xml.  insert_XML ((*i)->toXML());
[29]24            ++i;
25          }
26      }
[31]27     
28    return xml;
29  };
[29]30
[31]31#ifdef POSITION
32  XML Interfaces::toXML_mapping (void)
33  {
34    XML xml ("interfaces");
35   
36    if (_list_interface->empty()== false)
37      {
[40]38        list<Interface_fifo*>::iterator i     = _list_interface->begin();
[31]39
40        while (i != _list_interface->end())
41          {
[38]42            xml.  insert_XML ((*i)->toXML_mapping());
[31]43            ++i;
44          }
45      }
[29]46     
47    return xml;
48  };
[31]49#endif
[29]50}; // end namespace behavioural         
51}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.