Class: Ctp::CThostFtdcDisseminationField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
# File 'ext/ctp/ctp.cxx', line 4531

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

Instance Method Details

#SequenceNo(*args) ⇒ Object



4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
# File 'ext/ctp/ctp.cxx', line 4492

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

#SequenceNo=(*args) ⇒ Object



4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
# File 'ext/ctp/ctp.cxx', line 4463

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

#SequenceSeries(*args) ⇒ Object



4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
# File 'ext/ctp/ctp.cxx', line 4439

SWIGINTERN VALUE
_wrap_CThostFtdcDisseminationField_SequenceSeries_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcDisseminationField *arg1 = (CThostFtdcDisseminationField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcSequenceSeriesType 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_CThostFtdcDisseminationField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDisseminationField *","SequenceSeries", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcDisseminationField * >(argp1);
  result = (TThostFtdcSequenceSeriesType) ((arg1)->SequenceSeries);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}

#SequenceSeries=(*args) ⇒ Object



4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
# File 'ext/ctp/ctp.cxx', line 4410

SWIGINTERN VALUE
_wrap_CThostFtdcDisseminationField_SequenceSeries_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcDisseminationField *arg1 = (CThostFtdcDisseminationField *) 0 ;
  TThostFtdcSequenceSeriesType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  short 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_CThostFtdcDisseminationField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcDisseminationField *","SequenceSeries", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcDisseminationField * >(argp1);
  ecode2 = SWIG_AsVal_short(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceSeriesType","SequenceSeries", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcSequenceSeriesType >(val2);
  if (arg1) (arg1)->SequenceSeries = arg2;
  return Qnil;
fail:
  return Qnil;
}