Class: Ctp::CThostFtdcTradingAccountPasswordUpdateField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



108978
108979
108980
108981
108982
108983
108984
108985
108986
108987
108988
108989
108990
108991
# File 'ext/ctp/ctp.cxx', line 108978

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

Instance Method Details

#AccountID(*args) ⇒ Object



108753
108754
108755
108756
108757
108758
108759
108760
108761
108762
108763
108764
108765
108766
108767
108768
108769
108770
108771
108772
108773
108774
108775
108776
108777
108778
108779
108780
# File 'ext/ctp/ctp.cxx', line 108753

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

#AccountID=(*args) ⇒ Object



108723
108724
108725
108726
108727
108728
108729
108730
108731
108732
108733
108734
108735
108736
108737
108738
108739
108740
108741
108742
108743
108744
108745
108746
108747
108748
108749
108750
# File 'ext/ctp/ctp.cxx', line 108723

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

#BrokerID(*args) ⇒ Object



108693
108694
108695
108696
108697
108698
108699
108700
108701
108702
108703
108704
108705
108706
108707
108708
108709
108710
108711
108712
108713
108714
108715
108716
108717
108718
108719
108720
# File 'ext/ctp/ctp.cxx', line 108693

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



108663
108664
108665
108666
108667
108668
108669
108670
108671
108672
108673
108674
108675
108676
108677
108678
108679
108680
108681
108682
108683
108684
108685
108686
108687
108688
108689
108690
# File 'ext/ctp/ctp.cxx', line 108663

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

#CurrencyID(*args) ⇒ Object



108933
108934
108935
108936
108937
108938
108939
108940
108941
108942
108943
108944
108945
108946
108947
108948
108949
108950
108951
108952
108953
108954
108955
108956
108957
108958
108959
108960
# File 'ext/ctp/ctp.cxx', line 108933

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

#CurrencyID=(*args) ⇒ Object



108903
108904
108905
108906
108907
108908
108909
108910
108911
108912
108913
108914
108915
108916
108917
108918
108919
108920
108921
108922
108923
108924
108925
108926
108927
108928
108929
108930
# File 'ext/ctp/ctp.cxx', line 108903

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

#NewPassword(*args) ⇒ Object



108873
108874
108875
108876
108877
108878
108879
108880
108881
108882
108883
108884
108885
108886
108887
108888
108889
108890
108891
108892
108893
108894
108895
108896
108897
108898
108899
108900
# File 'ext/ctp/ctp.cxx', line 108873

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

#NewPassword=(*args) ⇒ Object



108843
108844
108845
108846
108847
108848
108849
108850
108851
108852
108853
108854
108855
108856
108857
108858
108859
108860
108861
108862
108863
108864
108865
108866
108867
108868
108869
108870
# File 'ext/ctp/ctp.cxx', line 108843

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

#OldPassword(*args) ⇒ Object



108813
108814
108815
108816
108817
108818
108819
108820
108821
108822
108823
108824
108825
108826
108827
108828
108829
108830
108831
108832
108833
108834
108835
108836
108837
108838
108839
108840
# File 'ext/ctp/ctp.cxx', line 108813

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

#OldPassword=(*args) ⇒ Object



108783
108784
108785
108786
108787
108788
108789
108790
108791
108792
108793
108794
108795
108796
108797
108798
108799
108800
108801
108802
108803
108804
108805
108806
108807
108808
108809
108810
# File 'ext/ctp/ctp.cxx', line 108783

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