Method: Ctp::CThostFtdcReqRepealField#CustFee=

Defined in:
ext/ctp/ctp.cxx

#CustFee=(*args) ⇒ Object



149098
149099
149100
149101
149102
149103
149104
149105
149106
149107
149108
149109
149110
149111
149112
149113
149114
149115
149116
149117
149118
149119
149120
149121
149122
149123
149124
# File 'ext/ctp/ctp.cxx', line 149098

SWIGINTERN VALUE
_wrap_CThostFtdcReqRepealField_CustFee_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcReqRepealField *arg1 = (CThostFtdcReqRepealField *) 0 ;
  TThostFtdcCustFeeType 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_CThostFtdcReqRepealField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqRepealField *","CustFee", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcReqRepealField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustFeeType","CustFee", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcCustFeeType >(val2);
  if (arg1) (arg1)->CustFee = arg2;
  return Qnil;
fail:
  return Qnil;
}