Class: Ctp::CThostFtdcQryProductExchRateField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryProductExchRateField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
97567 97568 97569 97570 97571 97572 97573 97574 97575 97576 97577 97578 97579 97580 |
# File 'ext/ctp/ctp.cxx', line 97567 SWIGINTERN VALUE _wrap_new_CThostFtdcQryProductExchRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryProductExchRateField"; CThostFtdcQryProductExchRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryProductExchRateField *)new CThostFtdcQryProductExchRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#ProductID(*args) ⇒ Object
97522 97523 97524 97525 97526 97527 97528 97529 97530 97531 97532 97533 97534 97535 97536 97537 97538 97539 97540 97541 97542 97543 97544 97545 97546 97547 97548 97549 |
# File 'ext/ctp/ctp.cxx', line 97522 SWIGINTERN VALUE _wrap_CThostFtdcQryProductExchRateField_ProductID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryProductExchRateField *arg1 = (CThostFtdcQryProductExchRateField *) 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_CThostFtdcQryProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductExchRateField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryProductExchRateField * >(argp1); result = (char *) ((arg1)->ProductID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ProductID=(*args) ⇒ Object
97492 97493 97494 97495 97496 97497 97498 97499 97500 97501 97502 97503 97504 97505 97506 97507 97508 97509 97510 97511 97512 97513 97514 97515 97516 97517 97518 97519 |
# File 'ext/ctp/ctp.cxx', line 97492 SWIGINTERN VALUE _wrap_CThostFtdcQryProductExchRateField_ProductID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryProductExchRateField *arg1 = (CThostFtdcQryProductExchRateField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[31] ; 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_CThostFtdcQryProductExchRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryProductExchRateField *","ProductID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryProductExchRateField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ProductID,arg2,31*sizeof(char)); else memset(arg1->ProductID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } |