Class: Ctp::CThostFtdcQrySettlementInfoConfirmField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQrySettlementInfoConfirmField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
107678 107679 107680 107681 107682 107683 107684 107685 107686 107687 107688 107689 107690 107691 |
# File 'ext/ctp/ctp.cxx', line 107678 SWIGINTERN VALUE _wrap_new_CThostFtdcQrySettlementInfoConfirmField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySettlementInfoConfirmField"; CThostFtdcQrySettlementInfoConfirmField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQrySettlementInfoConfirmField *)new CThostFtdcQrySettlementInfoConfirmField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
107573 107574 107575 107576 107577 107578 107579 107580 107581 107582 107583 107584 107585 107586 107587 107588 107589 107590 107591 107592 107593 107594 107595 107596 107597 107598 107599 107600 |
# File 'ext/ctp/ctp.cxx', line 107573 SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoConfirmField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoConfirmField *arg1 = (CThostFtdcQrySettlementInfoConfirmField *) 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_CThostFtdcQrySettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoConfirmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoConfirmField * >(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
107543 107544 107545 107546 107547 107548 107549 107550 107551 107552 107553 107554 107555 107556 107557 107558 107559 107560 107561 107562 107563 107564 107565 107566 107567 107568 107569 107570 |
# File 'ext/ctp/ctp.cxx', line 107543 SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoConfirmField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoConfirmField *arg1 = (CThostFtdcQrySettlementInfoConfirmField *) 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_CThostFtdcQrySettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoConfirmField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoConfirmField * >(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; } |
#InvestorID(*args) ⇒ Object
107633 107634 107635 107636 107637 107638 107639 107640 107641 107642 107643 107644 107645 107646 107647 107648 107649 107650 107651 107652 107653 107654 107655 107656 107657 107658 107659 107660 |
# File 'ext/ctp/ctp.cxx', line 107633 SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoConfirmField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoConfirmField *arg1 = (CThostFtdcQrySettlementInfoConfirmField *) 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_CThostFtdcQrySettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoConfirmField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoConfirmField * >(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
107603 107604 107605 107606 107607 107608 107609 107610 107611 107612 107613 107614 107615 107616 107617 107618 107619 107620 107621 107622 107623 107624 107625 107626 107627 107628 107629 107630 |
# File 'ext/ctp/ctp.cxx', line 107603 SWIGINTERN VALUE _wrap_CThostFtdcQrySettlementInfoConfirmField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQrySettlementInfoConfirmField *arg1 = (CThostFtdcQrySettlementInfoConfirmField *) 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_CThostFtdcQrySettlementInfoConfirmField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoConfirmField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQrySettlementInfoConfirmField * >(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; } |