Class: Ctp::CThostFtdcQryTraderOfferField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryTraderOfferField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
- #TraderID(*args) ⇒ Object
- #TraderID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
62946 62947 62948 62949 62950 62951 62952 62953 62954 62955 62956 62957 62958 62959 |
# File 'ext/ctp/ctp.cxx', line 62946 SWIGINTERN VALUE _wrap_new_CThostFtdcQryTraderOfferField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTraderOfferField"; CThostFtdcQryTraderOfferField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryTraderOfferField *)new CThostFtdcQryTraderOfferField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#ExchangeID(*args) ⇒ Object
62781 62782 62783 62784 62785 62786 62787 62788 62789 62790 62791 62792 62793 62794 62795 62796 62797 62798 62799 62800 62801 62802 62803 62804 62805 62806 62807 62808 |
# File 'ext/ctp/ctp.cxx', line 62781 SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(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
62751 62752 62753 62754 62755 62756 62757 62758 62759 62760 62761 62762 62763 62764 62765 62766 62767 62768 62769 62770 62771 62772 62773 62774 62775 62776 62777 62778 |
# File 'ext/ctp/ctp.cxx', line 62751 SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(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; } |
#ParticipantID(*args) ⇒ Object
62841 62842 62843 62844 62845 62846 62847 62848 62849 62850 62851 62852 62853 62854 62855 62856 62857 62858 62859 62860 62861 62862 62863 62864 62865 62866 62867 62868 |
# File 'ext/ctp/ctp.cxx', line 62841 SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(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
62811 62812 62813 62814 62815 62816 62817 62818 62819 62820 62821 62822 62823 62824 62825 62826 62827 62828 62829 62830 62831 62832 62833 62834 62835 62836 62837 62838 |
# File 'ext/ctp/ctp.cxx', line 62811 SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(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; } |
#TraderID(*args) ⇒ Object
62901 62902 62903 62904 62905 62906 62907 62908 62909 62910 62911 62912 62913 62914 62915 62916 62917 62918 62919 62920 62921 62922 62923 62924 62925 62926 62927 62928 |
# File 'ext/ctp/ctp.cxx', line 62901 SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(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
62871 62872 62873 62874 62875 62876 62877 62878 62879 62880 62881 62882 62883 62884 62885 62886 62887 62888 62889 62890 62891 62892 62893 62894 62895 62896 62897 62898 |
# File 'ext/ctp/ctp.cxx', line 62871 SWIGINTERN VALUE _wrap_CThostFtdcQryTraderOfferField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTraderOfferField *arg1 = (CThostFtdcQryTraderOfferField *) 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_CThostFtdcQryTraderOfferField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderOfferField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTraderOfferField * >(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; } |