mitab/mitab_miffile.cpp
int MIFFile::GetNextFeatureId(int nPrevId)
{
    if (m_eAccessMode != TABRead)
    {
        CPLError(CE_Failure, CPLE_NotSupported,
                 "GetNextFeatureId() can be used only with Read access.");
        return -1;
    }

    if (nPrevId <= 0 && m_poMIFFile->GetLastLine() != NULL)
        return 1;       // Feature Ids start at 1
    else if (nPrevId > 0 && m_poMIFFile->GetLastLine() != NULL)
        return nPrevId + 1;
    else
        return -1;

    return 0;
}
/**********************************************************************
 *                   MIFFile::GetNextFeatureId()
 *
 * Returns feature id that follows nPrevId, or -1 if it is the
 * last feature id.  Pass nPrevId=-1 to fetch the first valid feature id.
 **********************************************************************/
:GetNextFeatureId()
Returns feature id that follows nPrevId, or -1 if it is the
last feature id.  Pass nPrevId=-1 to fetch the first valid feature id.
: GetNextFeatureId () Returns feature id that follows nPrevId or - 1 if it is the last feature id . Pass nPrevId = - 1 to fetch the first valid feature id .
int MIFFile::GetNextFeatureId(int nPrevId)
{
    if (m_eAccessMode != TABRead)
    {
        CPLError(CE_Failure, CPLE_NotSupported,
                 "GetNextFeatureId() can be used only with Read access.");
        return -1;
    }
    if (nPrevId <= 0 && m_poMIFFile->GetLastLine() != NULL)
        return 1;       
    else if (nPrevId > 0 && m_poMIFFile->GetLastLine() != NULL)
        return nPrevId + 1;
    else
        return -1;
    return 0;
}
int MIFFile :: GetNextFeatureId ( int nPrevId ) { if ( m_eAccessMode != TABRead ) { CPLError ( CE_Failure , CPLE_NotSupported , " " ) ; return -1 ; } if ( nPrevId <= 0 && m_poMIFFile -> GetLastLine ( ) != NULL ) return 1 ; else if ( nPrevId > 0 && m_poMIFFile -> GetLastLine ( ) != NULL ) return nPrevId + 1 ; else return -1 ; return 0 ; }
MIFFile::GetNextFeatureId()
 Returns feature id that follows nPrevId, or -1 if it is the
 last feature id.
MIFFile :: GetNextFeatureId () Returns feature id that follows nPrevId or - 1 if it is the last feature id .
// Feature Ids start at 1