Class: Ctp::CThostFtdcQryProductField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



62031
62032
62033
62034
62035
62036
62037
62038
62039
62040
62041
62042
62043
62044
# File 'ext/ctp/ctp.cxx', line 62031

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

Instance Method Details

#ProductClass(*args) ⇒ Object



61992
61993
61994
61995
61996
61997
61998
61999
62000
62001
62002
62003
62004
62005
62006
62007
62008
62009
62010
62011
62012
62013
# File 'ext/ctp/ctp.cxx', line 61992

SWIGINTERN VALUE
_wrap_CThostFtdcQryProductField_ProductClass_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryProductField *arg1 = (CThostFtdcQryProductField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcProductClassType 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_CThostFtdcQryProductField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductField *","ProductClass", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryProductField * >(argp1);
  result = (TThostFtdcProductClassType) ((arg1)->ProductClass);
  vresult = SWIG_From_char(static_cast< char >(result));
  return vresult;
fail:
  return Qnil;
}

#ProductClass=(*args) ⇒ Object



61963
61964
61965
61966
61967
61968
61969
61970
61971
61972
61973
61974
61975
61976
61977
61978
61979
61980
61981
61982
61983
61984
61985
61986
61987
61988
61989
# File 'ext/ctp/ctp.cxx', line 61963

SWIGINTERN VALUE
_wrap_CThostFtdcQryProductField_ProductClass_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryProductField *arg1 = (CThostFtdcQryProductField *) 0 ;
  TThostFtdcProductClassType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char 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_CThostFtdcQryProductField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductField *","ProductClass", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryProductField * >(argp1);
  ecode2 = SWIG_AsVal_char(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcProductClassType","ProductClass", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcProductClassType >(val2);
  if (arg1) (arg1)->ProductClass = arg2;
  return Qnil;
fail:
  return Qnil;
}

#ProductID(*args) ⇒ Object



61933
61934
61935
61936
61937
61938
61939
61940
61941
61942
61943
61944
61945
61946
61947
61948
61949
61950
61951
61952
61953
61954
61955
61956
61957
61958
61959
61960
# File 'ext/ctp/ctp.cxx', line 61933

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

#ProductID=(*args) ⇒ Object



61903
61904
61905
61906
61907
61908
61909
61910
61911
61912
61913
61914
61915
61916
61917
61918
61919
61920
61921
61922
61923
61924
61925
61926
61927
61928
61929
61930
# File 'ext/ctp/ctp.cxx', line 61903

SWIGINTERN VALUE
_wrap_CThostFtdcQryProductField_ProductID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryProductField *arg1 = (CThostFtdcQryProductField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[31] ;
  int res2 ;
  
  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_CThostFtdcQryProductField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductField *","ProductID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryProductField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 31);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductID", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->ProductID,arg2,31*sizeof(char));
  else memset(arg1->ProductID,0,31*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}