Method: Ctp::CThostFtdcOpenAccountField#SessionID

Defined in:
ext/ctp/ctp.cxx

#SessionID(*args) ⇒ Object



181984
181985
181986
181987
181988
181989
181990
181991
181992
181993
181994
181995
181996
181997
181998
181999
182000
182001
182002
182003
182004
182005
# File 'ext/ctp/ctp.cxx', line 181984

SWIGINTERN VALUE
_wrap_CThostFtdcOpenAccountField_SessionID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOpenAccountField *arg1 = (CThostFtdcOpenAccountField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcSessionIDType result;
  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 *","SessionID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOpenAccountField * >(argp1);
  result = (TThostFtdcSessionIDType) ((arg1)->SessionID);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}