Class: Ctp::CThostFtdcQryCFMMCTradingAccountKeyField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



129902
129903
129904
129905
129906
129907
129908
129909
129910
129911
129912
129913
129914
129915
# File 'ext/ctp/ctp.cxx', line 129902

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

Instance Method Details

#BrokerID(*args) ⇒ Object



129797
129798
129799
129800
129801
129802
129803
129804
129805
129806
129807
129808
129809
129810
129811
129812
129813
129814
129815
129816
129817
129818
129819
129820
129821
129822
129823
129824
# File 'ext/ctp/ctp.cxx', line 129797

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



129767
129768
129769
129770
129771
129772
129773
129774
129775
129776
129777
129778
129779
129780
129781
129782
129783
129784
129785
129786
129787
129788
129789
129790
129791
129792
129793
129794
# File 'ext/ctp/ctp.cxx', line 129767

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

#InvestorID(*args) ⇒ Object



129857
129858
129859
129860
129861
129862
129863
129864
129865
129866
129867
129868
129869
129870
129871
129872
129873
129874
129875
129876
129877
129878
129879
129880
129881
129882
129883
129884
# File 'ext/ctp/ctp.cxx', line 129857

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



129827
129828
129829
129830
129831
129832
129833
129834
129835
129836
129837
129838
129839
129840
129841
129842
129843
129844
129845
129846
129847
129848
129849
129850
129851
129852
129853
129854
# File 'ext/ctp/ctp.cxx', line 129827

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