ImageGear for C and C++ on Windows v19.6 - Updated
IG_REC_vertical_dict_is_enabled
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Vertical Dictionary Functions > IG_REC_vertical_dict_is_enabled

Checks if a vertical dictionary is currently enabled.

Declaration:

 
Copy Code
AT_ERRCOUNT IG_REC_vertical_dict_is_enabled(
   const AT_CHAR* description,
   LPAT_BOOL enabled
);

Arguments:

Name Type Description
description const AT_CHAR* Description of the dictionary to check, obtained from IG_REC_vertical_dict_available_desc_get.
enabled LPAT_BOOL Receives the value TRUE if the vertical dictionary is enabled; FALSE otherwise.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Example:

 
Copy Code
AT_ERRCOUNT ErrCount = 0;
AT_INT iVDCount = 0;
AT_INT iVDIndex = 0;
AT_INT iDescLen = 0;
AT_CHAR* lpBuffer = 0;
AT_BOOL bEnabled = FALSE;

ErrCount += IG_REC_vertical_dict_available_count_get(&iVDCount);
while(iVDIndex < iVDCount)
{
    ErrCount += IG_REC_vertical_dict_available_desc_len_get(iVDIndex, &iDescLen);
    lpBuffer = (AT_CHAR*) malloc((iDescLen + 1) * sizeof(AT_CHAR));
    if(lpBuffer)
    {
        ErrCount += IG_REC_vertical_dict_available_desc_get(iVDIndex, lpBuffer, iDescLen);
        ErrCount += IG_REC_vertical_dict_is_enabled(lpBuffer, &bEnabled);
        //...
        free(lpBuffer);
    }
    iVDIndex++;
}