Method: Ctp::CThostFtdcDRTransferField#DestDRIdentityID=

Defined in:
ext/ctp/ctp.cxx

#DestDRIdentityID=(*args) ⇒ Object



190232
190233
190234
190235
190236
190237
190238
190239
190240
190241
190242
190243
190244
190245
190246
190247
190248
190249
190250
190251
190252
190253
190254
190255
190256
190257
190258
# File 'ext/ctp/ctp.cxx', line 190232

SWIGINTERN VALUE
_wrap_CThostFtdcDRTransferField_DestDRIdentityID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcDRTransferField *arg1 = (CThostFtdcDRTransferField *) 0 ;
  TThostFtdcDRIdentityIDType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int 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_CThostFtdcDRTransferField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDRTransferField *","DestDRIdentityID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcDRTransferField * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDRIdentityIDType","DestDRIdentityID", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcDRIdentityIDType >(val2);
  if (arg1) (arg1)->DestDRIdentityID = arg2;
  return Qnil;
fail:
  return Qnil;
}