/* * $Id: Parameters_msg_error.cpp 82 2008-05-01 16:48:45Z rosiere $ * * [ Description ] * */ #include "Behavioural/include/Types.h" #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/include/Parameters.h" #include namespace morpheo { namespace behavioural { namespace core { namespace multi_ooo_engine { namespace ooo_engine { namespace rename_unit { namespace rename_select { #undef FUNCTION #define FUNCTION "Rename_select::msg_error" Parameters_test Parameters::msg_error(void) { log_printf(FUNC,Rename_select,FUNCTION,"Begin"); Parameters_test test("Rename_select"); if ((_nb_front_end_select == 0) or (_nb_front_end_select > _nb_front_end)) test.error(_("nb_front_end_select must be in [1:nb_front_end].\n")); if ((_priority != PRIORITY_STATIC) and (_priority != PRIORITY_ROUND_ROBIN)) test.error(toString(_("Unsupported priority scheme. Supported scheme are : %s and %s.\n"),toString(PRIORITY_STATIC).c_str(),toString(PRIORITY_ROUND_ROBIN).c_str())); if ((_load_balancing != LOAD_BALANCING_BALANCE) and (_load_balancing != LOAD_BALANCING_MAXIMUM_FOR_PRIORITY)) test.error(toString(_("Unsupported load_balancing scheme. Supported scheme are : %s and %s.\n"),toString(LOAD_BALANCING_BALANCE).c_str(),toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY).c_str())); return test; log_printf(FUNC,Rename_select,FUNCTION,"End"); }; }; // end namespace rename_select }; // end namespace rename_unit }; // end namespace ooo_engine }; // end namespace multi_ooo_engine }; // end namespace core }; // end namespace behavioural }; // end namespace morpheo