Method: Ctp::CThostFtdcQueryMaxOrderVolumeWithPriceField#Direction=

Defined in:
ext/ctp/ctp.cxx

#Direction=(*args) ⇒ Object



126425
126426
126427
126428
126429
126430
126431
126432
126433
126434
126435
126436
126437
126438
126439
126440
126441
126442
126443
126444
126445
126446
126447
126448
126449
126450
126451
# File 'ext/ctp/ctp.cxx', line 126425

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