Class: Ctp::CThostFtdcExchangeSequenceField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



126221
126222
126223
126224
126225
126226
126227
126228
126229
126230
126231
126232
126233
126234
# File 'ext/ctp/ctp.cxx', line 126221

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

Instance Method Details

#ExchangeID(*args) ⇒ Object



126070
126071
126072
126073
126074
126075
126076
126077
126078
126079
126080
126081
126082
126083
126084
126085
126086
126087
126088
126089
126090
126091
126092
126093
126094
126095
126096
126097
# File 'ext/ctp/ctp.cxx', line 126070

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

#ExchangeID=(*args) ⇒ Object



126040
126041
126042
126043
126044
126045
126046
126047
126048
126049
126050
126051
126052
126053
126054
126055
126056
126057
126058
126059
126060
126061
126062
126063
126064
126065
126066
126067
# File 'ext/ctp/ctp.cxx', line 126040

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

#MarketStatus(*args) ⇒ Object



126182
126183
126184
126185
126186
126187
126188
126189
126190
126191
126192
126193
126194
126195
126196
126197
126198
126199
126200
126201
126202
126203
# File 'ext/ctp/ctp.cxx', line 126182

SWIGINTERN VALUE
_wrap_CThostFtdcExchangeSequenceField_MarketStatus_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcExchangeSequenceField *arg1 = (CThostFtdcExchangeSequenceField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcInstrumentStatusType 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_CThostFtdcExchangeSequenceField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeSequenceField *","MarketStatus", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcExchangeSequenceField * >(argp1);
  result = (TThostFtdcInstrumentStatusType) ((arg1)->MarketStatus);
  vresult = SWIG_From_char(static_cast< char >(result));
  return vresult;
fail:
  return Qnil;
}

#MarketStatus=(*args) ⇒ Object



126153
126154
126155
126156
126157
126158
126159
126160
126161
126162
126163
126164
126165
126166
126167
126168
126169
126170
126171
126172
126173
126174
126175
126176
126177
126178
126179
# File 'ext/ctp/ctp.cxx', line 126153

SWIGINTERN VALUE
_wrap_CThostFtdcExchangeSequenceField_MarketStatus_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcExchangeSequenceField *arg1 = (CThostFtdcExchangeSequenceField *) 0 ;
  TThostFtdcInstrumentStatusType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char 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_CThostFtdcExchangeSequenceField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeSequenceField *","MarketStatus", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcExchangeSequenceField * >(argp1);
  ecode2 = SWIG_AsVal_char(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstrumentStatusType","MarketStatus", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcInstrumentStatusType >(val2);
  if (arg1) (arg1)->MarketStatus = arg2;
  return Qnil;
fail:
  return Qnil;
}

#SequenceNo(*args) ⇒ Object



126129
126130
126131
126132
126133
126134
126135
126136
126137
126138
126139
126140
126141
126142
126143
126144
126145
126146
126147
126148
126149
126150
# File 'ext/ctp/ctp.cxx', line 126129

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

#SequenceNo=(*args) ⇒ Object



126100
126101
126102
126103
126104
126105
126106
126107
126108
126109
126110
126111
126112
126113
126114
126115
126116
126117
126118
126119
126120
126121
126122
126123
126124
126125
126126
# File 'ext/ctp/ctp.cxx', line 126100

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