Class: Ctp::CThostFtdcBrokerUserField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcBrokerUserField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #IsActive(*args) ⇒ Object
- #IsActive=(*args) ⇒ Object
- #IsUsingOTP(*args) ⇒ Object
- #IsUsingOTP=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
- #UserName(*args) ⇒ Object
- #UserName=(*args) ⇒ Object
- #UserType(*args) ⇒ Object
- #UserType=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
26128 26129 26130 26131 26132 26133 26134 26135 26136 26137 26138 26139 26140 26141 |
# File 'ext/ctp/ctp.cxx', line 26128 SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerUserField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerUserField"; CThostFtdcBrokerUserField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerUserField *)new CThostFtdcBrokerUserField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
25804 25805 25806 25807 25808 25809 25810 25811 25812 25813 25814 25815 25816 25817 25818 25819 25820 25821 25822 25823 25824 25825 25826 25827 25828 25829 25830 25831 |
# File 'ext/ctp/ctp.cxx', line 25804 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(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
25774 25775 25776 25777 25778 25779 25780 25781 25782 25783 25784 25785 25786 25787 25788 25789 25790 25791 25792 25793 25794 25795 25796 25797 25798 25799 25800 25801 |
# File 'ext/ctp/ctp.cxx', line 25774 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(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; } |
#IsActive(*args) ⇒ Object
26036 26037 26038 26039 26040 26041 26042 26043 26044 26045 26046 26047 26048 26049 26050 26051 26052 26053 26054 26055 26056 26057 |
# File 'ext/ctp/ctp.cxx', line 26036 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_IsActive_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsActive); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#IsActive=(*args) ⇒ Object
26007 26008 26009 26010 26011 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 |
# File 'ext/ctp/ctp.cxx', line 26007 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_IsActive_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","IsActive", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsActive = arg2; return Qnil; fail: return Qnil; } |
#IsUsingOTP(*args) ⇒ Object
26089 26090 26091 26092 26093 26094 26095 26096 26097 26098 26099 26100 26101 26102 26103 26104 26105 26106 26107 26108 26109 26110 |
# File 'ext/ctp/ctp.cxx', line 26089 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_IsUsingOTP_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","IsUsingOTP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (TThostFtdcBoolType) ((arg1)->IsUsingOTP); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#IsUsingOTP=(*args) ⇒ Object
26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 26072 26073 26074 26075 26076 26077 26078 26079 26080 26081 26082 26083 26084 26085 26086 |
# File 'ext/ctp/ctp.cxx', line 26060 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_IsUsingOTP_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; TThostFtdcBoolType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","IsUsingOTP", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsUsingOTP", 2, argv[0] )); } arg2 = static_cast< TThostFtdcBoolType >(val2); if (arg1) (arg1)->IsUsingOTP = arg2; return Qnil; fail: return Qnil; } |
#UserID(*args) ⇒ Object
25864 25865 25866 25867 25868 25869 25870 25871 25872 25873 25874 25875 25876 25877 25878 25879 25880 25881 25882 25883 25884 25885 25886 25887 25888 25889 25890 25891 |
# File 'ext/ctp/ctp.cxx', line 25864 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#UserID=(*args) ⇒ Object
25834 25835 25836 25837 25838 25839 25840 25841 25842 25843 25844 25845 25846 25847 25848 25849 25850 25851 25852 25853 25854 25855 25856 25857 25858 25859 25860 25861 |
# File 'ext/ctp/ctp.cxx', line 25834 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } |
#UserName(*args) ⇒ Object
25924 25925 25926 25927 25928 25929 25930 25931 25932 25933 25934 25935 25936 25937 25938 25939 25940 25941 25942 25943 25944 25945 25946 25947 25948 25949 25950 25951 |
# File 'ext/ctp/ctp.cxx', line 25924 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserName_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (char *) ((arg1)->UserName); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#UserName=(*args) ⇒ Object
25894 25895 25896 25897 25898 25899 25900 25901 25902 25903 25904 25905 25906 25907 25908 25909 25910 25911 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 |
# File 'ext/ctp/ctp.cxx', line 25894 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserName_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[81] ; 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserName", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","UserName", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserName,arg2,81*sizeof(char)); else memset(arg1->UserName,0,81*sizeof(char)); return Qnil; fail: return Qnil; } |
#UserType(*args) ⇒ Object
25983 25984 25985 25986 25987 25988 25989 25990 25991 25992 25993 25994 25995 25996 25997 25998 25999 26000 26001 26002 26003 26004 |
# File 'ext/ctp/ctp.cxx', line 25983 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcUserTypeType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); result = (TThostFtdcUserTypeType) ((arg1)->UserType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#UserType=(*args) ⇒ Object
25954 25955 25956 25957 25958 25959 25960 25961 25962 25963 25964 25965 25966 25967 25968 25969 25970 25971 25972 25973 25974 25975 25976 25977 25978 25979 25980 |
# File 'ext/ctp/ctp.cxx', line 25954 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserField_UserType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ; TThostFtdcUserTypeType 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_CThostFtdcBrokerUserField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","UserType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcUserTypeType","UserType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcUserTypeType >(val2); if (arg1) (arg1)->UserType = arg2; return Qnil; fail: return Qnil; } |