Method: Ctp::CThostFtdcNotifyQueryAccountField#CustType

Defined in:
ext/ctp/ctp.cxx

#CustType(*args) ⇒ Object



172436
172437
172438
172439
172440
172441
172442
172443
172444
172445
172446
172447
172448
172449
172450
172451
172452
172453
172454
172455
172456
172457
# File 'ext/ctp/ctp.cxx', line 172436

SWIGINTERN VALUE
_wrap_CThostFtdcNotifyQueryAccountField_CustType_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcCustTypeType 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_CThostFtdcNotifyQueryAccountField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNotifyQueryAccountField *","CustType", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1);
  result = (TThostFtdcCustTypeType) ((arg1)->CustType);
  vresult = SWIG_From_char(static_cast< char >(result));
  return vresult;
fail:
  return Qnil;
}