Class: Ctp::CThostFtdcQrySyncDepositField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



63105
63106
63107
63108
63109
63110
63111
63112
63113
63114
63115
63116
63117
63118
# File 'ext/ctp/ctp.cxx', line 63105

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

Instance Method Details

#BrokerID(*args) ⇒ Object



63000
63001
63002
63003
63004
63005
63006
63007
63008
63009
63010
63011
63012
63013
63014
63015
63016
63017
63018
63019
63020
63021
63022
63023
63024
63025
63026
63027
# File 'ext/ctp/ctp.cxx', line 63000

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



62970
62971
62972
62973
62974
62975
62976
62977
62978
62979
62980
62981
62982
62983
62984
62985
62986
62987
62988
62989
62990
62991
62992
62993
62994
62995
62996
62997
# File 'ext/ctp/ctp.cxx', line 62970

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

#DepositSeqNo(*args) ⇒ Object



63060
63061
63062
63063
63064
63065
63066
63067
63068
63069
63070
63071
63072
63073
63074
63075
63076
63077
63078
63079
63080
63081
63082
63083
63084
63085
63086
63087
# File 'ext/ctp/ctp.cxx', line 63060

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

#DepositSeqNo=(*args) ⇒ Object



63030
63031
63032
63033
63034
63035
63036
63037
63038
63039
63040
63041
63042
63043
63044
63045
63046
63047
63048
63049
63050
63051
63052
63053
63054
63055
63056
63057
# File 'ext/ctp/ctp.cxx', line 63030

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