Class: Ctp::CThostFtdcExchangeCombActionField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



96917
96918
96919
96920
96921
96922
96923
96924
96925
96926
96927
96928
96929
96930
# File 'ext/ctp/ctp.cxx', line 96917

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

Instance Method Details

#ActionLocalID(*args) ⇒ Object



96247
96248
96249
96250
96251
96252
96253
96254
96255
96256
96257
96258
96259
96260
96261
96262
96263
96264
96265
96266
96267
96268
96269
96270
96271
96272
96273
96274
# File 'ext/ctp/ctp.cxx', line 96247

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

#ActionLocalID=(*args) ⇒ Object



96217
96218
96219
96220
96221
96222
96223
96224
96225
96226
96227
96228
96229
96230
96231
96232
96233
96234
96235
96236
96237
96238
96239
96240
96241
96242
96243
96244
# File 'ext/ctp/ctp.cxx', line 96217

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

#ActionStatus(*args) ⇒ Object



96659
96660
96661
96662
96663
96664
96665
96666
96667
96668
96669
96670
96671
96672
96673
96674
96675
96676
96677
96678
96679
96680
# File 'ext/ctp/ctp.cxx', line 96659

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

#ActionStatus=(*args) ⇒ Object



96630
96631
96632
96633
96634
96635
96636
96637
96638
96639
96640
96641
96642
96643
96644
96645
96646
96647
96648
96649
96650
96651
96652
96653
96654
96655
96656
# File 'ext/ctp/ctp.cxx', line 96630

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

#ClientID(*args) ⇒ Object



96427
96428
96429
96430
96431
96432
96433
96434
96435
96436
96437
96438
96439
96440
96441
96442
96443
96444
96445
96446
96447
96448
96449
96450
96451
96452
96453
96454
# File 'ext/ctp/ctp.cxx', line 96427

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

#ClientID=(*args) ⇒ Object



96397
96398
96399
96400
96401
96402
96403
96404
96405
96406
96407
96408
96409
96410
96411
96412
96413
96414
96415
96416
96417
96418
96419
96420
96421
96422
96423
96424
# File 'ext/ctp/ctp.cxx', line 96397

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

#CombDirection(*args) ⇒ Object



96140
96141
96142
96143
96144
96145
96146
96147
96148
96149
96150
96151
96152
96153
96154
96155
96156
96157
96158
96159
96160
96161
# File 'ext/ctp/ctp.cxx', line 96140

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

#CombDirection=(*args) ⇒ Object



96111
96112
96113
96114
96115
96116
96117
96118
96119
96120
96121
96122
96123
96124
96125
96126
96127
96128
96129
96130
96131
96132
96133
96134
96135
96136
96137
# File 'ext/ctp/ctp.cxx', line 96111

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

#Direction(*args) ⇒ Object



96034
96035
96036
96037
96038
96039
96040
96041
96042
96043
96044
96045
96046
96047
96048
96049
96050
96051
96052
96053
96054
96055
# File 'ext/ctp/ctp.cxx', line 96034

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

#Direction=(*args) ⇒ Object



96005
96006
96007
96008
96009
96010
96011
96012
96013
96014
96015
96016
96017
96018
96019
96020
96021
96022
96023
96024
96025
96026
96027
96028
96029
96030
96031
# File 'ext/ctp/ctp.cxx', line 96005

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

#ExchangeID(*args) ⇒ Object



96307
96308
96309
96310
96311
96312
96313
96314
96315
96316
96317
96318
96319
96320
96321
96322
96323
96324
96325
96326
96327
96328
96329
96330
96331
96332
96333
96334
# File 'ext/ctp/ctp.cxx', line 96307

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



96277
96278
96279
96280
96281
96282
96283
96284
96285
96286
96287
96288
96289
96290
96291
96292
96293
96294
96295
96296
96297
96298
96299
96300
96301
96302
96303
96304
# File 'ext/ctp/ctp.cxx', line 96277

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

#ExchangeInstID(*args) ⇒ Object



96487
96488
96489
96490
96491
96492
96493
96494
96495
96496
96497
96498
96499
96500
96501
96502
96503
96504
96505
96506
96507
96508
96509
96510
96511
96512
96513
96514
# File 'ext/ctp/ctp.cxx', line 96487

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

#ExchangeInstID=(*args) ⇒ Object



96457
96458
96459
96460
96461
96462
96463
96464
96465
96466
96467
96468
96469
96470
96471
96472
96473
96474
96475
96476
96477
96478
96479
96480
96481
96482
96483
96484
# File 'ext/ctp/ctp.cxx', line 96457

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

#HedgeFlag(*args) ⇒ Object



96193
96194
96195
96196
96197
96198
96199
96200
96201
96202
96203
96204
96205
96206
96207
96208
96209
96210
96211
96212
96213
96214
# File 'ext/ctp/ctp.cxx', line 96193

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

#HedgeFlag=(*args) ⇒ Object



