예제 #1
0
// Helper method to initialize the jsonValue to a new value.
void JsonValue::setValueFromParameter(tThreadData *pThreadData, qshort paramNumber) {
    EXTParamInfo* param = ECOfindParamNum( pThreadData->mEci, paramNumber );
    if( param ) {
        // Interpret the parameter we have
        EXTfldval fVal;
        fVal.setFldVal((qfldval)param->mData);

        setValueFromEXTfldval(pThreadData, fVal);
    }
}
예제 #2
0
// Get a parameter from the EXTCompInfo
qbool OmnisTools::getParamVar( EXTCompInfo* pEci, qshort pParamNum, EXTfldval& pOutVar )
{
	EXTParamInfo* param = ECOfindParamNum( pEci, pParamNum );
	if( !param )
		return qfalse;
	
	pOutVar.setFldVal(reinterpret_cast<qfldval>(param->mData));
	pOutVar.setReadOnly( qfalse );
	
	return qtrue;
}