Class: Ctp::CThostFtdcQryFrontStatusField

Inherits:
Object
  • Object
show all
Defined in:
ext/ctp/ctp.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



60844
60845
60846
60847
60848
60849
60850
60851
60852
60853
60854
60855
60856
60857
# File 'ext/ctp/ctp.cxx', line 60844

SWIGINTERN VALUE
_wrap_new_CThostFtdcQryFrontStatusField(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryFrontStatusField";
  CThostFtdcQryFrontStatusField *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (CThostFtdcQryFrontStatusField *)new CThostFtdcQryFrontStatusField();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Instance Method Details

#FrontID(*args) ⇒ Object



60805
60806
60807
60808
60809
60810
60811
60812
60813
60814
60815
60816
60817
60818
60819
60820
60821
60822
60823
60824
60825
60826
# File 'ext/ctp/ctp.cxx', line 60805

SWIGINTERN VALUE
_wrap_CThostFtdcQryFrontStatusField_FrontID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryFrontStatusField *arg1 = (CThostFtdcQryFrontStatusField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcFrontIDType 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_CThostFtdcQryFrontStatusField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryFrontStatusField *","FrontID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryFrontStatusField * >(argp1);
  result = (TThostFtdcFrontIDType) ((arg1)->FrontID);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#FrontID=(*args) ⇒ Object



60776
60777
60778
60779
60780
60781
60782
60783
60784
60785
60786
60787
60788
60789
60790
60791
60792
60793
60794
60795
60796
60797
60798
60799
60800
60801
60802
# File 'ext/ctp/ctp.cxx', line 60776

SWIGINTERN VALUE
_wrap_CThostFtdcQryFrontStatusField_FrontID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryFrontStatusField *arg1 = (CThostFtdcQryFrontStatusField *) 0 ;
  TThostFtdcFrontIDType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcQryFrontStatusField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryFrontStatusField *","FrontID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryFrontStatusField * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcFrontIDType >(val2);
  if (arg1) (arg1)->FrontID = arg2;
  return Qnil;
fail:
  return Qnil;
}