Class: Ctp::CThostFtdcCommRateModelField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



130951
130952
130953
130954
130955
130956
130957
130958
130959
130960
130961
130962
130963
130964
# File 'ext/ctp/ctp.cxx', line 130951

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

Instance Method Details

#BrokerID(*args) ⇒ Object



130786
130787
130788
130789
130790
130791
130792
130793
130794
130795
130796
130797
130798
130799
130800
130801
130802
130803
130804
130805
130806
130807
130808
130809
130810
130811
130812
130813
# File 'ext/ctp/ctp.cxx', line 130786

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

#BrokerID=(*args) ⇒ Object



130756
130757
130758
130759
130760
130761
130762
130763
130764
130765
130766
130767
130768
130769
130770
130771
130772
130773
130774
130775
130776
130777
130778
130779
130780
130781
130782
130783
# File 'ext/ctp/ctp.cxx', line 130756

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

#CommModelID(*args) ⇒ Object



130846
130847
130848
130849
130850
130851
130852
130853
130854
130855
130856
130857
130858
130859
130860
130861
130862
130863
130864
130865
130866
130867
130868
130869
130870
130871
130872
130873
# File 'ext/ctp/ctp.cxx', line 130846

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

#CommModelID=(*args) ⇒ Object



130816
130817
130818
130819
130820
130821
130822
130823
130824
130825
130826
130827
130828
130829
130830
130831
130832
130833
130834
130835
130836
130837
130838
130839
130840
130841
130842
130843
# File 'ext/ctp/ctp.cxx', line 130816

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

#CommModelName(*args) ⇒ Object



130906
130907
130908
130909
130910
130911
130912
130913
130914
130915
130916
130917
130918
130919
130920
130921
130922
130923
130924
130925
130926
130927
130928
130929
130930
130931
130932
130933
# File 'ext/ctp/ctp.cxx', line 130906

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

#CommModelName=(*args) ⇒ Object



130876
130877
130878
130879
130880
130881
130882
130883
130884
130885
130886
130887
130888
130889
130890
130891
130892
130893
130894
130895
130896
130897
130898
130899
130900
130901
130902
130903
# File 'ext/ctp/ctp.cxx', line 130876

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