Method: Ctp::CThostFtdcInvestorWithdrawAlgorithmField#FundMortgageRatio=

Defined in:
ext/ctp/ctp.cxx

#FundMortgageRatio=(*args) ⇒ Object



117221
117222
117223
117224
117225
117226
117227
117228
117229
117230
117231
117232
117233
117234
117235
117236
117237
117238
117239
117240
117241
117242
117243
117244
117245
117246
117247
# File 'ext/ctp/ctp.cxx', line 117221

SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_FundMortgageRatio_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ;
  TThostFtdcRatioType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcInvestorWithdrawAlgorithmField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","FundMortgageRatio", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","FundMortgageRatio", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcRatioType >(val2);
  if (arg1) (arg1)->FundMortgageRatio = arg2;
  return Qnil;
fail:
  return Qnil;
}