Class: Ctp::CThostFtdcTradingNoticeField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



119041
119042
119043
119044
119045
119046
119047
119048
119049
119050
119051
119052
119053
119054
# File 'ext/ctp/ctp.cxx', line 119041

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

Instance Method Details

#BrokerID(*args) ⇒ Object



118597
118598
118599
118600
118601
118602
118603
118604
118605
118606
118607
118608
118609
118610
118611
118612
118613
118614
118615
118616
118617
118618
118619
118620
118621
118622
118623
118624
# File 'ext/ctp/ctp.cxx', line 118597

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



118567
118568
118569
118570
118571
118572
118573
118574
118575
118576
118577
118578
118579
118580
118581
118582
118583
118584
118585
118586
118587
118588
118589
118590
118591
118592
118593
118594
# File 'ext/ctp/ctp.cxx', line 118567

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

#FieldContent(*args) ⇒ Object



118996
118997
118998
118999
119000
119001
119002
119003
119004
119005
119006
119007
119008
119009
119010
119011
119012
119013
119014
119015
119016
119017
119018
119019
119020
119021
119022
119023
# File 'ext/ctp/ctp.cxx', line 118996

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

#FieldContent=(*args) ⇒ Object



118966
118967
118968
118969
118970
118971
118972
118973
118974
118975
118976
118977
118978
118979
118980
118981
118982
118983
118984
118985
118986
118987
118988
118989
118990
118991
118992
118993
# File 'ext/ctp/ctp.cxx', line 118966

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

#InvestorID(*args) ⇒ Object



118710
118711
118712
118713
118714
118715
118716
118717
118718
118719
118720
118721
118722
118723
118724
118725
118726
118727
118728
118729
118730
118731
118732
118733
118734
118735
118736
118737
# File 'ext/ctp/ctp.cxx', line 118710

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



118680
118681
118682
118683
118684
118685
118686
118687
118688
118689
118690
118691
118692
118693
118694
118695
118696
118697
118698
118699
118700
118701
118702
118703
118704
118705
118706
118707
# File 'ext/ctp/ctp.cxx', line 118680

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

#InvestorRange(*args) ⇒ Object



118656
118657
118658
118659
118660
118661
118662
118663
118664
118665
118666
118667
118668
118669
118670
118671
118672
118673
118674
118675
118676
118677
# File 'ext/ctp/ctp.cxx', line 118656

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

#InvestorRange=(*args) ⇒ Object



118627
118628
118629
118630
118631
118632
118633
118634
118635
118636
118637
118638
118639
118640
118641
118642
118643
118644
118645
118646
118647
118648
118649
118650
118651
118652
118653
# File 'ext/ctp/ctp.cxx', line 118627

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

#SendTime(*args) ⇒ Object



118883
118884
118885
118886
118887
118888
118889
118890
118891
118892
118893
118894
118895
118896
118897
118898
118899
118900
118901
118902
118903
118904
118905
118906
118907
118908
118909
118910
# File 'ext/ctp/ctp.cxx', line 118883

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

#SendTime=(*args) ⇒ Object



118853
118854
118855
118856
118857
118858
118859
118860
118861
118862
118863
118864
118865
118866
118867
118868
118869
118870
118871
118872
118873
118874
118875
118876
118877
118878
118879
118880
# File 'ext/ctp/ctp.cxx', line 118853

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

#SequenceNo(*args) ⇒ Object



118942
118943
118944
118945
118946
118947
118948
118949
118950
118951
118952
118953
118954
118955
118956
118957
118958
118959
118960
118961
118962
118963
# File 'ext/ctp/ctp.cxx', line 118942

SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeField_SequenceNo_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcSequenceNoType 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_CThostFtdcTradingNoticeField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","SequenceNo", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1);
  result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#SequenceNo=(*args) ⇒ Object



118913
118914
118915
118916
118917
118918
118919
118920
118921
118922
118923
118924
118925
118926
118927
118928
118929
118930
118931
118932
118933
118934
118935
118936
118937
118938
118939
# File 'ext/ctp/ctp.cxx', line 118913

SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeField_SequenceNo_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ;
  TThostFtdcSequenceNoType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int 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_CThostFtdcTradingNoticeField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","SequenceNo", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcSequenceNoType >(val2);
  if (arg1) (arg1)->SequenceNo = arg2;
  return Qnil;
fail:
  return Qnil;
}

#SequenceSeries(*args) ⇒ Object



118769
118770
118771
118772
118773
118774
118775
118776
118777
118778
118779
118780
118781
118782
118783
118784
118785
118786
118787
118788
118789
118790
# File 'ext/ctp/ctp.cxx', line 118769

SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeField_SequenceSeries_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcSequenceSeriesType 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_CThostFtdcTradingNoticeField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","SequenceSeries", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1);
  result = (TThostFtdcSequenceSeriesType) ((arg1)->SequenceSeries);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}

#SequenceSeries=(*args) ⇒ Object



118740
118741
118742
118743
118744
118745
118746
118747
118748
118749
118750
118751
118752
118753
118754
118755
118756
118757
118758
118759
118760
118761
118762
118763
118764
118765
118766
# File 'ext/ctp/ctp.cxx', line 118740

SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeField_SequenceSeries_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcTradingNoticeField *arg1 = (CThostFtdcTradingNoticeField *) 0 ;
  TThostFtdcSequenceSeriesType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  short 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_CThostFtdcTradingNoticeField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeField *","SequenceSeries", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcTradingNoticeField * >(argp1);
  ecode2 = SWIG_AsVal_short(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceSeriesType","SequenceSeries", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcSequenceSeriesType >(val2);
  if (arg1) (arg1)->SequenceSeries = arg2;
  return Qnil;
fail:
  return Qnil;
}

#UserID(*args) ⇒ Object



118823
118824
118825
118826
118827
118828
118829
118830
118831
118832
118833
118834
118835
118836
118837
118838
118839
118840
118841
118842
118843
118844
118845
118846
118847
118848
118849
118850
# File 'ext/ctp/ctp.cxx', line 118823

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



118793
118794
118795
118796
118797
118798
118799
118800
118801
118802
118803
118804
118805
118806
118807
118808
118809
118810
118811
118812
118813
118814
118815
118816
118817
118818
118819
118820
# File 'ext/ctp/ctp.cxx', line 118793

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