Class: Ctp::CThostFtdcBrokerUserEventField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcBrokerUserEventField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #EventDate(*args) ⇒ Object
- #EventDate=(*args) ⇒ Object
- #EventSequenceNo(*args) ⇒ Object
- #EventSequenceNo=(*args) ⇒ Object
- #EventTime(*args) ⇒ Object
- #EventTime=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #UserEventInfo(*args) ⇒ Object
- #UserEventInfo=(*args) ⇒ Object
- #UserEventType(*args) ⇒ Object
- #UserEventType=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
111486 111487 111488 111489 111490 111491 111492 111493 111494 111495 111496 111497 111498 111499 |
# File 'ext/ctp/ctp.cxx', line 111486 SWIGINTERN VALUE _wrap_new_CThostFtdcBrokerUserEventField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerUserEventField"; CThostFtdcBrokerUserEventField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcBrokerUserEventField *)new CThostFtdcBrokerUserEventField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
110975 110976 110977 110978 110979 110980 110981 110982 110983 110984 110985 110986 110987 110988 110989 110990 110991 110992 110993 110994 110995 110996 110997 110998 110999 111000 111001 111002 |
# File 'ext/ctp/ctp.cxx', line 110975 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(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
110945 110946 110947 110948 110949 110950 110951 110952 110953 110954 110955 110956 110957 110958 110959 110960 110961 110962 110963 110964 110965 110966 110967 110968 110969 110970 110971 110972 |
# File 'ext/ctp/ctp.cxx', line 110945 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(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; } |
#EventDate(*args) ⇒ Object
111201 111202 111203 111204 111205 111206 111207 111208 111209 111210 111211 111212 111213 111214 111215 111216 111217 111218 111219 111220 111221 111222 111223 111224 111225 111226 111227 111228 |
# File 'ext/ctp/ctp.cxx', line 111201 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (char *) ((arg1)->EventDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#EventDate=(*args) ⇒ Object
111171 111172 111173 111174 111175 111176 111177 111178 111179 111180 111181 111182 111183 111184 111185 111186 111187 111188 111189 111190 111191 111192 111193 111194 111195 111196 111197 111198 |
# File 'ext/ctp/ctp.cxx', line 111171 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","EventDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EventDate,arg2,9*sizeof(char)); else memset(arg1->EventDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } |
#EventSequenceNo(*args) ⇒ Object
111147 111148 111149 111150 111151 111152 111153 111154 111155 111156 111157 111158 111159 111160 111161 111162 111163 111164 111165 111166 111167 111168 |
# File 'ext/ctp/ctp.cxx', line 111147 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventSequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventSequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->EventSequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#EventSequenceNo=(*args) ⇒ Object
111118 111119 111120 111121 111122 111123 111124 111125 111126 111127 111128 111129 111130 111131 111132 111133 111134 111135 111136 111137 111138 111139 111140 111141 111142 111143 111144 |
# File 'ext/ctp/ctp.cxx', line 111118 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventSequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; TThostFtdcSequenceNoType 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventSequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","EventSequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->EventSequenceNo = arg2; return Qnil; fail: return Qnil; } |
#EventTime(*args) ⇒ Object
111261 111262 111263 111264 111265 111266 111267 111268 111269 111270 111271 111272 111273 111274 111275 111276 111277 111278 111279 111280 111281 111282 111283 111284 111285 111286 111287 111288 |
# File 'ext/ctp/ctp.cxx', line 111261 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (char *) ((arg1)->EventTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#EventTime=(*args) ⇒ Object
111231 111232 111233 111234 111235 111236 111237 111238 111239 111240 111241 111242 111243 111244 111245 111246 111247 111248 111249 111250 111251 111252 111253 111254 111255 111256 111257 111258 |
# File 'ext/ctp/ctp.cxx', line 111231 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_EventTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","EventTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","EventTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->EventTime,arg2,9*sizeof(char)); else memset(arg1->EventTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } |
#InstrumentID(*args) ⇒ Object
111441 111442 111443 111444 111445 111446 111447 111448 111449 111450 111451 111452 111453 111454 111455 111456 111457 111458 111459 111460 111461 111462 111463 111464 111465 111466 111467 111468 |
# File 'ext/ctp/ctp.cxx', line 111441 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(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
111411 111412 111413 111414 111415 111416 111417 111418 111419 111420 111421 111422 111423 111424 111425 111426 111427 111428 111429 111430 111431 111432 111433 111434 111435 111436 111437 111438 |
# File 'ext/ctp/ctp.cxx', line 111411 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(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
111381 111382 111383 111384 111385 111386 111387 111388 111389 111390 111391 111392 111393 111394 111395 111396 111397 111398 111399 111400 111401 111402 111403 111404 111405 111406 111407 111408 |
# File 'ext/ctp/ctp.cxx', line 111381 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(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
111351 111352 111353 111354 111355 111356 111357 111358 111359 111360 111361 111362 111363 111364 111365 111366 111367 111368 111369 111370 111371 111372 111373 111374 111375 111376 111377 111378 |
# File 'ext/ctp/ctp.cxx', line 111351 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(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; } |
#UserEventInfo(*args) ⇒ Object
111321 111322 111323 111324 111325 111326 111327 111328 111329 111330 111331 111332 111333 111334 111335 111336 111337 111338 111339 111340 111341 111342 111343 111344 111345 111346 111347 111348 |
# File 'ext/ctp/ctp.cxx', line 111321 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserEventInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserEventInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (char *) ((arg1)->UserEventInfo); { size_t size = SWIG_strnlen(result, 1025); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#UserEventInfo=(*args) ⇒ Object
111291 111292 111293 111294 111295 111296 111297 111298 111299 111300 111301 111302 111303 111304 111305 111306 111307 111308 111309 111310 111311 111312 111313 111314 111315 111316 111317 111318 |
# File 'ext/ctp/ctp.cxx', line 111291 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserEventInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[1025] ; 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserEventInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 1025); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [1025]","UserEventInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserEventInfo,arg2,1025*sizeof(char)); else memset(arg1->UserEventInfo,0,1025*sizeof(char)); return Qnil; fail: return Qnil; } |
#UserEventType(*args) ⇒ Object
111094 111095 111096 111097 111098 111099 111100 111101 111102 111103 111104 111105 111106 111107 111108 111109 111110 111111 111112 111113 111114 111115 |
# File 'ext/ctp/ctp.cxx', line 111094 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserEventType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcUserEventTypeType 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserEventType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); result = (TThostFtdcUserEventTypeType) ((arg1)->UserEventType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#UserEventType=(*args) ⇒ Object
111065 111066 111067 111068 111069 111070 111071 111072 111073 111074 111075 111076 111077 111078 111079 111080 111081 111082 111083 111084 111085 111086 111087 111088 111089 111090 111091 |
# File 'ext/ctp/ctp.cxx', line 111065 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserEventType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 0 ; TThostFtdcUserEventTypeType 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserEventType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcUserEventTypeType","UserEventType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcUserEventTypeType >(val2); if (arg1) (arg1)->UserEventType = arg2; return Qnil; fail: return Qnil; } |
#UserID(*args) ⇒ Object
111035 111036 111037 111038 111039 111040 111041 111042 111043 111044 111045 111046 111047 111048 111049 111050 111051 111052 111053 111054 111055 111056 111057 111058 111059 111060 111061 111062 |
# File 'ext/ctp/ctp.cxx', line 111035 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(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
111005 111006 111007 111008 111009 111010 111011 111012 111013 111014 111015 111016 111017 111018 111019 111020 111021 111022 111023 111024 111025 111026 111027 111028 111029 111030 111031 111032 |
# File 'ext/ctp/ctp.cxx', line 111005 SWIGINTERN VALUE _wrap_CThostFtdcBrokerUserEventField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcBrokerUserEventField *arg1 = (CThostFtdcBrokerUserEventField *) 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_CThostFtdcBrokerUserEventField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserEventField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcBrokerUserEventField * >(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; } |