Last change
on this file since 121 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Rev | Line | |
---|
[88] | 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_OOO_Engine/OOO_Engine/include/Parameters.h" |
---|
| 10 | #include <sstream> |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace core { |
---|
| 15 | namespace multi_ooo_engine { |
---|
| 16 | namespace ooo_engine { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "OOO_Engine::msg_error" |
---|
| 21 | Parameters_test Parameters::msg_error(void) |
---|
| 22 | { |
---|
| 23 | log_begin(OOO_Engine,FUNCTION); |
---|
| 24 | |
---|
| 25 | Parameters_test test ("OOO_Engine"); |
---|
| 26 | |
---|
| 27 | bool _is_link [_nb_rename_unit]; |
---|
| 28 | for (uint32_t i=0; i<_nb_rename_unit; i++) |
---|
| 29 | _is_link[i] = false; |
---|
| 30 | |
---|
| 31 | for (uint32_t i=0; i<_nb_front_end; i++) |
---|
| 32 | { |
---|
| 33 | uint32_t x = _link_rename_unit_with_front_end [i]; |
---|
| 34 | |
---|
| 35 | if (x >= _nb_rename_unit) |
---|
| 36 | test.error(toString(_("Front_end [%d] is linked with invalid rename_unit.\n"),i)); |
---|
| 37 | else |
---|
| 38 | _is_link [x] = true; |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | for (uint32_t i=0; i<_nb_rename_unit; i++) |
---|
| 42 | if (_is_link[i] == false) |
---|
| 43 | test.error(toString(_("Rename_unit [%d] is not linked with front_end.\n"),i)); |
---|
| 44 | |
---|
| 45 | log_end(OOO_Engine,FUNCTION); |
---|
| 46 | |
---|
| 47 | return test; |
---|
| 48 | }; |
---|
| 49 | |
---|
| 50 | }; // end namespace ooo_engine |
---|
| 51 | }; // end namespace multi_ooo_engine |
---|
| 52 | }; // end namespace core |
---|
| 53 | |
---|
| 54 | }; // end namespace behavioural |
---|
| 55 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.