Class: Ctp::CThostFtdcInvestorGroupField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
# File 'ext/ctp/ctp.cxx', line 16981

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

Instance Method Details

#BrokerID(*args) ⇒ Object



16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
# File 'ext/ctp/ctp.cxx', line 16816

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



16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
# File 'ext/ctp/ctp.cxx', line 16786

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

#InvestorGroupID(*args) ⇒ Object



16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
# File 'ext/ctp/ctp.cxx', line 16876

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

#InvestorGroupID=(*args) ⇒ Object



16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
# File 'ext/ctp/ctp.cxx', line 16846

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

#InvestorGroupName(*args) ⇒ Object



16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
# File 'ext/ctp/ctp.cxx', line 16936

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

#InvestorGroupName=(*args) ⇒ Object



16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
# File 'ext/ctp/ctp.cxx', line 16906

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