source/gjDataItem.cpp
int gjDataItem::__SetDataCallback(const std::string& sData, void* pAdd, gjDataItemPtr* ppOutput)
{
    // parse output (only check status)
    gjDataList aaReturn;
    if(m_pAPI->ParseRequestKeypair(sData, &aaReturn) != GJ_OK)
    {
        gjAPI::ErrorLogAdd("API Error: could not parse data store item");
        return GJ_REQUEST_FAILED;
    }

    if(pAdd)
    {
        // use verification data
        std::string* psAdd = (std::string*)pAdd;
        m_sData            = (*psAdd);
        (*psAdd)           = "";
    }

    if(ppOutput) (*ppOutput) = this;
    return GJ_OK;
}
// ****************************************************************
/* callback for successfully setting data store item (Base64) data */
callback for successfully setting data store item (Base64) data
callback for successfully setting data store item ( Base64 ) data
int gjDataItem::__SetDataCallback(const std::string& sData, void* pAdd, gjDataItemPtr* ppOutput)
{
    gjDataList aaReturn;
    if(m_pAPI->ParseRequestKeypair(sData, &aaReturn) != GJ_OK)
    {
        gjAPI::ErrorLogAdd("API Error: could not parse data store item");
        return GJ_REQUEST_FAILED;
    }
    if(pAdd)
    {
        std::string* psAdd = (std::string*)pAdd;
        m_sData            = (*psAdd);
        (*psAdd)           = "";
    }
    if(ppOutput) (*ppOutput) = this;
    return GJ_OK;
}
int gjDataItem :: __SetDataCallback ( const std :: string & sData , void * pAdd , gjDataItemPtr * ppOutput ) { gjDataList aaReturn ; if ( m_pAPI -> ParseRequestKeypair ( sData , & aaReturn ) != GJ_OK ) { gjAPI :: ErrorLogAdd ( " " ) ; return GJ_REQUEST_FAILED ; } if ( pAdd ) { std :: string * psAdd = ( std :: string * ) pAdd ; m_sData = ( * psAdd ) ; ( * psAdd ) = " " ; } if ( ppOutput ) ( * ppOutput ) = this ; return GJ_OK ; }
callback for successfully setting data store item (Base64) data
callback for successfully setting data store item ( Base64 ) data
// parse output (only check status) // use verification data