Method: Ctp::CThostFtdcUserSessionField#ProtocolInfo

Defined in:
ext/ctp/ctp.cxx

#ProtocolInfo(*args) ⇒ Object



47739
47740
47741
47742
47743
47744
47745
47746
47747
47748
47749
47750
47751
47752
47753
47754
47755
47756
47757
47758
47759
47760
47761
47762
47763
47764
47765
47766
# File 'ext/ctp/ctp.cxx', line 47739

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