Class: Ctp::CThostFtdcQueryMaxOrderVolumeField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQueryMaxOrderVolumeField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #Direction(*args) ⇒ Object
- #Direction=(*args) ⇒ Object
- #HedgeFlag(*args) ⇒ Object
- #HedgeFlag=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #MaxVolume(*args) ⇒ Object
- #MaxVolume=(*args) ⇒ Object
- #OffsetFlag(*args) ⇒ Object
- #OffsetFlag=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
48275 48276 48277 48278 48279 48280 48281 48282 48283 48284 48285 48286 48287 48288 |
# File 'ext/ctp/ctp.cxx', line 48275 SWIGINTERN VALUE _wrap_new_CThostFtdcQueryMaxOrderVolumeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQueryMaxOrderVolumeField"; CThostFtdcQueryMaxOrderVolumeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQueryMaxOrderVolumeField *)new CThostFtdcQueryMaxOrderVolumeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
47898 47899 47900 47901 47902 47903 47904 47905 47906 47907 47908 47909 47910 47911 47912 47913 47914 47915 47916 47917 47918 47919 47920 47921 47922 47923 47924 47925 |
# File 'ext/ctp/ctp.cxx', line 47898 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(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
47868 47869 47870 47871 47872 47873 47874 47875 47876 47877 47878 47879 47880 47881 47882 47883 47884 47885 47886 47887 47888 47889 47890 47891 47892 47893 47894 47895 |
# File 'ext/ctp/ctp.cxx', line 47868 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(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; } |
#Direction(*args) ⇒ Object
48077 48078 48079 48080 48081 48082 48083 48084 48085 48086 48087 48088 48089 48090 48091 48092 48093 48094 48095 48096 48097 48098 |
# File 'ext/ctp/ctp.cxx', line 48077 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_Direction_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDirectionType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (TThostFtdcDirectionType) ((arg1)->Direction); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#Direction=(*args) ⇒ Object
48048 48049 48050 48051 48052 48053 48054 48055 48056 48057 48058 48059 48060 48061 48062 48063 48064 48065 48066 48067 48068 48069 48070 48071 48072 48073 48074 |
# File 'ext/ctp/ctp.cxx', line 48048 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_Direction_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; TThostFtdcDirectionType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","Direction", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDirectionType >(val2); if (arg1) (arg1)->Direction = arg2; return Qnil; fail: return Qnil; } |
#HedgeFlag(*args) ⇒ Object
48183 48184 48185 48186 48187 48188 48189 48190 48191 48192 48193 48194 48195 48196 48197 48198 48199 48200 48201 48202 48203 48204 |
# File 'ext/ctp/ctp.cxx', line 48183 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#HedgeFlag=(*args) ⇒ Object
48154 48155 48156 48157 48158 48159 48160 48161 48162 48163 48164 48165 48166 48167 48168 48169 48170 48171 48172 48173 48174 48175 48176 48177 48178 48179 48180 |
# File 'ext/ctp/ctp.cxx', line 48154 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } |
#InstrumentID(*args) ⇒ Object
48018 48019 48020 48021 48022 48023 48024 48025 48026 48027 48028 48029 48030 48031 48032 48033 48034 48035 48036 48037 48038 48039 48040 48041 48042 48043 48044 48045 |
# File 'ext/ctp/ctp.cxx', line 48018 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#InstrumentID=(*args) ⇒ Object
47988 47989 47990 47991 47992 47993 47994 47995 47996 47997 47998 47999 48000 48001 48002 48003 48004 48005 48006 48007 48008 48009 48010 48011 48012 48013 48014 48015 |
# File 'ext/ctp/ctp.cxx', line 47988 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[31] ; 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } |
#InvestorID(*args) ⇒ Object
47958 47959 47960 47961 47962 47963 47964 47965 47966 47967 47968 47969 47970 47971 47972 47973 47974 47975 47976 47977 47978 47979 47980 47981 47982 47983 47984 47985 |
# File 'ext/ctp/ctp.cxx', line 47958 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(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
47928 47929 47930 47931 47932 47933 47934 47935 47936 47937 47938 47939 47940 47941 47942 47943 47944 47945 47946 47947 47948 47949 47950 47951 47952 47953 47954 47955 |
# File 'ext/ctp/ctp.cxx', line 47928 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(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; } |
#MaxVolume(*args) ⇒ Object
48236 48237 48238 48239 48240 48241 48242 48243 48244 48245 48246 48247 48248 48249 48250 48251 48252 48253 48254 48255 48256 48257 |
# File 'ext/ctp/ctp.cxx', line 48236 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_MaxVolume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","MaxVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->MaxVolume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#MaxVolume=(*args) ⇒ Object
48207 48208 48209 48210 48211 48212 48213 48214 48215 48216 48217 48218 48219 48220 48221 48222 48223 48224 48225 48226 48227 48228 48229 48230 48231 48232 48233 |
# File 'ext/ctp/ctp.cxx', line 48207 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_MaxVolume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; TThostFtdcVolumeType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","MaxVolume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MaxVolume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->MaxVolume = arg2; return Qnil; fail: return Qnil; } |
#OffsetFlag(*args) ⇒ Object
48130 48131 48132 48133 48134 48135 48136 48137 48138 48139 48140 48141 48142 48143 48144 48145 48146 48147 48148 48149 48150 48151 |
# File 'ext/ctp/ctp.cxx', line 48130 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#OffsetFlag=(*args) ⇒ Object
48101 48102 48103 48104 48105 48106 48107 48108 48109 48110 48111 48112 48113 48114 48115 48116 48117 48118 48119 48120 48121 48122 48123 48124 48125 48126 48127 |
# File 'ext/ctp/ctp.cxx', line 48101 SWIGINTERN VALUE _wrap_CThostFtdcQueryMaxOrderVolumeField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryMaxOrderVolumeField *arg1 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->OffsetFlag = arg2; return Qnil; fail: return Qnil; } |