Class: Ctp::CThostFtdcQryUserSessionField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryUserSessionField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #FrontID(*args) ⇒ Object
- #FrontID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #SessionID(*args) ⇒ Object
- #SessionID=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
60533 60534 60535 60536 60537 60538 60539 60540 60541 60542 60543 60544 60545 60546 |
# File 'ext/ctp/ctp.cxx', line 60533 SWIGINTERN VALUE _wrap_new_CThostFtdcQryUserSessionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryUserSessionField"; CThostFtdcQryUserSessionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryUserSessionField *)new CThostFtdcQryUserSessionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
60428 60429 60430 60431 60432 60433 60434 60435 60436 60437 60438 60439 60440 60441 60442 60443 60444 60445 60446 60447 60448 60449 60450 60451 60452 60453 60454 60455 |
# File 'ext/ctp/ctp.cxx', line 60428 SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(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
60398 60399 60400 60401 60402 60403 60404 60405 60406 60407 60408 60409 60410 60411 60412 60413 60414 60415 60416 60417 60418 60419 60420 60421 60422 60423 60424 60425 |
# File 'ext/ctp/ctp.cxx', line 60398 SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(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; } |
#FrontID(*args) ⇒ Object
60321 60322 60323 60324 60325 60326 60327 60328 60329 60330 60331 60332 60333 60334 60335 60336 60337 60338 60339 60340 60341 60342 |
# File 'ext/ctp/ctp.cxx', line 60321 SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#FrontID=(*args) ⇒ Object
60292 60293 60294 60295 60296 60297 60298 60299 60300 60301 60302 60303 60304 60305 60306 60307 60308 60309 60310 60311 60312 60313 60314 60315 60316 60317 60318 |
# File 'ext/ctp/ctp.cxx', line 60292 SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 0 ; TThostFtdcFrontIDType 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } |
#SessionID(*args) ⇒ Object
60374 60375 60376 60377 60378 60379 60380 60381 60382 60383 60384 60385 60386 60387 60388 60389 60390 60391 60392 60393 60394 60395 |
# File 'ext/ctp/ctp.cxx', line 60374 SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#SessionID=(*args) ⇒ Object
60345 60346 60347 60348 60349 60350 60351 60352 60353 60354 60355 60356 60357 60358 60359 60360 60361 60362 60363 60364 60365 60366 60367 60368 60369 60370 60371 |
# File 'ext/ctp/ctp.cxx', line 60345 SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 0 ; TThostFtdcSessionIDType 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } |
#UserID(*args) ⇒ Object
60488 60489 60490 60491 60492 60493 60494 60495 60496 60497 60498 60499 60500 60501 60502 60503 60504 60505 60506 60507 60508 60509 60510 60511 60512 60513 60514 60515 |
# File 'ext/ctp/ctp.cxx', line 60488 SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(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
60458 60459 60460 60461 60462 60463 60464 60465 60466 60467 60468 60469 60470 60471 60472 60473 60474 60475 60476 60477 60478 60479 60480 60481 60482 60483 60484 60485 |
# File 'ext/ctp/ctp.cxx', line 60458 SWIGINTERN VALUE _wrap_CThostFtdcQryUserSessionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryUserSessionField *arg1 = (CThostFtdcQryUserSessionField *) 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_CThostFtdcQryUserSessionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryUserSessionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryUserSessionField * >(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; } |