Last change
on this file since 61 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
795 bytes
|
Rev | Line | |
---|
[31] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 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::find_interface" |
---|
[40] | 15 | Interface_fifo * Interfaces::find_interface (string name) |
---|
[31] | 16 | { |
---|
[43] | 17 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 18 | |
---|
| 19 | Interface_fifo * _return = NULL; |
---|
[31] | 20 | if (_list_interface->empty()== false) |
---|
| 21 | { |
---|
[42] | 22 | list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
[31] | 23 | |
---|
| 24 | while (i != _list_interface->end()) |
---|
| 25 | { |
---|
[42] | 26 | if ((*i)->get_name() == name) |
---|
[43] | 27 | { |
---|
| 28 | _return = (*i); |
---|
| 29 | break; |
---|
| 30 | } |
---|
[31] | 31 | ++i; |
---|
| 32 | } |
---|
| 33 | } |
---|
[43] | 34 | |
---|
| 35 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 36 | |
---|
| 37 | return _return; |
---|
[31] | 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace behavioural |
---|
| 41 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.