Class: Ctp::CThostFtdcQryTradingCodeField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryTradingCodeField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #ClientID(*args) ⇒ Object
- #ClientID=(*args) ⇒ Object
- #ClientIDType(*args) ⇒ Object
- #ClientIDType=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
59042 59043 59044 59045 59046 59047 59048 59049 59050 59051 59052 59053 59054 59055 |
# File 'ext/ctp/ctp.cxx', line 59042 SWIGINTERN VALUE _wrap_new_CThostFtdcQryTradingCodeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTradingCodeField"; CThostFtdcQryTradingCodeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryTradingCodeField *)new CThostFtdcQryTradingCodeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
58764 58765 58766 58767 58768 58769 58770 58771 58772 58773 58774 58775 58776 58777 58778 58779 58780 58781 58782 58783 58784 58785 58786 58787 58788 58789 58790 58791 |
# File 'ext/ctp/ctp.cxx', line 58764 SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(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
58734 58735 58736 58737 58738 58739 58740 58741 58742 58743 58744 58745 58746 58747 58748 58749 58750 58751 58752 58753 58754 58755 58756 58757 58758 58759 58760 58761 |
# File 'ext/ctp/ctp.cxx', line 58734 SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(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; } |
#ClientID(*args) ⇒ Object
58944 58945 58946 58947 58948 58949 58950 58951 58952 58953 58954 58955 58956 58957 58958 58959 58960 58961 58962 58963 58964 58965 58966 58967 58968 58969 58970 58971 |
# File 'ext/ctp/ctp.cxx', line 58944 SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ClientID=(*args) ⇒ Object
58914 58915 58916 58917 58918 58919 58920 58921 58922 58923 58924 58925 58926 58927 58928 58929 58930 58931 58932 58933 58934 58935 58936 58937 58938 58939 58940 58941 |
# File 'ext/ctp/ctp.cxx', line 58914 SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClientID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClientID,arg2,11*sizeof(char)); else memset(arg1->ClientID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } |
#ClientIDType(*args) ⇒ Object
59003 59004 59005 59006 59007 59008 59009 59010 59011 59012 59013 59014 59015 59016 59017 59018 59019 59020 59021 59022 59023 59024 |
# File 'ext/ctp/ctp.cxx', line 59003 SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ClientIDType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcClientIDTypeType 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ClientIDType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); result = (TThostFtdcClientIDTypeType) ((arg1)->ClientIDType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#ClientIDType=(*args) ⇒ Object
58974 58975 58976 58977 58978 58979 58980 58981 58982 58983 58984 58985 58986 58987 58988 58989 58990 58991 58992 58993 58994 58995 58996 58997 58998 58999 59000 |
# File 'ext/ctp/ctp.cxx', line 58974 SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ClientIDType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 0 ; TThostFtdcClientIDTypeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ClientIDType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcClientIDTypeType","ClientIDType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcClientIDTypeType >(val2); if (arg1) (arg1)->ClientIDType = arg2; return Qnil; fail: return Qnil; } |
#ExchangeID(*args) ⇒ Object
58884 58885 58886 58887 58888 58889 58890 58891 58892 58893 58894 58895 58896 58897 58898 58899 58900 58901 58902 58903 58904 58905 58906 58907 58908 58909 58910 58911 |
# File 'ext/ctp/ctp.cxx', line 58884 SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(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
58854 58855 58856 58857 58858 58859 58860 58861 58862 58863 58864 58865 58866 58867 58868 58869 58870 58871 58872 58873 58874 58875 58876 58877 58878 58879 58880 58881 |
# File 'ext/ctp/ctp.cxx', line 58854 SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(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; } |
#InvestorID(*args) ⇒ Object
58824 58825 58826 58827 58828 58829 58830 58831 58832 58833 58834 58835 58836 58837 58838 58839 58840 58841 58842 58843 58844 58845 58846 58847 58848 58849 58850 58851 |
# File 'ext/ctp/ctp.cxx', line 58824 SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(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
58794 58795 58796 58797 58798 58799 58800 58801 58802 58803 58804 58805 58806 58807 58808 58809 58810 58811 58812 58813 58814 58815 58816 58817 58818 58819 58820 58821 |
# File 'ext/ctp/ctp.cxx', line 58794 SWIGINTERN VALUE _wrap_CThostFtdcQryTradingCodeField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryTradingCodeField *arg1 = (CThostFtdcQryTradingCodeField *) 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_CThostFtdcQryTradingCodeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(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; } |