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

Last change on this file since 75 was 75, checked in by rosiere, 16 years ago

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File size: 1.2 KB
Line 
1#ifdef POSITION
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Interfaces.h"
10
11namespace morpheo              {
12namespace behavioural          {
13
14#undef  FUNCTION
15#define FUNCTION "Interfaces::toXML"
16  XML Interfaces::toXML (void)
17  {
18    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
19
20    XML xml ("interfaces");
21   
22    if (_list_interface->empty()== false)
23      {
24        std::list<Interface_fifo*>::iterator i     = _list_interface->begin();
25
26        while (i != _list_interface->end())
27          {
28            xml.  insert_XML ((*i)->toXML());
29            ++i;
30          }
31      }
32 
33    log_printf(FUNC,Behavioural,FUNCTION,"End");   
34    return xml;
35  };
36
37#undef  FUNCTION
38#define FUNCTION "Interfaces::toXML_mapping"
39  XML Interfaces::toXML_mapping (void)
40  {
41    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
42
43    XML xml ("interfaces");
44   
45    if (_list_interface->empty()== false)
46      {
47        std::list<Interface_fifo*>::iterator i     = _list_interface->begin();
48
49        while (i != _list_interface->end())
50          {
51            xml.  insert_XML ((*i)->toXML_mapping());
52            ++i;
53          }
54      }
55 
56    log_printf(FUNC,Behavioural,FUNCTION,"End");   
57    return xml;
58  };
59}; // end namespace behavioural         
60}; // end namespace morpheo             
61#endif
Note: See TracBrowser for help on using the repository browser.