Class: Ctp::CThostFtdcBrokerDepositField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



128867
128868
128869
128870
128871
128872
128873
128874
128875
128876
128877
128878
128879
128880
# File 'ext/ctp/ctp.cxx', line 128867

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

Instance Method Details

#Available(*args) ⇒ Object



128722
128723
128724
128725
128726
128727
128728
128729
128730
128731
128732
128733
128734
128735
128736
128737
128738
128739
128740
128741
128742
128743
# File 'ext/ctp/ctp.cxx', line 128722

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

#Available=(*args) ⇒ Object



128693
128694
128695
128696
128697
128698
128699
128700
128701
128702
128703
128704
128705
128706
128707
128708
128709
128710
128711
128712
128713
128714
128715
128716
128717
128718
128719
# File 'ext/ctp/ctp.cxx', line 128693

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

#Balance(*args) ⇒ Object



128563
128564
128565
128566
128567
128568
128569
128570
128571
128572
128573
128574
128575
128576
128577
128578
128579
128580
128581
128582
128583
128584
# File 'ext/ctp/ctp.cxx', line 128563

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

#Balance=(*args) ⇒ Object



128534
128535
128536
128537
128538
128539
128540
128541
128542
128543
128544
128545
128546
128547
128548
128549
128550
128551
128552
128553
128554
128555
128556
128557
128558
128559
128560
# File 'ext/ctp/ctp.cxx', line 128534

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

#BrokerID(*args) ⇒ Object



128225
128226
128227
128228
128229
128230
128231
128232
128233
128234
128235
128236
128237
128238
128239
128240
128241
128242
128243
128244
128245
128246
128247
128248
128249
128250
128251
128252
# File 'ext/ctp/ctp.cxx', line 128225

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



128195
128196
128197
128198
128199
128200
128201
128202
128203
128204
128205
128206
128207
128208
128209
128210
128211
128212
128213
128214
128215
128216
128217
128218
128219
128220
128221
128222
# File 'ext/ctp/ctp.cxx', line 128195

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

#CloseProfit(*args) ⇒ Object



128510
128511
128512
128513
128514
128515
128516
128517
128518
128519
128520
128521
128522
128523
128524
128525
128526
128527
128528
128529
128530
128531
# File 'ext/ctp/ctp.cxx', line 128510

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

#CloseProfit=(*args) ⇒ Object



128481
128482
128483
128484
128485
128486
128487
128488
128489
128490
128491
128492
128493
128494
128495
128496
128497
128498
128499
128500
128501
128502
128503
128504
128505
128506
128507
# File 'ext/ctp/ctp.cxx', line 128481

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

#CurrMargin(*args) ⇒ Object



128457
128458
128459
128460
128461
128462
128463
128464
128465
128466
128467
128468
128469
128470
128471
128472
128473
128474
128475
128476
128477
128478
# File 'ext/ctp/ctp.cxx', line 128457

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

#CurrMargin=(*args) ⇒ Object



128428
128429
128430
128431
128432
128433
128434
128435
128436
128437
128438
128439
128440
128441
128442
128443
128444
128445
128446
128447
128448
128449
128450
128451
128452
128453
128454
# File 'ext/ctp/ctp.cxx', line 128428

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

#Deposit(*args) ⇒ Object



128616
128617
128618
128619
128620
128621
128622
128623
128624
128625
128626
128627
128628
128629
128630
128631
128632
128633
128634
128635
128636
128637
# File 'ext/ctp/ctp.cxx', line 128616

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

#Deposit=(*args) ⇒ Object



128587
128588
128589
128590
128591
128592
128593
128594
128595
128596
128597
128598
128599
128600
128601
128602
128603
128604
128605
128606
128607
128608
128609
128610
128611
128612
128613
# File 'ext/ctp/ctp.cxx', line 128587

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

#ExchangeID(*args) ⇒ Object



128345
128346
128347
128348
128349
128350
128351
128352
128353
128354
128355
128356
128357
128358
128359
128360
128361
128362
128363
128364
128365
128366
128367
128368
128369
128370
128371
128372
# File 'ext/ctp/ctp.cxx', line 128345

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



