Class: Ctp::CThostFtdcFensUserInfoField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



190632
190633
190634
190635
190636
190637
190638
190639
190640
190641
190642
190643
190644
190645
# File 'ext/ctp/ctp.cxx', line 190632

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

Instance Method Details

#BrokerID(*args) ⇒ Object



190474
190475
190476
190477
190478
190479
190480
190481
190482
190483
190484
190485
190486
190487
190488
190489
190490
190491
190492
190493
190494
190495
190496
190497
190498
190499
190500
190501
# File 'ext/ctp/ctp.cxx', line 190474

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



190444
190445
190446
190447
190448
190449
190450
190451
190452
190453
190454
190455
190456
190457
190458
190459
190460
190461
190462
190463
190464
190465
190466
190467
190468
190469
190470
190471
# File 'ext/ctp/ctp.cxx', line 190444

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

#LoginMode(*args) ⇒ Object



190593
190594
190595
190596
190597
190598
190599
190600
190601
190602
190603
190604
190605
190606
190607
190608
190609
190610
190611
190612
190613
190614
# File 'ext/ctp/ctp.cxx', line 190593

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

#LoginMode=(*args) ⇒ Object



190564
190565
190566
190567
190568
190569
190570
190571
190572
190573
190574
190575
190576
190577
190578
190579
190580
190581
190582
190583
190584
190585
190586
190587
190588
190589
190590
# File 'ext/ctp/ctp.cxx', line 190564

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

#UserID(*args) ⇒ Object



190534
190535
190536
190537
190538
190539
190540
190541
190542
190543
190544
190545
190546
190547
190548
190549
190550
190551
190552
190553
190554
190555
190556
190557
190558
190559
190560
190561
# File 'ext/ctp/ctp.cxx', line 190534

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



190504
190505
190506
190507
190508
190509
190510
190511
190512
190513
190514
190515
190516
190517
190518
190519
190520
190521
190522
190523
190524
190525
190526
190527
190528
190529
190530
190531
# File 'ext/ctp/ctp.cxx', line 190504

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