Class: Ctp::CThostFtdcQryOptionInstrTradingRightField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



79493
79494
79495
79496
79497
79498
79499
79500
79501
79502
79503
79504
79505
79506
# File 'ext/ctp/ctp.cxx', line 79493

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

Instance Method Details

#BrokerID(*args) ⇒ Object



79275
79276
79277
79278
79279
79280
79281
79282
79283
79284
79285
79286
79287
79288
79289
79290
79291
79292
79293
79294
79295
79296
79297
79298
79299
79300
79301
79302
# File 'ext/ctp/ctp.cxx', line 79275

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



79245
79246
79247
79248
79249
79250
79251
79252
79253
79254
79255
79256
79257
79258
79259
79260
79261
79262
79263
79264
79265
79266
79267
79268
79269
79270
79271
79272
# File 'ext/ctp/ctp.cxx', line 79245

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

#Direction(*args) ⇒ Object



79454
79455
79456
79457
79458
79459
79460
79461
79462
79463
79464
79465
79466
79467
79468
79469
79470
79471
79472
79473
79474
79475
# File 'ext/ctp/ctp.cxx', line 79454

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

#Direction=(*args) ⇒ Object



79425
79426
79427
79428
79429
79430
79431
79432
79433
79434
79435
79436
79437
79438
79439
79440
79441
79442
79443
79444
79445
79446
79447
79448
79449
79450
79451
# File 'ext/ctp/ctp.cxx', line 79425

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

#InstrumentID(*args) ⇒ Object



79395
79396
79397
79398
79399
79400
79401
79402
79403
79404
79405
79406
79407
79408
79409
79410
79411
79412
79413
79414
79415
79416
79417
79418
79419
79420
79421
79422
# File 'ext/ctp/ctp.cxx', line 79395

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

#InstrumentID=(*args) ⇒ Object



79365
79366
79367
79368
79369
79370
79371
79372
79373
79374
79375
79376
79377
79378
79379
79380
79381
79382
79383
79384
79385
79386
79387
79388
79389
79390
79391
79392
# File 'ext/ctp/ctp.cxx', line 79365

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

#InvestorID(*args) ⇒ Object



79335
79336
79337
79338
79339
79340
79341
79342
79343
79344
79345
79346
79347
79348
79349
79350
79351
79352
79353
79354
79355
79356
79357
79358
79359
79360
79361
79362
# File 'ext/ctp/ctp.cxx', line 79335

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

#InvestorID=(*args) ⇒ Object



79305
79306
79307
79308
79309
79310
79311
79312
79313
79314
79315
79316
79317
79318
79319
79320
79321
79322
79323
79324
79325
79326
79327
79328
79329
79330
79331
79332
# File 'ext/ctp/ctp.cxx', line 79305

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