Class: Ctp::CThostFtdcQryCommRateModelField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



131110
131111
131112
131113
131114
131115
131116
131117
131118
131119
131120
131121
131122
131123
# File 'ext/ctp/ctp.cxx', line 131110

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

Instance Method Details

#BrokerID(*args) ⇒ Object



131005
131006
131007
131008
131009
131010
131011
131012
131013
131014
131015
131016
131017
131018
131019
131020
131021
131022
131023
131024
131025
131026
131027
131028
131029
131030
131031
131032
# File 'ext/ctp/ctp.cxx', line 131005

SWIGINTERN VALUE
_wrap_CThostFtdcQryCommRateModelField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryCommRateModelField *arg1 = (CThostFtdcQryCommRateModelField *) 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_CThostFtdcQryCommRateModelField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCommRateModelField *","BrokerID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryCommRateModelField * >(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



130975
130976
130977
130978
130979
130980
130981
130982
130983
130984
130985
130986
130987
130988
130989
130990
130991
130992
130993
130994
130995
130996
130997
130998
130999
131000
131001
131002
# File 'ext/ctp/ctp.cxx', line 130975

SWIGINTERN VALUE
_wrap_CThostFtdcQryCommRateModelField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryCommRateModelField *arg1 = (CThostFtdcQryCommRateModelField *) 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_CThostFtdcQryCommRateModelField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCommRateModelField *","BrokerID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryCommRateModelField * >(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



131065
131066
131067
131068
131069
131070
131071
131072
131073
131074
131075
131076
131077
131078
131079
131080
131081
131082
131083
131084
131085
131086
131087
131088
131089
131090
131091
131092
# File 'ext/ctp/ctp.cxx', line 131065

SWIGINTERN VALUE
_wrap_CThostFtdcQryCommRateModelField_CommModelID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryCommRateModelField *arg1 = (CThostFtdcQryCommRateModelField *) 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_CThostFtdcQryCommRateModelField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCommRateModelField *","CommModelID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryCommRateModelField * >(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



131035
131036
131037
131038
131039
131040
131041
131042
131043
131044
131045
131046
131047
131048
131049
131050
131051
131052
131053
131054
131055
131056
131057
131058
131059
131060
131061
131062
# File 'ext/ctp/ctp.cxx', line 131035

SWIGINTERN VALUE
_wrap_CThostFtdcQryCommRateModelField_CommModelID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcQryCommRateModelField *arg1 = (CThostFtdcQryCommRateModelField *) 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_CThostFtdcQryCommRateModelField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCommRateModelField *","CommModelID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcQryCommRateModelField * >(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;
}