[83] | 1 | /* |
---|
| 2 | * $Id: Parameters_msg_error.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Types.h" |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Context_State/include/Parameters.h" |
---|
| 10 | #include <sstream> |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace core { |
---|
| 15 | namespace multi_front_end { |
---|
| 16 | namespace front_end { |
---|
| 17 | namespace context_state { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Context_State::msg_error" |
---|
| 22 | Parameters_test Parameters::msg_error(void) |
---|
| 23 | { |
---|
| 24 | log_begin(Context_State,FUNCTION); |
---|
| 25 | |
---|
| 26 | Parameters_test test ("Context_State"); |
---|
| 27 | |
---|
| 28 | bool _is_link_decod_unit_from_context [_nb_decod_unit]; |
---|
| 29 | for (uint32_t i=0; i<_nb_decod_unit; i++) |
---|
| 30 | _is_link_decod_unit_from_context [i] = false; |
---|
| 31 | for (uint32_t i=0; i<_nb_context; i++) |
---|
| 32 | { |
---|
| 33 | if (_link_context_to_decod_unit [i] < _nb_decod_unit) |
---|
| 34 | _is_link_decod_unit_from_context [_link_context_to_decod_unit[i]] = true; |
---|
| 35 | else |
---|
| 36 | test.error(toString(_("The context [%d] is linked with invalid decod_unit."),i)); |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | for (uint32_t i=0; i<_nb_decod_unit; i++) |
---|
| 40 | if (_is_link_decod_unit_from_context [i] == false) |
---|
| 41 | test.error(toString(_("The decod_unit [%d] have none context as source."),i)); |
---|
| 42 | |
---|
| 43 | log_end(Context_State,FUNCTION); |
---|
| 44 | |
---|
| 45 | return test; |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | }; // end namespace context_state |
---|
| 49 | }; // end namespace front_end |
---|
| 50 | }; // end namespace multi_front_end |
---|
| 51 | }; // end namespace core |
---|
| 52 | |
---|
| 53 | }; // end namespace behavioural |
---|
| 54 | }; // end namespace morpheo |
---|