Method: Ctp::CThostFtdcErrOrderField#IsSwapOrder

Defined in:
ext/ctp/ctp.cxx

#IsSwapOrder(*args) ⇒ Object



120754
120755
120756
120757
120758
120759
120760
120761
120762
120763
120764
120765
120766
120767
120768
120769
120770
120771
120772
120773
120774
120775
# File 'ext/ctp/ctp.cxx', line 120754

SWIGINTERN VALUE
_wrap_CThostFtdcErrOrderField_IsSwapOrder_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcErrOrderField *arg1 = (CThostFtdcErrOrderField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcBoolType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcErrOrderField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcErrOrderField *","IsSwapOrder", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcErrOrderField * >(argp1);
  result = (TThostFtdcBoolType) ((arg1)->IsSwapOrder);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}