Class: Ctp::CThostFtdcUserSessionField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



47844
47845
47846
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856
47857
# File 'ext/ctp/ctp.cxx', line 47844

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

Instance Method Details

#BrokerID(*args) ⇒ Object



47319
47320
47321
47322
47323
47324
47325
47326
47327
47328
47329
47330
47331
47332
47333
47334
47335
47336
47337
47338
47339
47340
47341
47342
47343
47344
47345
47346
# File 'ext/ctp/ctp.cxx', line 47319

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



47289
47290
47291
47292
47293
47294
47295
47296
47297
47298
47299
47300
47301
47302
47303
47304
47305
47306
47307
47308
47309
47310
47311
47312
47313
47314
47315
47316
# File 'ext/ctp/ctp.cxx', line 47289

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

#FrontID(*args) ⇒ Object



47212
47213
47214
47215
47216
47217
47218
47219
47220
47221
47222
47223
47224
47225
47226
47227
47228
47229
47230
47231
47232
47233
# File 'ext/ctp/ctp.cxx', line 47212

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

#FrontID=(*args) ⇒ Object



47183
47184
47185
47186
47187
47188
47189
47190
47191
47192
47193
47194
47195
47196
47197
47198
47199
47200
47201
47202
47203
47204
47205
47206
47207
47208
47209
# File 'ext/ctp/ctp.cxx', line 47183

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

#InterfaceProductInfo(*args) ⇒ Object



47679
47680
47681
47682
47683
47684
47685
47686
47687
47688
47689
47690
47691
47692
47693
47694
47695
47696
47697
47698
47699
47700
47701
47702
47703
47704
47705
47706
# File 'ext/ctp/ctp.cxx', line 47679

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

#InterfaceProductInfo=(*args) ⇒ Object



47649
47650
47651
47652
47653
47654
47655
47656
47657
47658
47659
47660
47661
47662
47663
47664
47665
47666
47667
47668
47669
47670
47671
47672
47673
47674
47675
47676
# File 'ext/ctp/ctp.cxx', line 47649

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

#IPAddress(*args) ⇒ Object



47559
47560
47561
47562
47563
47564
47565
47566
47567
47568
47569
47570
47571
47572
47573
47574
47575
47576
47577
47578
47579
47580
47581
47582
47583
47584
47585
47586
# File 'ext/ctp/ctp.cxx', line 47559

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

#IPAddress=(*args) ⇒ Object



47529
47530
47531
47532
47533
47534
47535
47536
47537
47538
47539
47540
47541
47542
47543
47544
47545
47546
47547
47548
47549
47550
47551
47552
47553
47554
47555
47556
# File 'ext/ctp/ctp.cxx', line 47529

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

#LoginDate(*args) ⇒ Object



47439
47440
47441
47442
47443
47444
47445
47446
47447
47448
47449
47450
47451
47452
47453
47454
47455
47456
47457
47458
47459
47460
47461
47462
47463
47464
47465
47466
# File 'ext/ctp/ctp.cxx', line 47439

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

#LoginDate=(*args) ⇒ Object



47409
47410
47411
47412
47413
47414
47415
47416
47417
47418
47419
47420
47421
47422
47423
47424
47425
47426
47427
47428
47429
47430
47431
47432
47433
47434
47435
47436
# File 'ext/ctp/ctp.cxx', line 47409

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

#LoginTime(*args) ⇒ Object



47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
47509
47510
47511
47512
47513
47514
47515
47516
47517
47518
47519
47520
47521
47522
47523
47524
47525
47526
# File 'ext/ctp/ctp.cxx', line 47499

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

#LoginTime=(*args) ⇒ Object



47469
47470
47471
47472
47473
47474
47475
47476
47477
47478
47479
47480
47481
47482
47483
47484
47485
47486
47487
47488
47489
47490
47491
47492
47493
47494
47495
47496
# File 'ext/ctp/ctp.cxx', line 47469

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

#MacAddress(*args) ⇒ Object



47799
47800
47801
47802
47803
47804
47805
47806
47807
47808
47809
47810
47811
47812
47813
47814
47815
47816
47817
47818
47819
47820
47821
47822
47823
47824
47825
47826
# File 'ext/ctp/ctp.cxx', line 47799

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

#MacAddress=(*args) ⇒ Object



47769
47770
47771
47772
47773
47774
47775
47776
47777
47778
47779
47780
47781
47782
47783
47784
47785
47786
47787
47788
47789
47790
47791
47792
47793
47794
47795
47796
# File 'ext/ctp/ctp.cxx', line 47769

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

#ProtocolInfo(*args) ⇒ Object



47739
47740
47741
47742
47743
47744
47745
47746
47747
47748
47749
47750
47751
47752
47753
47754
47755
47756
47757
47758
47759
47760
47761
47762
47763
47764
47765
47766
# File 'ext/ctp/ctp.cxx', line 47739

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

#ProtocolInfo=(*args) ⇒ Object



47709
47710
47711
47712
47713
47714
47715
47716
47717
47718
47719
47720
47721
47722
47723
47724
47725
47726
47727
47728
47729
47730
47731
47732
47733
47734
47735
47736
# File 'ext/ctp/ctp.cxx', line 47709

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

#SessionID(*args) ⇒ Object



47265
47266
47267
47268
47269
47270
47271
47272
47273
47274
47275
47276
47277
47278
47279
47280
47281
47282
47283
47284
47285
47286
# File 'ext/ctp/ctp.cxx', line 47265

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

#SessionID=(*args) ⇒ Object



47236
47237
47238
47239
47240
47241
47242
47243
47244
47245
47246
47247
47248
47249
47250
47251
47252
47253
47254
47255
47256
47257
47258
47259
47260
47261
47262
# File 'ext/ctp/ctp.cxx', line 47236

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

#UserID(*args) ⇒ Object



47379
47380
47381
47382
47383
47384
47385
47386
47387
47388
47389
47390
47391
47392
47393
47394
47395
47396
47397
47398
47399
47400
47401
47402
47403
47404
47405
47406
# File 'ext/ctp/ctp.cxx', line 47379

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

#UserID=(*args) ⇒ Object



47349
47350
47351
47352
47353
47354
47355
47356
47357
47358
47359
47360
47361
47362
47363
47364
47365
47366
47367
47368
47369
47370
47371
47372
47373
47374
47375
47376
# File 'ext/ctp/ctp.cxx', line 47349

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

#UserProductInfo(*args) ⇒ Object



47619
47620
47621
47622
47623
47624
47625
47626
47627
47628
47629
47630
47631
47632
47633
47634
47635
47636
47637
47638
47639
47640
47641
47642
47643
47644
47645
47646
# File 'ext/ctp/ctp.cxx', line 47619

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

#UserProductInfo=(*args) ⇒ Object



47589
47590
47591
47592
47593
47594
47595
47596
47597
47598
47599
47600
47601
47602
47603
47604
47605
47606
47607
47608
47609
47610
47611
47612
47613
47614
47615
47616
# File 'ext/ctp/ctp.cxx', line 47589

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