Method: Ctp::CThostFtdcReqTransferField#TransferStatus=

Defined in:
ext/ctp/ctp.cxx

#TransferStatus=(*args) ⇒ Object



144433
144434
144435
144436
144437
144438
144439
144440
144441
144442
144443
144444
144445
144446
144447
144448
144449
144450
144451
144452
144453
144454
144455
144456
144457
144458
144459
# File 'ext/ctp/ctp.cxx', line 144433

SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TransferStatus_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
  TThostFtdcTransferStatusType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char 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_CThostFtdcReqTransferField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TransferStatus", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
  ecode2 = SWIG_AsVal_char(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTransferStatusType","TransferStatus", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcTransferStatusType >(val2);
  if (arg1) (arg1)->TransferStatus = arg2;
  return Qnil;
fail:
  return Qnil;
}