Class: Ctp::CThostFtdcMarketDataBaseField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



99178
99179
99180
99181
99182
99183
99184
99185
99186
99187
99188
99189
99190
99191
# File 'ext/ctp/ctp.cxx', line 99178

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

Instance Method Details

#PreClosePrice(*args) ⇒ Object



99033
99034
99035
99036
99037
99038
99039
99040
99041
99042
99043
99044
99045
99046
99047
99048
99049
99050
99051
99052
99053
99054
# File 'ext/ctp/ctp.cxx', line 99033

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBaseField_PreClosePrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType 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_CThostFtdcMarketDataBaseField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreClosePrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->PreClosePrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#PreClosePrice=(*args) ⇒ Object



99004
99005
99006
99007
99008
99009
99010
99011
99012
99013
99014
99015
99016
99017
99018
99019
99020
99021
99022
99023
99024
99025
99026
99027
99028
99029
99030
# File 'ext/ctp/ctp.cxx', line 99004

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBaseField_PreClosePrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double 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_CThostFtdcMarketDataBaseField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreClosePrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreClosePrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->PreClosePrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#PreDelta(*args) ⇒ Object



99139
99140
99141
99142
99143
99144
99145
99146
99147
99148
99149
99150
99151
99152
99153
99154
99155
99156
99157
99158
99159
99160
# File 'ext/ctp/ctp.cxx', line 99139

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBaseField_PreDelta_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcRatioType 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_CThostFtdcMarketDataBaseField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreDelta", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1);
  result = (TThostFtdcRatioType) ((arg1)->PreDelta);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#PreDelta=(*args) ⇒ Object



99110
99111
99112
99113
99114
99115
99116
99117
99118
99119
99120
99121
99122
99123
99124
99125
99126
99127
99128
99129
99130
99131
99132
99133
99134
99135
99136
# File 'ext/ctp/ctp.cxx', line 99110

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBaseField_PreDelta_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ;
  TThostFtdcRatioType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double 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_CThostFtdcMarketDataBaseField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreDelta", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","PreDelta", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcRatioType >(val2);
  if (arg1) (arg1)->PreDelta = arg2;
  return Qnil;
fail:
  return Qnil;
}

#PreOpenInterest(*args) ⇒ Object



99086
99087
99088
99089
99090
99091
99092
99093
99094
99095
99096
99097
99098
99099
99100
99101
99102
99103
99104
99105
99106
99107
# File 'ext/ctp/ctp.cxx', line 99086

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBaseField_PreOpenInterest_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcLargeVolumeType 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_CThostFtdcMarketDataBaseField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreOpenInterest", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1);
  result = (TThostFtdcLargeVolumeType) ((arg1)->PreOpenInterest);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#PreOpenInterest=(*args) ⇒ Object



99057
99058
99059
99060
99061
99062
99063
99064
99065
99066
99067
99068
99069
99070
99071
99072
99073
99074
99075
99076
99077
99078
99079
99080
99081
99082
99083
# File 'ext/ctp/ctp.cxx', line 99057

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBaseField_PreOpenInterest_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ;
  TThostFtdcLargeVolumeType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double 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_CThostFtdcMarketDataBaseField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreOpenInterest", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLargeVolumeType","PreOpenInterest", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcLargeVolumeType >(val2);
  if (arg1) (arg1)->PreOpenInterest = arg2;
  return Qnil;
fail:
  return Qnil;
}

#PreSettlementPrice(*args) ⇒ Object



98980
98981
98982
98983
98984
98985
98986
98987
98988
98989
98990
98991
98992
98993
98994
98995
98996
98997
98998
98999
99000
99001
# File 'ext/ctp/ctp.cxx', line 98980

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBaseField_PreSettlementPrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType 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_CThostFtdcMarketDataBaseField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreSettlementPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->PreSettlementPrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#PreSettlementPrice=(*args) ⇒ Object



98951
98952
98953
98954
98955
98956
98957
98958
98959
98960
98961
98962
98963
98964
98965
98966
98967
98968
98969
98970
98971
98972
98973
98974
98975
98976
98977
# File 'ext/ctp/ctp.cxx', line 98951

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBaseField_PreSettlementPrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataBaseField *arg1 = (CThostFtdcMarketDataBaseField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double 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_CThostFtdcMarketDataBaseField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBaseField *","PreSettlementPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataBaseField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreSettlementPrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->PreSettlementPrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#TradingDay(*args) ⇒ Object



98921
98922
98923
98924
98925
98926
98927
98928
98929
98930
98931
98932
98933
98934
98935
98936
98937
98938
98939
98940
98941
98942
98943
98944
98945
98946
98947
98948
# File 'ext/ctp/ctp.cxx', line 98921

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

#TradingDay=(*args) ⇒ Object



98891
98892
98893
98894
98895
98896
98897
98898
98899
98900
98901
98902
98903
98904
98905
98906
98907
98908
98909
98910
98911
98912
98913
98914
98915
98916
98917
98918
# File 'ext/ctp/ctp.cxx', line 98891

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