source/gjAPI.cpp
int gjAPI::gjInterScore::__Process(const std::string& sData, void* pAdd, gjScoreTableMap* papOutput)
{
    // parse output
    gjDataList aaReturn;
    if(m_pAPI->ParseRequestKeypair(sData, &aaReturn) != GJ_OK)
    {
        gjAPI::ErrorLogAdd("API Error: could not parse score tables");
        return GJ_REQUEST_FAILED;
    }

    // create and cache score tables
    FOR_EACH(it, aaReturn)
    {
        gjScoreTable* pNewScoreTable = new gjScoreTable(*it, m_pAPI);
        const int iID = pNewScoreTable->GetID();

        if(m_apScoreTable.count(iID)) SAFE_DELETE(pNewScoreTable)
        else m_apScoreTable[iID] = pNewScoreTable;
    }

    return (this->__CheckCache(papOutput) == GJ_OK) ? GJ_OK : GJ_NO_DATA_FOUND;
}
// ****************************************************************
/* process score table data and cache score table objects */
process score table data and cache score table objects
process score table data and cache score table objects
int gjAPI::gjInterScore::__Process(const std::string& sData, void* pAdd, gjScoreTableMap* papOutput)
{
    gjDataList aaReturn;
    if(m_pAPI->ParseRequestKeypair(sData, &aaReturn) != GJ_OK)
    {
        gjAPI::ErrorLogAdd("API Error: could not parse score tables");
        return GJ_REQUEST_FAILED;
    }
    FOR_EACH(it, aaReturn)
    {
        gjScoreTable* pNewScoreTable = new gjScoreTable(*it, m_pAPI);
        const int iID = pNewScoreTable->GetID();
        if(m_apScoreTable.count(iID)) SAFE_DELETE(pNewScoreTable)
        else m_apScoreTable[iID] = pNewScoreTable;
    }
    return (this->__CheckCache(papOutput) == GJ_OK) ? GJ_OK : GJ_NO_DATA_FOUND;
}
int gjAPI :: gjInterScore :: __Process ( const std :: string & sData , void * pAdd , gjScoreTableMap * papOutput ) { gjDataList aaReturn ; if ( m_pAPI -> ParseRequestKeypair ( sData , & aaReturn ) != GJ_OK ) { gjAPI :: ErrorLogAdd ( " " ) ; return GJ_REQUEST_FAILED ; } FOR_EACH ( it , aaReturn ) { gjScoreTable * pNewScoreTable = new gjScoreTable ( * it , m_pAPI ) ; const int iID = pNewScoreTable -> GetID ( ) ; if ( m_apScoreTable . count ( iID ) ) SAFE_DELETE ( pNewScoreTable ) else m_apScoreTable [ iID ] = pNewScoreTable ; } return ( this -> __CheckCache ( papOutput ) == GJ_OK ) ? GJ_OK : GJ_NO_DATA_FOUND ; }
process score table data and cache score table objects
process score table data and cache score table objects
// parse output // create and cache score tables