96164
96165
96166
96167
96168
96169
96170
96171
96172
96173
96174
96175
96176
96177
96178
96179
96180
96181
96182
96183
96184
96185
96186
96187
96188
96189
96190
# File 'ext/ctp/ctp.cxx', line 96164

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

#InstallID(*args) ⇒ Object



96606
96607
96608
96609
96610
96611
96612
96613
96614
96615
96616
96617
96618
96619
96620
96621
96622
96623
96624
96625
96626
96627
# File 'ext/ctp/ctp.cxx', line 96606

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

#InstallID=(*args) ⇒ Object



96577
96578
96579
96580
96581
96582
96583
96584
96585
96586
96587
96588
96589
96590
96591
96592
96593
96594
96595
96596
96597
96598
96599
96600
96601
96602
96603
# File 'ext/ctp/ctp.cxx', line 96577

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

#NotifySequence(*args) ⇒ Object



96712
96713
96714
96715
96716
96717
96718
96719
96720
96721
96722
96723
96724
96725
96726
96727
96728
96729
96730
96731
96732
96733
# File 'ext/ctp/ctp.cxx', line 96712

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

#NotifySequence=(*args) ⇒ Object



96683
96684
96685
96686
96687
96688
96689
96690
96691
96692
96693
96694
96695
96696
96697
96698
96699
96700
96701
96702
96703
96704
96705
96706
96707
96708
96709
# File 'ext/ctp/ctp.cxx', line 96683

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

#ParticipantID(*args) ⇒ Object



96367
96368
96369
96370
96371
96372
96373
96374
96375
96376
96377
96378
96379
96380
96381
96382
96383
96384
96385
96386
96387
96388
96389
96390
96391
96392
96393
96394
# File 'ext/ctp/ctp.cxx', line 96367

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

#ParticipantID=(*args) ⇒ Object



96337
96338
96339
96340
96341
96342
96343
96344
96345
96346
96347
96348
96349
96350
96351
96352
96353
96354
96355
96356
96357
96358
96359
96360
96361
96362
96363
96364
# File 'ext/ctp/ctp.cxx', line 96337

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

#SequenceNo(*args) ⇒ Object



96878
96879
96880
96881
96882
96883
96884
96885
96886
96887
96888
96889
96890
96891
96892
96893
96894
96895
96896
96897
96898
96899
# File 'ext/ctp/ctp.cxx', line 96878

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

#SequenceNo=(*args) ⇒ Object



96849
96850
96851
96852
96853
96854
96855
96856
96857
96858
96859
96860
96861
96862
96863
96864
96865
96866
96867
96868
96869
96870
96871
96872
96873
96874
96875
# File 'ext/ctp/ctp.cxx', line 96849

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

#SettlementID(*args) ⇒ Object



96825
96826
96827
96828
96829
96830
96831
96832
96833
96834
96835
96836
96837
96838
96839
96840
96841
96842
96843
96844
96845
96846
# File 'ext/ctp/ctp.cxx', line 96825

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

#SettlementID=(*args) ⇒ Object



96796
96797
96798
96799
96800
96801
96802
96803
96804
96805
96806
96807
96808
96809
96810
96811
96812
96813
96814
96815
96816
96817
96818
96819
96820
96821
96822
# File 'ext/ctp/ctp.cxx', line 96796

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

#TraderID(*args) ⇒ Object



96547
96548
96549
96550
96551
96552
96553
96554
96555
96556
96557
96558
96559
96560
96561
96562
96563
96564
96565
96566
96567
96568
96569
96570
96571
96572
96573
96574
# File 'ext/ctp/ctp.cxx', line 96547

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

#TraderID=(*args) ⇒ Object



96517
96518
96519
96520
96521
96522
96523
96524
96525
96526
96527
96528
96529
96530
96531
96532
96533
96534
96535
96536
96537
96538
96539
96540
96541
96542
96543
96544
# File 'ext/ctp/ctp.cxx', line 96517

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

#TradingDay(*args) ⇒ Object



96766
96767
96768
96769
96770
96771
96772
96773
96774
96775
96776
96777
96778
96779
96780
96781
96782
96783
96784
96785
96786
96787
96788
96789
96790
96791
96792
96793
# File 'ext/ctp/ctp.cxx', line 96766

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

#TradingDay=(*args) ⇒ Object



96736
96737
96738
96739
96740
96741
96742
96743
96744
96745
96746
96747
96748
96749
96750
96751
96752
96753
96754
96755
96756
96757
96758
96759
96760
96761
96762
96763
# File 'ext/ctp/ctp.cxx', line 96736

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

#Volume(*args) ⇒ Object



96087
96088
96089
96090
96091
96092
96093
96094
96095
96096
96097
96098
96099
96100
96101
96102
96103
96104
96105
96106
96107
96108
# File 'ext/ctp/ctp.cxx', line 96087

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

#Volume=(*args) ⇒ Object



96058
96059
96060
96061
96062
96063
96064
96065
96066
96067
96068
96069
96070
96071
96072
96073
96074
96075
96076
96077
96078
96079
96080
96081
96082
96083
96084
# File 'ext/ctp/ctp.cxx', line 96058

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