Method: Ctp::CThostFtdcReqAuthenticateField#AuthCode

Defined in:
ext/ctp/ctp.cxx

#AuthCode(*args) ⇒ Object



6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
# File 'ext/ctp/ctp.cxx', line 6527

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