Class: Ctp::CThostFtdcInstrumentMarginRateAdjustField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
# File 'ext/ctp/ctp.cxx', line 28699

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

Instance Method Details

#BrokerID(*args) ⇒ Object



28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
# File 'ext/ctp/ctp.cxx', line 28276

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



28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
# File 'ext/ctp/ctp.cxx', line 28246

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

#HedgeFlag(*args) ⇒ Object



28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
# File 'ext/ctp/ctp.cxx', line 28395

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

#HedgeFlag=(*args) ⇒ Object



28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
# File 'ext/ctp/ctp.cxx', line 28366

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

#InstrumentID(*args) ⇒ Object



28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
# File 'ext/ctp/ctp.cxx', line 28163

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



28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
# File 'ext/ctp/ctp.cxx', line 28133

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



28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
# File 'ext/ctp/ctp.cxx', line 28336

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



28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
# File 'ext/ctp/ctp.cxx', line 28306

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

#InvestorRange(*args) ⇒ Object



28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
# File 'ext/ctp/ctp.cxx', line 28222

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

#InvestorRange=(*args) ⇒ Object



28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219
# File 'ext/ctp/ctp.cxx', line 28193

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

#IsRelative(*args) ⇒ Object



28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
# File 'ext/ctp/ctp.cxx', line 28660

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

#IsRelative=(*args) ⇒ Object



28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
# File 'ext/ctp/ctp.cxx', line 28631

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

#LongMarginRatioByMoney(*args) ⇒ Object



28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
# File 'ext/ctp/ctp.cxx', line 28448

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

#LongMarginRatioByMoney=(*args) ⇒ Object



28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
# File 'ext/ctp/ctp.cxx', line 28419

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

#LongMarginRatioByVolume(*args) ⇒ Object



28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
# File 'ext/ctp/ctp.cxx', line 28501

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

#LongMarginRatioByVolume=(*args) ⇒ Object



28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
# File 'ext/ctp/ctp.cxx', line 28472

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

#ShortMarginRatioByMoney(*args) ⇒ Object



28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
# File 'ext/ctp/ctp.cxx', line 28554

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

#ShortMarginRatioByMoney=(*args) ⇒ Object



28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
# File 'ext/ctp/ctp.cxx', line 28525

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

#ShortMarginRatioByVolume(*args) ⇒ Object



28607
28608
28609
28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628
# File 'ext/ctp/ctp.cxx', line 28607

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

#ShortMarginRatioByVolume=(*args) ⇒ Object



28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
# File 'ext/ctp/ctp.cxx', line 28578

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