Beispiel #1
0
	void callback() {
		if (where == GRB_CB_MESSAGE) {
			string msg = getStringInfo(GRB_CB_MSG_STRING);

			logCBFun(msg.c_str());
		}
	}
Beispiel #2
0
/*
 * TrackStringMsg - update the strings tracking window
 */
void TrackStringMsg( MONHSZSTRUCT *info )
{
    DDETrackInfo        *listinfo;
    StringInfo          **pos;
    StringInfo          *str;

    listinfo = (DDETrackInfo *)GetWindowLong(
        Tracking[DDEMENU_TRK_STR - DDE_TRK_FIRST].hwnd, 0 );
    pos = getStringInfo( info->hsz, listinfo );
    if( pos == NULL ) {
        str = NULL;
    } else {
        str = *pos;
    }
    switch( info->fsAction ) {
    case MH_CREATE:
    case MH_KEEP:
        if( str != NULL ) {
            str->cnt++;
        } else {
            str = addStringInfo( info, listinfo );
        }
        break;
    case MH_CLEANUP:
    case MH_DELETE:
        if( str != NULL ) {
            if( str->cnt > 0 ) {
                str->cnt--;
            }
            if( str->cnt == 0 ) {
                freeStringItem( str );
                *pos = NULL;
            }
        }
        break;
    }
    redispStrTrk( listinfo );

} /* TrackStringMsg */
Beispiel #3
0
QString ClPlatform::getExtensions(Error& error) const {
    return getStringInfo(error, CL_PLATFORM_EXTENSIONS);
}
Beispiel #4
0
QString ClPlatform::getVendor(Error& error) const {
    return getStringInfo(error, CL_PLATFORM_VENDOR);
}
Beispiel #5
0
QString ClPlatform::getName(Error& error) const {
    return getStringInfo(error, CL_PLATFORM_NAME);
}
Beispiel #6
0
QString ClPlatform::getVersion(Error& error) const {
    return getStringInfo(error, CL_PLATFORM_VERSION);
}
Beispiel #7
0
QString ClPlatform::getProfile(Error& error) const {
    return getStringInfo(error, CL_PLATFORM_PROFILE);
}