Class: Ctp::CThostFtdcMarketDataBid23Field

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



100394
100395
100396
100397
100398
100399
100400
100401
100402
100403
100404
100405
100406
100407
# File 'ext/ctp/ctp.cxx', line 100394

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

Instance Method Details

#BidPrice2(*args) ⇒ Object



100196
100197
100198
100199
100200
100201
100202
100203
100204
100205
100206
100207
100208
100209
100210
100211
100212
100213
100214
100215
100216
100217
# File 'ext/ctp/ctp.cxx', line 100196

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

#BidPrice2=(*args) ⇒ Object



100167
100168
100169
100170
100171
100172
100173
100174
100175
100176
100177
100178
100179
100180
100181
100182
100183
100184
100185
100186
100187
100188
100189
100190
100191
100192
100193
# File 'ext/ctp/ctp.cxx', line 100167

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

#BidPrice3(*args) ⇒ Object



100302
100303
100304
100305
100306
100307
100308
100309
100310
100311
100312
100313
100314
100315
100316
100317
100318
100319
100320
100321
100322
100323
# File 'ext/ctp/ctp.cxx', line 100302

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

#BidPrice3=(*args) ⇒ Object



100273
100274
100275
100276
100277
100278
100279
100280
100281
100282
100283
100284
100285
100286
100287
100288
100289
100290
100291
100292
100293
100294
100295
100296
100297
100298
100299
# File 'ext/ctp/ctp.cxx', line 100273

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

#BidVolume2(*args) ⇒ Object



100249
100250
100251
100252
100253
100254
100255
100256
100257
100258
100259
100260
100261
100262
100263
100264
100265
100266
100267
100268
100269
100270
# File 'ext/ctp/ctp.cxx', line 100249

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

#BidVolume2=(*args) ⇒ Object



100220
100221
100222
100223
100224
100225
100226
100227
100228
100229
100230
100231
100232
100233
100234
100235
100236
100237
100238
100239
100240
100241
100242
100243
100244
100245
100246
# File 'ext/ctp/ctp.cxx', line 100220

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

#BidVolume3(*args) ⇒ Object



100355
100356
100357
100358
100359
100360
100361
100362
100363
100364
100365
100366
100367
100368
100369
100370
100371
100372
100373
100374
100375
100376
# File 'ext/ctp/ctp.cxx', line 100355

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

#BidVolume3=(*args) ⇒ Object



100326
100327
100328
100329
100330
100331
100332
100333
100334
100335
100336
100337
100338
100339
100340
100341
100342
100343
100344
100345
100346
100347
100348
100349
100350
100351
100352
# File 'ext/ctp/ctp.cxx', line 100326

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