Method: Ctp::CThostFtdcNotifySyncKeyField#TradeCode

Defined in:
ext/ctp/ctp.cxx

#TradeCode(*args) ⇒ Object



178666
178667
178668
178669
178670
178671
178672
178673
178674
178675
178676
178677
178678
178679
178680
178681
178682
178683
178684
178685
178686
178687
178688
178689
178690
178691
178692
178693
# File 'ext/ctp/ctp.cxx', line 178666

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