[67] | 1 | /* |
---|
| 2 | * $Id: Parameters.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Queue/include/Parameters.h" |
---|
[101] | 9 | #include "Common/include/Log2.h" |
---|
[67] | 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace generic { |
---|
| 13 | namespace queue { |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #undef FUNCTION |
---|
| 17 | #define FUNCTION "Queue::Parameters" |
---|
[101] | 18 | Parameters::Parameters (uint32_t size_queue , |
---|
| 19 | uint32_t size_data , |
---|
| 20 | uint32_t nb_port_slot , |
---|
| 21 | bool have_port_ptr_write, |
---|
| 22 | bool have_port_ptr_read ): |
---|
[113] | 23 | behavioural::Parameters("Queue"), |
---|
[101] | 24 | _size_queue (size_queue), |
---|
| 25 | _size_data (size_data ), |
---|
| 26 | _nb_port_slot (nb_port_slot), |
---|
| 27 | _have_port_ptr_write (have_port_ptr_write and (log2(size_queue)>0)), |
---|
| 28 | _have_port_ptr_read (have_port_ptr_read and (log2(size_queue)>0)), |
---|
| 29 | _size_ptr (log2(size_queue)), |
---|
| 30 | _have_port_ptr (have_port_ptr_write or have_port_ptr_read) |
---|
[67] | 31 | { |
---|
| 32 | log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
| 33 | test(); |
---|
| 34 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
| 35 | }; |
---|
| 36 | |
---|
[88] | 37 | // #undef FUNCTION |
---|
| 38 | // #define FUNCTION "Queue::Parameters (copy)" |
---|
| 39 | // Parameters::Parameters (Parameters & param): |
---|
| 40 | // _size_queue (param._size_queue), |
---|
| 41 | // _size_data (param._size_data ) |
---|
| 42 | // { |
---|
| 43 | // log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
| 44 | // test(); |
---|
| 45 | // log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
| 46 | // }; |
---|
| 47 | |
---|
[67] | 48 | #undef FUNCTION |
---|
[88] | 49 | #define FUNCTION "Queue::~Parameters" |
---|
| 50 | Parameters::~Parameters () |
---|
[67] | 51 | { |
---|
| 52 | log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
| 53 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
| 54 | }; |
---|
| 55 | |
---|
| 56 | #undef FUNCTION |
---|
[88] | 57 | #define FUNCTION "Queue::copy" |
---|
| 58 | void Parameters::copy (void) |
---|
[67] | 59 | { |
---|
| 60 | log_printf(FUNC,Queue,FUNCTION,"Begin"); |
---|
| 61 | log_printf(FUNC,Queue,FUNCTION,"End"); |
---|
| 62 | }; |
---|
| 63 | |
---|
| 64 | }; // end namespace queue |
---|
| 65 | }; // end namespace generic |
---|
| 66 | |
---|
| 67 | }; // end namespace behavioural |
---|
| 68 | }; // end namespace morpheo |
---|