128315
128316
128317
128318
128319
128320
128321
128322
128323
128324
128325
128326
128327
128328
128329
128330
128331
128332
128333
128334
128335
128336
128337
128338
128339
128340
128341
128342
# File 'ext/ctp/ctp.cxx', line 128315

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

#FrozenMargin(*args) ⇒ Object



128828
128829
128830
128831
128832
128833
128834
128835
128836
128837
128838
128839
128840
128841
128842
128843
128844
128845
128846
128847
128848
128849
# File 'ext/ctp/ctp.cxx', line 128828

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

#FrozenMargin=(*args) ⇒ Object



128799
128800
128801
128802
128803
128804
128805
128806
128807
128808
128809
128810
128811
128812
128813
128814
128815
128816
128817
128818
128819
128820
128821
128822
128823
128824
128825
# File 'ext/ctp/ctp.cxx', line 128799

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

#ParticipantID(*args) ⇒ Object



128285
128286
128287
128288
128289
128290
128291
128292
128293
128294
128295
128296
128297
128298
128299
128300
128301
128302
128303
128304
128305
128306
128307
128308
128309
128310
128311
128312
# File 'ext/ctp/ctp.cxx', line 128285

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



128255
128256
128257
128258
128259
128260
128261
128262
128263
128264
128265
128266
128267
128268
128269
128270
128271
128272
128273
128274
128275
128276
128277
128278
128279
128280
128281
128282
# File 'ext/ctp/ctp.cxx', line 128255

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

#PreBalance(*args) ⇒ Object



128404
128405
128406
128407
128408
128409
128410
128411
128412
128413
128414
128415
128416
128417
128418
128419
128420
128421
128422
128423
128424
128425
# File 'ext/ctp/ctp.cxx', line 128404

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

#PreBalance=(*args) ⇒ Object



128375
128376
128377
128378
128379
128380
128381
128382
128383
128384
128385
128386
128387
128388
128389
128390
128391
128392
128393
128394
128395
128396
128397
128398
128399
128400
128401
# File 'ext/ctp/ctp.cxx', line 128375

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

#Reserve(*args) ⇒ Object



128775
128776
128777
128778
128779
128780
128781
128782
128783
128784
128785
128786
128787
128788
128789
128790
128791
128792
128793
128794
128795
128796
# File 'ext/ctp/ctp.cxx', line 128775

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

#Reserve=(*args) ⇒ Object



128746
128747
128748
128749
128750
128751
128752
128753
128754
128755
128756
128757
128758
128759
128760
128761
128762
128763
128764
128765
128766
128767
128768
128769
128770
128771
128772
# File 'ext/ctp/ctp.cxx', line 128746

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

#TradingDay(*args) ⇒ Object



128165
128166
128167
128168
128169
128170
128171
128172
128173
128174
128175
128176
128177
128178
128179
128180
128181
128182
128183
128184
128185
128186
128187
128188
128189
128190
128191
128192
# File 'ext/ctp/ctp.cxx', line 128165

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



128135
128136
128137
128138
128139
128140
128141
128142
128143
128144
128145
128146
128147
128148
128149
128150
128151
128152
128153
128154
128155
128156
128157
128158
128159
128160
128161
128162
# File 'ext/ctp/ctp.cxx', line 128135

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

#Withdraw(*args) ⇒ Object



128669
128670
128671
128672
128673
128674
128675
128676
128677
128678
128679
128680
128681
128682
128683
128684
128685
128686
128687
128688
128689
128690
# File 'ext/ctp/ctp.cxx', line 128669

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

#Withdraw=(*args) ⇒ Object



128640
128641
128642
128643
128644
128645
128646
128647
128648
128649
128650
128651
128652
128653
128654
128655
128656
128657
128658
128659
128660
128661
128662
128663
128664
128665
128666
# File 'ext/ctp/ctp.cxx', line 128640

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