mitab/mitab_miffile.cpp
int MIFFile::GetFeatureCountByType(int &numPoints, int &numLines,
                                   int &numRegions, int &numTexts,
                                   GBool bForce )
{
    if( m_bPreParsed || bForce )
    {
        PreParseFile();

        numPoints = m_nPoints;
        numLines = m_nLines;
        numRegions = m_nRegions;
        numTexts = m_nTexts;
        return 0;
    }
    else
    {
        numPoints = numLines = numRegions = numTexts = 0;
        return -1;
    }
}
/**********************************************************************
 *                   MIFFile::GetFeatureCountByType()
 *
 * Return number of features of each type.
 *
 * NOTE: The current implementation always returns -1 for MIF files
 *       since this would require scanning the whole file.
 *
 * When properly implemented, the bForce flag will force scanning the
 * whole file by default.
 *
 * Returns 0 on success, or silently returns -1 (with no error) if this
 * information is not available.
 **********************************************************************/
:GetFeatureCountByType()
Return number of features of each type.

The current implementation always returns -1 for MIF files
since this would require scanning the whole file.

When properly implemented, the bForce flag will force scanning the
whole file by default.

Returns 0 on success, or silently returns -1 (with no error) if this
information is not available.
: GetFeatureCountByType () Return number of features of each type . The current implementation always returns - 1 for MIF files since this would require scanning the whole file . When properly implemented the bForce flag will force scanning the whole file by default . Returns 0 on success or silently returns - 1 ( with no error ) if this information is not available .
int MIFFile::GetFeatureCountByType(int &numPoints, int &numLines,
                                   int &numRegions, int &numTexts,
                                   GBool bForce )
{
    if( m_bPreParsed || bForce )
    {
        PreParseFile();
        numPoints = m_nPoints;
        numLines = m_nLines;
        numRegions = m_nRegions;
        numTexts = m_nTexts;
        return 0;
    }
    else
    {
        numPoints = numLines = numRegions = numTexts = 0;
        return -1;
    }
}
int MIFFile :: GetFeatureCountByType ( int & numPoints , int & numLines , int & numRegions , int & numTexts , GBool bForce ) { if ( m_bPreParsed || bForce ) { PreParseFile ( ) ; numPoints = m_nPoints ; numLines = m_nLines ; numRegions = m_nRegions ; numTexts = m_nTexts ; return 0 ; } else { numPoints = numLines = numRegions = numTexts = 0 ; return -1 ; } }
MIFFile::GetFeatureCountByType()
 Return number of features of each type.
MIFFile :: GetFeatureCountByType () Return number of features of each type .