Method: Ctp::CThostFtdcNotifyQueryAccountField#DeviceID

Defined in:
ext/ctp/ctp.cxx

#DeviceID(*args) ⇒ Object



173122
173123
173124
173125
173126
173127
173128
173129
173130
173131
173132
173133
173134
173135
173136
173137
173138
173139
173140
173141
173142
173143
173144
173145
173146
173147
173148
173149
# File 'ext/ctp/ctp.cxx', line 173122

SWIGINTERN VALUE
_wrap_CThostFtdcNotifyQueryAccountField_DeviceID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcNotifyQueryAccountField *arg1 = (CThostFtdcNotifyQueryAccountField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  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 *","DeviceID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcNotifyQueryAccountField * >(argp1);
  result = (char *) ((arg1)->DeviceID);
  {
    size_t size = SWIG_strnlen(result, 3);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}