GetAlgoNumber
Description
GetAlgoNumber returns the number of algorithms the plugin contains.
Syntax
int GetAlgoNumber(unsigned int& ounAlgoNb);
Parameters
Output
ounAlgoNb: number of algorithms the plugin contains.
Return
(int): returns the identification number of the error if an error occurs or 0 if no error occurs.
Example
#define OPT_PLUGIN_NO_ERROR 0
OPT_HIW_API int GetAlgoNumber(unsigned int& uiAlgoNb)
{
// Check if input and output vector are not empty
if (!gvAlgos.empty())
{
uiTestNb = (unsigned int)gvAlgos.size();
}
else
{
return OPT_PLUGIN_ERROR_NO_ALGO;
}
return OPT_PLUGIN_NO_ERROR;
}