source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_set_interface.cpp @ 43

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

Modif mineur : ajout d'info de débug

Release non stable

File size: 1.3 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interfaces.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13#undef  FUNCTION
14#define FUNCTION "Interfaces::set_interface"
15  Interface_fifo * Interfaces::set_interface (string         name       
16#ifdef POSITION
17                                              ,direction_t    direction   
18                                              ,localisation_t localisation
19#endif
20                                              )
21  {
22    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
23   
24    Interface_fifo * interface = new Interface_fifo (name
25#ifdef POSITION
26                                                     ,direction
27                                                     ,localisation
28#endif
29                                                     );
30   
31    _list_interface->push_back (interface);
32
33    log_printf(FUNC,Behavioural,FUNCTION,"End");
34     return interface;
35  };
36
37#ifdef POSITION
38#undef  FUNCTION
39#define FUNCTION "Interfaces::set_interface"
40  Interface_fifo * Interfaces::set_interface (string         name        ,
41                                              direction_t    direction   ,
42                                              localisation_t localisation,
43                                              string         comment     )
44  {
45    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
46    Interface_fifo * interface = set_interface(name, direction, localisation);
47   
48    interface->set_comment (comment);
49
50    log_printf(FUNC,Behavioural,FUNCTION,"End");
51    return interface;
52  };
53#endif
54
55}; // end namespace behavioural         
56}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.