Method: Ctp::CThostFtdcOpenAccountField#CountryCode

Defined in:
ext/ctp/ctp.cxx

#CountryCode(*args) ⇒ Object



182264
182265
182266
182267
182268
182269
182270
182271
182272
182273
182274
182275
182276
182277
182278
182279
182280
182281
182282
182283
182284
182285
182286
182287
182288
182289
182290
182291
# File 'ext/ctp/ctp.cxx', line 182264

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