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