1 | /* |
---|
2 | * $Id: Interfaces_set_interface.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Interfaces.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | #undef FUNCTION |
---|
14 | #define FUNCTION "Interfaces::set_interface" |
---|
15 | Interface_fifo * Interfaces::set_interface (std::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 | ,_usage); |
---|
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 (std::string name , |
---|
41 | direction_t direction , |
---|
42 | localisation_t localisation, |
---|
43 | std::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 |
---|