Class: Ctp::CThostFtdcQryCombinationLegField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



109190
109191
109192
109193
109194
109195
109196
109197
109198
109199
109200
109201
109202
109203
# File 'ext/ctp/ctp.cxx', line 109190

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

Instance Method Details

#CombInstrumentID(*args) ⇒ Object



109032
109033
109034
109035
109036
109037
109038
109039
109040
109041
109042
109043
109044
109045
109046
109047
109048
109049
109050
109051
109052
109053
109054
109055
109056
109057
109058
109059
# File 'ext/ctp/ctp.cxx', line 109032

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

#CombInstrumentID=(*args) ⇒ Object



109002
109003
109004
109005
109006
109007
109008
109009
109010
109011
109012
109013
109014
109015
109016
109017
109018
109019
109020
109021
109022
109023
109024
109025
109026
109027
109028
109029
# File 'ext/ctp/ctp.cxx', line 109002

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

#LegID(*args) ⇒ Object



109091
109092
109093
109094
109095
109096
109097
109098
109099
109100
109101
109102
109103
109104
109105
109106
109107
109108
109109
109110
109111
109112
# File 'ext/ctp/ctp.cxx', line 109091

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

#LegID=(*args) ⇒ Object



109062
109063
109064
109065
109066
109067
109068
109069
109070
109071
109072
109073
109074
109075
109076
109077
109078
109079
109080
109081
109082
109083
109084
109085
109086
109087
109088
# File 'ext/ctp/ctp.cxx', line 109062

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

#LegInstrumentID(*args) ⇒ Object



109145
109146
109147
109148
109149
109150
109151
109152
109153
109154
109155
109156
109157
109158
109159
109160
109161
109162
109163
109164
109165
109166
109167
109168
109169
109170
109171
109172
# File 'ext/ctp/ctp.cxx', line 109145

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

#LegInstrumentID=(*args) ⇒ Object



109115
109116
109117
109118
109119
109120
109121
109122
109123
109124
109125
109126
109127
109128
109129
109130
109131
109132
109133
109134
109135
109136
109137
109138
109139
109140
109141
109142
# File 'ext/ctp/ctp.cxx', line 109115

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