Class: Ctp::CThostFtdcSyncFundMortgageField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcSyncFundMortgageField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #FromCurrencyID(*args) ⇒ Object
- #FromCurrencyID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #MortgageAmount(*args) ⇒ Object
- #MortgageAmount=(*args) ⇒ Object
- #MortgageSeqNo(*args) ⇒ Object
- #MortgageSeqNo=(*args) ⇒ Object
- #ToCurrencyID(*args) ⇒ Object
- #ToCurrencyID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
49331 49332 49333 49334 49335 49336 49337 49338 49339 49340 49341 49342 49343 49344 |
# File 'ext/ctp/ctp.cxx', line 49331 SWIGINTERN VALUE _wrap_new_CThostFtdcSyncFundMortgageField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncFundMortgageField"; CThostFtdcSyncFundMortgageField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncFundMortgageField *)new CThostFtdcSyncFundMortgageField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
49053 49054 49055 49056 49057 49058 49059 49060 49061 49062 49063 49064 49065 49066 49067 49068 49069 49070 49071 49072 49073 49074 49075 49076 49077 49078 49079 49080 |
# File 'ext/ctp/ctp.cxx', line 49053 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(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
49023 49024 49025 49026 49027 49028 49029 49030 49031 49032 49033 49034 49035 49036 49037 49038 49039 49040 49041 49042 49043 49044 49045 49046 49047 49048 49049 49050 |
# File 'ext/ctp/ctp.cxx', line 49023 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(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; } |
#FromCurrencyID(*args) ⇒ Object
49173 49174 49175 49176 49177 49178 49179 49180 49181 49182 49183 49184 49185 49186 49187 49188 49189 49190 49191 49192 49193 49194 49195 49196 49197 49198 49199 49200 |
# File 'ext/ctp/ctp.cxx', line 49173 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_FromCurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","FromCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); result = (char *) ((arg1)->FromCurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#FromCurrencyID=(*args) ⇒ Object
49143 49144 49145 49146 49147 49148 49149 49150 49151 49152 49153 49154 49155 49156 49157 49158 49159 49160 49161 49162 49163 49164 49165 49166 49167 49168 49169 49170 |
# File 'ext/ctp/ctp.cxx', line 49143 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_FromCurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","FromCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","FromCurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->FromCurrencyID,arg2,4*sizeof(char)); else memset(arg1->FromCurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } |
#InvestorID(*args) ⇒ Object
49113 49114 49115 49116 49117 49118 49119 49120 49121 49122 49123 49124 49125 49126 49127 49128 49129 49130 49131 49132 49133 49134 49135 49136 49137 49138 49139 49140 |
# File 'ext/ctp/ctp.cxx', line 49113 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(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
49083 49084 49085 49086 49087 49088 49089 49090 49091 49092 49093 49094 49095 49096 49097 49098 49099 49100 49101 49102 49103 49104 49105 49106 49107 49108 49109 49110 |
# File 'ext/ctp/ctp.cxx', line 49083 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(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; } |
#MortgageAmount(*args) ⇒ Object
49232 49233 49234 49235 49236 49237 49238 49239 49240 49241 49242 49243 49244 49245 49246 49247 49248 49249 49250 49251 49252 49253 |
# File 'ext/ctp/ctp.cxx', line 49232 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_MortgageAmount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcMoneyType 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","MortgageAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->MortgageAmount); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } |
#MortgageAmount=(*args) ⇒ Object
49203 49204 49205 49206 49207 49208 49209 49210 49211 49212 49213 49214 49215 49216 49217 49218 49219 49220 49221 49222 49223 49224 49225 49226 49227 49228 49229 |
# File 'ext/ctp/ctp.cxx', line 49203 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_MortgageAmount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 0 ; TThostFtdcMoneyType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","MortgageAmount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","MortgageAmount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->MortgageAmount = arg2; return Qnil; fail: return Qnil; } |
#MortgageSeqNo(*args) ⇒ Object
48993 48994 48995 48996 48997 48998 48999 49000 49001 49002 49003 49004 49005 49006 49007 49008 49009 49010 49011 49012 49013 49014 49015 49016 49017 49018 49019 49020 |
# File 'ext/ctp/ctp.cxx', line 48993 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_MortgageSeqNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","MortgageSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(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
48963 48964 48965 48966 48967 48968 48969 48970 48971 48972 48973 48974 48975 48976 48977 48978 48979 48980 48981 48982 48983 48984 48985 48986 48987 48988 48989 48990 |
# File 'ext/ctp/ctp.cxx', line 48963 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_MortgageSeqNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","MortgageSeqNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(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; } |
#ToCurrencyID(*args) ⇒ Object
49286 49287 49288 49289 49290 49291 49292 49293 49294 49295 49296 49297 49298 49299 49300 49301 49302 49303 49304 49305 49306 49307 49308 49309 49310 49311 49312 49313 |
# File 'ext/ctp/ctp.cxx', line 49286 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_ToCurrencyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","ToCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); result = (char *) ((arg1)->ToCurrencyID); { size_t size = SWIG_strnlen(result, 4); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ToCurrencyID=(*args) ⇒ Object
49256 49257 49258 49259 49260 49261 49262 49263 49264 49265 49266 49267 49268 49269 49270 49271 49272 49273 49274 49275 49276 49277 49278 49279 49280 49281 49282 49283 |
# File 'ext/ctp/ctp.cxx', line 49256 SWIGINTERN VALUE _wrap_CThostFtdcSyncFundMortgageField_ToCurrencyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncFundMortgageField *arg1 = (CThostFtdcSyncFundMortgageField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[4] ; 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_CThostFtdcSyncFundMortgageField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncFundMortgageField *","ToCurrencyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncFundMortgageField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 4); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","ToCurrencyID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ToCurrencyID,arg2,4*sizeof(char)); else memset(arg1->ToCurrencyID,0,4*sizeof(char)); return Qnil; fail: return Qnil; } |