Class: Ctp::CThostFtdcQrySyncFundMortgageField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQrySyncFundMortgageField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #MortgageSeqNo(*args) ⇒ Object
- #MortgageSeqNo=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
64126 64127 64128 64129 64130 64131 64132 64133 64134 64135 64136 64137 64138 64139 |
# File 'ext/ctp/ctp.cxx', line 64126 SWIGINTERN VALUE _wrap_new_CThostFtdcQrySyncFundMortgageField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySyncFundMortgageField"; CThostFtdcQrySyncFundMortgageField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQrySyncFundMortgageField *)new CThostFtdcQrySyncFundMortgageField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
64021 64022 64023 64024 64025 64026 64027 64028 64029 64030 64031 64032 64033 64034 64035 64036 64037 64038 64039 64040 64041 64042 64043 64044 64045 64046 64047 64048 |
# File 'ext/ctp/ctp.cxx', line 64021 SWIGINTERN VALUE _wrap_CThostFtdcQrySyncFundMortgageField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncFundMortgageField *arg1 = (CThostFtdcQrySyncFundMortgageField *) 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_CThostFtdcQrySyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncFundMortgageField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncFundMortgageField * >(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
63991 63992 63993 63994 63995 63996 63997 63998 63999 64000 64001 64002 64003 64004 64005 64006 64007 64008 64009 64010 64011 64012 64013 64014 64015 64016 64017 64018 |
# File 'ext/ctp/ctp.cxx', line 63991 SWIGINTERN VALUE _wrap_CThostFtdcQrySyncFundMortgageField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncFundMortgageField *arg1 = (CThostFtdcQrySyncFundMortgageField *) 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_CThostFtdcQrySyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncFundMortgageField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncFundMortgageField * >(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; } |
#MortgageSeqNo(*args) ⇒ Object
64081 64082 64083 64084 64085 64086 64087 64088 64089 64090 64091 64092 64093 64094 64095 64096 64097 64098 64099 64100 64101 64102 64103 64104 64105 64106 64107 64108 |
# File 'ext/ctp/ctp.cxx', line 64081 SWIGINTERN VALUE _wrap_CThostFtdcQrySyncFundMortgageField_MortgageSeqNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncFundMortgageField *arg1 = (CThostFtdcQrySyncFundMortgageField *) 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_CThostFtdcQrySyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncFundMortgageField *","MortgageSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncFundMortgageField * >(argp1); result = (char *) ((arg1)->MortgageSeqNo); { size_t size = SWIG_strnlen(result, 15); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#MortgageSeqNo=(*args) ⇒ Object
64051 64052 64053 64054 64055 64056 64057 64058 64059 64060 64061 64062 64063 64064 64065 64066 64067 64068 64069 64070 64071 64072 64073 64074 64075 64076 64077 64078 |
# File 'ext/ctp/ctp.cxx', line 64051 SWIGINTERN VALUE _wrap_CThostFtdcQrySyncFundMortgageField_MortgageSeqNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySyncFundMortgageField *arg1 = (CThostFtdcQrySyncFundMortgageField *) 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_CThostFtdcQrySyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySyncFundMortgageField *","MortgageSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySyncFundMortgageField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 15); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [15]","MortgageSeqNo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->MortgageSeqNo,arg2,15*sizeof(char)); else memset(arg1->MortgageSeqNo,0,15*sizeof(char)); return Qnil; fail: return Qnil; } |