コード例 #1
0
bool 
StatusReporterInterface::BuildYourselfFromYourValueSet( ValueSet &vs ){

	int		rc = 1;

	rc &= vs.GetInt( SSAPI_OBJECT_FID_STATE, &m_state );
	rc &= vs.GetU32( SSAPI_OBJECT_FID_STATE_STRING, &m_stateString );

	return rc? true : false;
}
コード例 #2
0
bool
ProcessRaidUtility::ModifyObject( ValueSet &objectValues, SsapiResponder *pResponder ) {

    U32			priority;

    if( !objectValues.GetU32( SSAPI_PROCESS_FID_PRIORITY, &priority ) ) {
        pResponder->RespondToRequest( SSAPI_EXCEPTION_INVALID_PARAMETER, CTS_SSAPI_INVALIDPARM_EXCEPTION_NO_PRIORITY );
        return true;
    }

    return ChangePriority( priority, pResponder );
}
コード例 #3
0
bool 
ConfigIdManager::VerifyConfigIdForRequest( ValueSet &objectValues, SsapiResponder *pResponder ){

	U32		configId;
	bool	passedTheTest = false;

	if( objectValues.GetU32( 0, &configId ) ){
		if( *m_pConfigId == configId )
			passedTheTest = true;
	}

	if( !passedTheTest )
		pResponder->RespondToRequest( SSAPI_EXCEPTION_INVALID_CONFIG_ID, CTS_SSAPI_CONFIG_ID_INVALID );


	return passedTheTest? true : false;
}