A fuzzy logic C++ library
|
#define SLIFIS_ERROR | ( | a | ) |
{ \ SLIFIS_PRINT_RUNTIME << "error handler triggered:\n"; \ SLIFIS_ERR_INFO( SLIFIS_LOG ); \ SLIFIS_LOG << " - type : " << GetString( a ) << ENDL; \ __OUT__; \ slifis::ERROR_HANDLER e( a, SLIFIS_FUNCTION, __FILE__, __LINE__, clock()/1000 ); \ throw e; \ }
Fatal error macro. The single argument must be of type slifis::EN_ERRMSG.
Referenced by slifis::FUZZY_ROOT::AddMf(), slifis::RULE_BASE::AddNewRule(), slifis::SLIFIS::AddRule(), slifis::SLIFIS::AddRuleFromValues(), slifis::DATA_POINT::AddValue(), slifis::DATAFILE_INFO::AssignDataDescription(), slifis::SLIFIS::BuildRuleBaseFromData(), slifis::DATA_DESCR::ComputeIndexesAfterLoading(), slifis::INPUT_SETS::DeleteMf(), slifis::MEMBFUNC::DeletePoint(), slifis::DATA_POINT::FillWithInputValues(), slifis::DATAFILE_INFO::GetDelimChar(), slifis::DATAFILE_INFO::GetDescription(), slifis::DATA_SET::GetFieldType(), slifis::DATAFILE_INFO::GetFileType(), slifis::DATAFILE_INFO::GetFirstNumeric(), slifis::MEMBFUNC::GetFirstPoint(), slifis::DATA_DESCR::GetInputIndex(), slifis::RULE_BASE::GetInputSet(), slifis::DATA_POINT::GetInputValue(), slifis::MEMBFUNC::GetLastPoint(), slifis::FUZZY_ROOT::GetMf(), slifis::INPUT_SETS::GetMfSet(), slifis::INPUT_SETS::GetNbCombinations(), slifis::DATAFILE_INFO::GetNbDataPts(), slifis::RULE_BASE::GetNbInputs(), slifis::DATAFILE_INFO::GetNbNumericFields(), slifis::DATAFILE_INFO::GetNbStringFields(), slifis::DATA_DESCR::GetOutputIndex(), slifis::SLIFIS::GetOutputMf(), slifis::RULE_BASE::GetOutputSet(), slifis::RULE::GetOutputValue(), slifis::SLIFIS::GetOutputValue(), slifis::DATAFILE_INFO::GetPostReadingDescr(), slifis_plot::PLOT_FUZZY::GetScale(), slifis::DATAFILE_INFO::GetTotNbFields(), slifis::ROOT_RULE::GetTSOutputValue(), slifis::GNUPLOT_FILE::GNUPLOT_FILE(), slifis::DATAFILE_INFO::HasAttribNames(), slifis::SLIFIS::P_Evaluate_M(), slifis::DATA_SET::ReadData(), slifis::MEMBFUNC::Scale(), slifis::MEMBFUNC::Set(), slifis::RULE_IDX::SetOutMfIndex(), slifis::SLIFIS::SetOutput(), slifis::FUZZY_ROOT::SetTriangularSet(), slifis::ROOT_RULE::SetTSCoeff(), slifis::DATA_POINT::SetValue(), slifis::RULE_BASE::Sort(), slifis::MEMBFUNC::Truncate(), and slifis::SLIFIS::Write().
#define SLIFIS_ERROR_1 | ( | a, | |
b | |||
) |
{ \ SLIFIS_PRINT_RUNTIME << "error handler triggered:\n"; \ SLIFIS_ERR_INFO( SLIFIS_LOG ); \ SLIFIS_LOG << " - type : " << GetString( a ) << ENDL; \ SLIFIS_LOG << " - value: " << (b) << ENDL; \ __OUT__; \ slifis::ERROR_HANDLER e( a, SLIFIS_FUNCTION, __FILE__, __LINE__, clock()/1000 ); \ throw e; \ }
Fatal error macro. The first argument must be of type slifis::EN_ERRMSG, while the second can be anything that can be streamed, and will be printed out in the log file.
Referenced by slifis::MEMBFUNC::AddPoint(), slifis::DATA_SET::AssignDescription(), slifis::SLIFIS::BuildRuleBaseFromData(), slifis::DATAFILE_INFO::CloseFile(), slifis::INPUT_SETS::DeleteSet(), slifis::MEMBFUNC::Fuzzify(), slifis::SLIFIS::GenerateHistogramFile(), slifis::INPUT_SETS::GetInputTriggerValues(), slifis::ROOT_RULE::GetTSCoeff(), slifis::DATAFILE_INFO::OpenFile(), slifis::DATA_SET::Print(), slifis::SLIFIS::Read(), slifis::DATA_SET::ReadData(), slifis::DATA_POINT::ReadDataFields(), slifis::DATA_DESCR::Set(), slifis::MEMBFUNC::Set(), slifis::SLIFIS::SetInputValue(), slifis_plot::PLOT_FUZZY::TransformCoordS2R(), and slifis::SLIFIS::Write().
#define SLIFIS_ERROR_2 | ( | a, | |
b, | |||
c | |||
) |
{ \ SLIFIS_PRINT_RUNTIME << "error handler triggered:\n"; \ SLIFIS_ERR_INFO( SLIFIS_LOG ); \ SLIFIS_LOG << " - type : " << GetString( a ) << ENDL; \ SLIFIS_LOG << " - value 1: " << (b) << ENDL; \ SLIFIS_LOG << " - value 2: " << (c) << ENDL; \ __OUT__; \ slifis::ERROR_HANDLER e( a, SLIFIS_FUNCTION, __FILE__, __LINE__, clock()/1000 ); \ throw e; \ }
Fatal error macro. The first argument must be of type slifis::EN_ERRMSG, the two last can be anything that can be streamed, and will be printed out in the log file.
Referenced by slifis::DATA_DESCR::AddInputColumn(), slifis::RULE_BASE::AddNewRule(), slifis::SLIFIS::AddRule(), slifis::DATA_SET::AddStringItem(), slifis::DATA_SET::AssignDescription(), slifis::INPUT_SETS::DeleteMf(), slifis::FUZZY_ROOT::DeleteMf(), slifis::MEMBFUNC::DeletePoint(), slifis::RULE_BASE::DeleteRule(), slifis::INPUT_SETS::DeleteSet(), slifis::DATA_SET::DivideSet(), slifis::RULE_BASE::ExportCSV(), slifis::DATA_POINT::FillWithInputValues(), slifis_plot::GAPI_FillImage(), slifis_plot::GAPI_ReleaseImage(), slifis::FUZZY_ROOT::GenerateHistogramDataFile(), slifis::DATAFILE_INFO::GetAttribName(), slifis::INPUT_RANGE::GetCurrentValue(), slifis::DATA_SET::GetDataPoint(), slifis::DATA_POINT::GetDataType(), slifis::DATAFILE_INFO::GetFieldType(), slifis::DATAFILE_INFO::GetFileInfo(), slifis::FUZZY_IN::GetFuzzyValue(), slifis::SLIFIS::GetFuzzyValue(), slifis::INPUT_SETS::GetIndexCombination(), slifis::DATA_SET::GetInMMValue(), slifis::DATA_DESCR::GetInputIndex(), slifis::RULE_BASE::GetInputSet(), slifis::INPUT_SETS::GetInputTriggerValues(), slifis::DATA_POINT::GetInputValue(), slifis::DATA_SET::GetInputValues(), slifis::DATASET_PROPERTIES::GetMaxValue(), slifis::FUZZY_ROOT::GetMf(), slifis::FUZZY_ROOT::GetMfName(), slifis::DATASET_PROPERTIES::GetMinValue(), slifis::INPUT_SETS::GetName(), slifis::DATA_SET::GetOutValue(), slifis::MEMBFUNC::GetPoint(), slifis::RULE_BASE::GetRule(), slifis::RULE_IDX::GetRuleFiringStrength(), slifis::DATA_SET::GetStringCount(), slifis::ROOT_RULE::GetTSCoeff(), slifis::ROOT_RULE::GetTSOutputValue(), slifis::DATA_POINT::GetValue(), slifis::DATA_POINT::GetValue_f(), slifis::DATA_POINT::GetValue_s(), slifis::RULE::GetVarName(), slifis::RULE::GetVarValue(), slifis::INPUT_RANGE::INPUT_RANGE(), slifis::MEMBFUNC::ModifyPoint(), slifis::ROOT_RULE::operator=(), slifis::DATAFILE_INFO::P_FetchArffCommands(), slifis::DATAFILE_INFO::P_GetFileInfo_csv(), slifis::RULE_IDX::P_IsEqualUpToInput(), slifis::SLIFIS::P_Read_XML(), slifis_plot::Paint(), slifis::RULE_BASE::Print(), slifis::DATA_SET::ReadData(), slifis::RULE_IDX::RemoveTermForInput(), slifis_plot::PLOT_FS::SelectMf(), slifis::MEMBFUNC::Set(), slifis::ROOT_RULE::SetFisType(), slifis::DATA_DESCR::SetInputColumns(), slifis::SLIFIS::SetInputValue(), slifis::SLIFIS::SetInputValues(), slifis::FUZZY_ROOT::SetMfName(), slifis::FUZZY_ROOT::SetNormalisedSet(), slifis::ROOT_RULE::SetOpType(), slifis::DATA_DESCR::SetOutputColumn(), slifis::FUZZY_ROOT::SetTriangularSet(), and slifis::FUZZY_ROOT::Trigger().
#define SLIFIS_CATCH_RETHROW |
catch( const ERROR_HANDLER& e ) \ { \ SLIFIS_LOG << " - catched exception in " << __FUNCTION__ << "(), file " << __FILE__ << "(" << __LINE__ << "), re-throw..." << FLUSH; \ throw e; \ }
Used inside public API to re-throw a catched exception.
Referenced by slifis::SLIFIS::DeleteInput(), slifis::FUZZY_OUT::FUZZY_OUT(), slifis::SLIFIS::GetInputTriggerValues(), and slifis::FUZZY_ROOT::SetTriangularSet().