[29] | 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 | |
---|
[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 |
---|