Class: Ctp::CThostFtdcSyncingInvestorGroupField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



50839
50840
50841
50842
50843
50844
50845
50846
50847
50848
50849
50850
50851
50852
# File 'ext/ctp/ctp.cxx', line 50839

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

Instance Method Details

#BrokerID(*args) ⇒ Object



50674
50675
50676
50677
50678
50679
50680
50681
50682
50683
50684
50685
50686
50687
50688
50689
50690
50691
50692
50693
50694
50695
50696
50697
50698
50699
50700
50701
# File 'ext/ctp/ctp.cxx', line 50674

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



50644
50645
50646
50647
50648
50649
50650
50651
50652
50653
50654
50655
50656
50657
50658
50659
50660
50661
50662
50663
50664
50665
50666
50667
50668
50669
50670
50671
# File 'ext/ctp/ctp.cxx', line 50644

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



50734
50735
50736
50737
50738
50739
50740
50741
50742
50743
50744
50745
50746
50747
50748
50749
50750
50751
50752
50753
50754
50755
50756
50757
50758
50759
50760
50761
# File 'ext/ctp/ctp.cxx', line 50734

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



50704
50705
50706
50707
50708
50709
50710
50711
50712
50713
50714
50715
50716
50717
50718
50719
50720
50721
50722
50723
50724
50725
50726
50727
50728
50729
50730
50731
# File 'ext/ctp/ctp.cxx', line 50704

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



50794
50795
50796
50797
50798
50799
50800
50801
50802
50803
50804
50805
50806
50807
50808
50809
50810
50811
50812
50813
50814
50815
50816
50817
50818
50819
50820
50821
# File 'ext/ctp/ctp.cxx', line 50794

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



50764
50765
50766
50767
50768
50769
50770
50771
50772
50773
50774
50775
50776
50777
50778
50779
50780
50781
50782
50783
50784
50785
50786
50787
50788
50789
50790
50791
# File 'ext/ctp/ctp.cxx', line 50764

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