Method: Ctp::CThostFtdcCombinationLegField#LegMultiple=

Defined in:
ext/ctp/ctp.cxx

#LegMultiple=(*args) ⇒ Object



109539
109540
109541
109542
109543
109544
109545
109546
109547
109548
109549
109550
109551
109552
109553
109554
109555
109556
109557
109558
109559
109560
109561
109562
109563
109564
109565
# File 'ext/ctp/ctp.cxx', line 109539

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