Class: Ctp::CThostFtdcTraderField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcTraderField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstallCount(*args) ⇒ Object
- #InstallCount=(*args) ⇒ Object
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
- #Password(*args) ⇒ Object
- #Password=(*args) ⇒ Object
- #TraderID(*args) ⇒ Object
- #TraderID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 |
# File 'ext/ctp/ctp.cxx', line 14876 SWIGINTERN VALUE _wrap_new_CThostFtdcTraderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcTraderField"; CThostFtdcTraderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcTraderField *)new CThostFtdcTraderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 |
# File 'ext/ctp/ctp.cxx', line 14831 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(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
14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 |
# File 'ext/ctp/ctp.cxx', line 14801 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(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; } |
#ExchangeID(*args) ⇒ Object
14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 |
# File 'ext/ctp/ctp.cxx', line 14538 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ExchangeID=(*args) ⇒ Object
14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 |
# File 'ext/ctp/ctp.cxx', line 14508 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[9] ; 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ExchangeID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExchangeID,arg2,9*sizeof(char)); else memset(arg1->ExchangeID,0,9*sizeof(char)); return Qnil; fail: return Qnil; } |
#InstallCount(*args) ⇒ Object
14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 |
# File 'ext/ctp/ctp.cxx', line 14777 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_InstallCount_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInstallCountType 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","InstallCount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (TThostFtdcInstallCountType) ((arg1)->InstallCount); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#InstallCount=(*args) ⇒ Object
14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 |
# File 'ext/ctp/ctp.cxx', line 14748 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_InstallCount_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 0 ; TThostFtdcInstallCountType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","InstallCount", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstallCountType","InstallCount", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInstallCountType >(val2); if (arg1) (arg1)->InstallCount = arg2; return Qnil; fail: return Qnil; } |
#ParticipantID(*args) ⇒ Object
14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 |
# File 'ext/ctp/ctp.cxx', line 14658 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ParticipantID=(*args) ⇒ Object
14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 |
# File 'ext/ctp/ctp.cxx', line 14628 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ParticipantID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ParticipantID,arg2,11*sizeof(char)); else memset(arg1->ParticipantID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } |
#Password(*args) ⇒ Object
14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 |
# File 'ext/ctp/ctp.cxx', line 14718 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_Password_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (char *) ((arg1)->Password); { size_t size = SWIG_strnlen(result, 41); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#Password=(*args) ⇒ Object
14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 |
# File 'ext/ctp/ctp.cxx', line 14688 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_Password_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[41] ; 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","Password", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 41); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char)); else memset(arg1->Password,0,41*sizeof(char)); return Qnil; fail: return Qnil; } |
#TraderID(*args) ⇒ Object
14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 |
# File 'ext/ctp/ctp.cxx', line 14598 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#TraderID=(*args) ⇒ Object
14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 |
# File 'ext/ctp/ctp.cxx', line 14568 SWIGINTERN VALUE _wrap_CThostFtdcTraderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcTraderField *arg1 = (CThostFtdcTraderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[21] ; 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_CThostFtdcTraderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcTraderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TraderID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TraderID,arg2,21*sizeof(char)); else memset(arg1->TraderID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } |