Method: Ctp::CThostFtdcAccountregisterField#CurrencyID

Defined in:
ext/ctp/ctp.cxx

#CurrencyID(*args) ⇒ Object



180908
180909
180910
180911
180912
180913
180914
180915
180916
180917
180918
180919
180920
180921
180922
180923
180924
180925
180926
180927
180928
180929
180930
180931
180932
180933
180934
180935
# File 'ext/ctp/ctp.cxx', line 180908

SWIGINTERN VALUE
_wrap_CThostFtdcAccountregisterField_CurrencyID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcAccountregisterField *arg1 = (CThostFtdcAccountregisterField *) 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_CThostFtdcAccountregisterField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcAccountregisterField *","CurrencyID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcAccountregisterField * >(argp1);
  result = (char *) ((arg1)->CurrencyID);
  {
    size_t size = SWIG_strnlen(result, 4);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}