tool/vfx/vfxSection.cpp
bool Section::GetMemberType(
    uint32_t     lineNum,         // Line No.
    const char*  pMemberName,     // [in]  Member string name
    MemberType*  pValueType,      // [out] Member data type.
    std::string* pErrorMsg)       // [out] Error message
{
    bool result = false;
    for (uint32_t i = 0; i < m_tableSize; ++i)
    {
        if ((m_pMemberTable[i].pMemberName != nullptr) && strcmp(pMemberName, m_pMemberTable[i].pMemberName) == 0)
        {
            result = true;

            if (pValueType != nullptr)
            {
                *pValueType = m_pMemberTable[i].memberType;
            }

            break;
        }
    }

    if (result == false)
    {
        PARSE_WARNING(*pErrorMsg, lineNum, "Invalid member name: %s", pMemberName);
    }

    return result;
}
// =====================================================================================================================
// Gets data type of a member.
Gets data type of a member.
Gets data type of a member .
bool Section::GetMemberType(
    uint32_t     lineNum,         
    const char*  pMemberName,     
    MemberType*  pValueType,      
    std::string* pErrorMsg)       
{
    bool result = false;
    for (uint32_t i = 0; i < m_tableSize; ++i)
    {
        if ((m_pMemberTable[i].pMemberName != nullptr) && strcmp(pMemberName, m_pMemberTable[i].pMemberName) == 0)
        {
            result = true;
            if (pValueType != nullptr)
            {
                *pValueType = m_pMemberTable[i].memberType;
            }
            break;
        }
    }
    if (result == false)
    {
        PARSE_WARNING(*pErrorMsg, lineNum, "Invalid member name: %s", pMemberName);
    }
    return result;
}
bool Section :: GetMemberType ( uint32_t lineNum , const char * pMemberName , MemberType * pValueType , std :: string * pErrorMsg ) { bool result = false ; for ( uint32_t i = 0 ; i < m_tableSize ; ++ i ) { if ( ( m_pMemberTable [ i ] . pMemberName != nullptr ) && strcmp ( pMemberName , m_pMemberTable [ i ] . pMemberName ) == 0 ) { result = true ; if ( pValueType != nullptr ) { * pValueType = m_pMemberTable [ i ] . memberType ; } break ; } } if ( result == false ) { PARSE_WARNING ( * pErrorMsg , lineNum , " " , pMemberName ) ; } return result ; }
Gets data type of a member.
Gets data type of a member .
// Line No. // [in]  Member string name // [out] Member data type. // [out] Error message