Class: Ctp::CThostFtdcMarketDataBid45Field

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



100896
100897
100898
100899
100900
100901
100902
100903
100904
100905
100906
100907
100908
100909
# File 'ext/ctp/ctp.cxx', line 100896

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

Instance Method Details

#BidPrice4(*args) ⇒ Object



100698
100699
100700
100701
100702
100703
100704
100705
100706
100707
100708
100709
100710
100711
100712
100713
100714
100715
100716
100717
100718
100719
# File 'ext/ctp/ctp.cxx', line 100698

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

#BidPrice4=(*args) ⇒ Object



100669
100670
100671
100672
100673
100674
100675
100676
100677
100678
100679
100680
100681
100682
100683
100684
100685
100686
100687
100688
100689
100690
100691
100692
100693
100694
100695
# File 'ext/ctp/ctp.cxx', line 100669

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

#BidPrice5(*args) ⇒ Object



100804
100805
100806
100807
100808
100809
100810
100811
100812
100813
100814
100815
100816
100817
100818
100819
100820
100821
100822
100823
100824
100825
# File 'ext/ctp/ctp.cxx', line 100804

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

#BidPrice5=(*args) ⇒ Object



100775
100776
100777
100778
100779
100780
100781
100782
100783
100784
100785
100786
100787
100788
100789
100790
100791
100792
100793
100794
100795
100796
100797
100798
100799
100800
100801
# File 'ext/ctp/ctp.cxx', line 100775

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

#BidVolume4(*args) ⇒ Object



100751
100752
100753
100754
100755
100756
100757
100758
100759
100760
100761
100762
100763
100764
100765
100766
100767
100768
100769
100770
100771
100772
# File 'ext/ctp/ctp.cxx', line 100751

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

#BidVolume4=(*args) ⇒ Object



100722
100723
100724
100725
100726
100727
100728
100729
100730
100731
100732
100733
100734
100735
100736
100737
100738
100739
100740
100741
100742
100743
100744
100745
100746
100747
100748
# File 'ext/ctp/ctp.cxx', line 100722

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBid45Field_BidVolume4_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *) 0 ;
  TThostFtdcVolumeType 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_CThostFtdcMarketDataBid45Field, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid45Field *","BidVolume4", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataBid45Field * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume4", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcVolumeType >(val2);
  if (arg1) (arg1)->BidVolume4 = arg2;
  return Qnil;
fail:
  return Qnil;
}

#BidVolume5(*args) ⇒ Object



100857
100858
100859
100860
100861
100862
100863
100864
100865
100866
100867
100868
100869
100870
100871
100872
100873
100874
100875
100876
100877
100878
# File 'ext/ctp/ctp.cxx', line 100857

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

#BidVolume5=(*args) ⇒ Object



100828
100829
100830
100831
100832
100833
100834
100835
100836
100837
100838
100839
100840
100841
100842
100843
100844
100845
100846
100847
100848
100849
100850
100851
100852
100853
100854
# File 'ext/ctp/ctp.cxx', line 100828

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBid45Field_BidVolume5_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataBid45Field *arg1 = (CThostFtdcMarketDataBid45Field *) 0 ;
  TThostFtdcVolumeType 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_CThostFtdcMarketDataBid45Field, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBid45Field *","BidVolume5", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataBid45Field * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume5", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcVolumeType >(val2);
  if (arg1) (arg1)->BidVolume5 = arg2;
  return Qnil;
fail:
  return Qnil;
}