Class: Quickfix::Initiator
- Inherits:
-
Object
- Object
- Quickfix::Initiator
- Defined in:
- lib/quickfix_ruby.rb,
ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #block(*args) ⇒ Object
- #getApplication(*args) ⇒ Object
- #getLog(*args) ⇒ Object
- #getMessageStoreFactory(*args) ⇒ Object
- #getSession(*args, self) ⇒ Object
- #getSessions(*args) ⇒ Object
- #getSessionSettings(*args) ⇒ Object
- #has(*args) ⇒ Object
- #isLoggedOn(*args) ⇒ Object
- #isStopped(*args) ⇒ Object
- #poll(*args) ⇒ Object
- #start(*args) ⇒ Object
- #stop(*args, self) ⇒ Object
Instance Method Details
#block(*args) ⇒ Object
109042 109043 109044 109045 109046 109047 109048 109049 109050 109051 109052 109053 109054 109055 109056 109057 109058 109059 109060 109061 109062 109063 109064 109065 109066 109067 109068 109069 109070 109071 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109042 SWIGINTERN VALUE _wrap_Initiator_block(int argc, VALUE *argv, VALUE self) { FIX::Initiator *arg1 = (FIX::Initiator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; 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_FIX__Initiator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Initiator *","block", 1, self )); } arg1 = reinterpret_cast< FIX::Initiator * >(argp1); { if(tryRubyException([&]() mutable { (arg1)->block(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } return Qnil; fail: return Qnil; } |
#getApplication(*args) ⇒ Object
109580 109581 109582 109583 109584 109585 109586 109587 109588 109589 109590 109591 109592 109593 109594 109595 109596 109597 109598 109599 109600 109601 109602 109603 109604 109605 109606 109607 109608 109609 109610 109611 109612 109613 109614 109615 109616 109617 109618 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109580 SWIGINTERN VALUE _wrap_Initiator_getApplication(int argc, VALUE *argv, VALUE self) { FIX::Initiator *arg1 = (FIX::Initiator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; Swig::Director *director = 0; FIX::Application *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_FIX__Initiator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Initiator const *","getApplication", 1, self )); } arg1 = reinterpret_cast< FIX::Initiator * >(argp1); { if(tryRubyException([&]() mutable { result = (FIX::Application *) &((FIX::Initiator const *)arg1)->getApplication(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } director = dynamic_cast<Swig::Director *>(result); if (director) { vresult = director->swig_get_self(); } else { vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__Application, 0 | 0 ); } return vresult; fail: return Qnil; } |
#getLog(*args) ⇒ Object
109656 109657 109658 109659 109660 109661 109662 109663 109664 109665 109666 109667 109668 109669 109670 109671 109672 109673 109674 109675 109676 109677 109678 109679 109680 109681 109682 109683 109684 109685 109686 109687 109688 109689 109690 109691 109692 109693 109694 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109656 SWIGINTERN VALUE _wrap_Initiator_getLog(int argc, VALUE *argv, VALUE self) { FIX::Initiator *arg1 = (FIX::Initiator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; Swig::Director *director = 0; FIX::Log *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_FIX__Initiator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Initiator *","getLog", 1, self )); } arg1 = reinterpret_cast< FIX::Initiator * >(argp1); { if(tryRubyException([&]() mutable { result = (FIX::Log *)(arg1)->getLog(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } director = dynamic_cast<Swig::Director *>(result); if (director) { vresult = director->swig_get_self(); } else { vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__Log, 0 | 0 ); } return vresult; fail: return Qnil; } |
#getMessageStoreFactory(*args) ⇒ Object
109621 109622 109623 109624 109625 109626 109627 109628 109629 109630 109631 109632 109633 109634 109635 109636 109637 109638 109639 109640 109641 109642 109643 109644 109645 109646 109647 109648 109649 109650 109651 109652 109653 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109621 SWIGINTERN VALUE _wrap_Initiator_getMessageStoreFactory(int argc, VALUE *argv, VALUE self) { FIX::Initiator *arg1 = (FIX::Initiator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FIX::MessageStoreFactory *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_FIX__Initiator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Initiator const *","getMessageStoreFactory", 1, self )); } arg1 = reinterpret_cast< FIX::Initiator * >(argp1); { if(tryRubyException([&]() mutable { result = (FIX::MessageStoreFactory *) &((FIX::Initiator const *)arg1)->getMessageStoreFactory(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__MessageStoreFactory, 0 | 0 ); return vresult; fail: return Qnil; } |
#getSession(*args, self) ⇒ Object
109399 109400 109401 109402 109403 109404 109405 109406 109407 109408 109409 109410 109411 109412 109413 109414 109415 109416 109417 109418 109419 109420 109421 109422 109423 109424 109425 109426 109427 109428 109429 109430 109431 109432 109433 109434 109435 109436 109437 109438 109439 109440 109441 109442 109443 109444 109445 109446 109447 109448 109449 109450 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109399 SWIGINTERN VALUE _wrap_Initiator_getSession(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Initiator, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__SessionID, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_Initiator_getSession__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Initiator, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__SessionID, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Responder, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_Initiator_getSession__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "Initiator.getSession", " FIX::Session Initiator.getSession(FIX::SessionID const &sessionID, Responder &)\n" " FIX::Session * Initiator.getSession(FIX::SessionID const &sessionID)\n"); return Qnil; } |
#getSessions(*args) ⇒ Object
109318 109319 109320 109321 109322 109323 109324 109325 109326 109327 109328 109329 109330 109331 109332 109333 109334 109335 109336 109337 109338 109339 109340 109341 109342 109343 109344 109345 109346 109347 109348 109349 109350 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109318 SWIGINTERN VALUE _wrap_Initiator_getSessions(int argc, VALUE *argv, VALUE self) { FIX::Initiator *arg1 = (FIX::Initiator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::set< FIX::SessionID,std::less< FIX::SessionID >,std::allocator< FIX::SessionID > > *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_FIX__Initiator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Initiator const *","getSessions", 1, self )); } arg1 = reinterpret_cast< FIX::Initiator * >(argp1); { if(tryRubyException([&]() mutable { result = (std::set< FIX::SessionID,std::less< FIX::SessionID >,std::allocator< FIX::SessionID > > *) &((FIX::Initiator const *)arg1)->getSessions(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = swig::from(static_cast< std::set< FIX::SessionID,std::less< FIX::SessionID >,std::allocator< FIX::SessionID > > >(*result)); return vresult; fail: return Qnil; } |
#getSessionSettings(*args) ⇒ Object
109453 109454 109455 109456 109457 109458 109459 109460 109461 109462 109463 109464 109465 109466 109467 109468 109469 109470 109471 109472 109473 109474 109475 109476 109477 109478 109479 109480 109481 109482 109483 109484 109485 109486 109487 109488 109489 109490 109491 109492 109493 109494 109495 109496 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109453 SWIGINTERN VALUE _wrap_Initiator_getSessionSettings(int argc, VALUE *argv, VALUE self) { FIX::Initiator *arg1 = (FIX::Initiator *) 0 ; FIX::SessionID *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; FIX::Dictionary *result = 0 ; VALUE vresult = Qnil; 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_FIX__Initiator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Initiator const *","getSessionSettings", 1, self )); } arg1 = reinterpret_cast< FIX::Initiator * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__SessionID, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::SessionID const &","getSessionSettings", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::SessionID const &","getSessionSettings", 2, argv[0])); } arg2 = reinterpret_cast< FIX::SessionID * >(argp2); { if(tryRubyException([&]() mutable { result = (FIX::Dictionary *)((FIX::Initiator const *)arg1)->getSessionSettings((FIX::SessionID const &)*arg2); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__Dictionary, 0 | 0 ); return vresult; fail: return Qnil; } |
#has(*args) ⇒ Object
109499 109500 109501 109502 109503 109504 109505 109506 109507 109508 109509 109510 109511 109512 109513 109514 109515 109516 109517 109518 109519 109520 109521 109522 109523 109524 109525 109526 109527 109528 109529 109530 109531 109532 109533 109534 109535 109536 109537 109538 109539 109540 109541 109542 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109499 SWIGINTERN VALUE _wrap_Initiator_has(int argc, VALUE *argv, VALUE self) { FIX::Initiator *arg1 = (FIX::Initiator *) 0 ; FIX::SessionID *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool result; VALUE vresult = Qnil; 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_FIX__Initiator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Initiator const *","has", 1, self )); } arg1 = reinterpret_cast< FIX::Initiator * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__SessionID, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::SessionID const &","has", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::SessionID const &","has", 2, argv[0])); } arg2 = reinterpret_cast< FIX::SessionID * >(argp2); { if(tryRubyException([&]() mutable { result = (bool)((FIX::Initiator const *)arg1)->has((FIX::SessionID const &)*arg2); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } |
#isLoggedOn(*args) ⇒ Object
109226 109227 109228 109229 109230 109231 109232 109233 109234 109235 109236 109237 109238 109239 109240 109241 109242 109243 109244 109245 109246 109247 109248 109249 109250 109251 109252 109253 109254 109255 109256 109257 109258 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109226 SWIGINTERN VALUE _wrap_Initiator_isLoggedOn(int argc, VALUE *argv, VALUE self) { FIX::Initiator *arg1 = (FIX::Initiator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool 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_FIX__Initiator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Initiator const *","isLoggedOn", 1, self )); } arg1 = reinterpret_cast< FIX::Initiator * >(argp1); { if(tryRubyException([&]() mutable { result = (bool)((FIX::Initiator const *)arg1)->isLoggedOn(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } |
#isStopped(*args) ⇒ Object
109545 109546 109547 109548 109549 109550 109551 109552 109553 109554 109555 109556 109557 109558 109559 109560 109561 109562 109563 109564 109565 109566 109567 109568 109569 109570 109571 109572 109573 109574 109575 109576 109577 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109545 SWIGINTERN VALUE _wrap_Initiator_isStopped(int argc, VALUE *argv, VALUE self) { FIX::Initiator *arg1 = (FIX::Initiator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool 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_FIX__Initiator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Initiator const *","isStopped", 1, self )); } arg1 = reinterpret_cast< FIX::Initiator * >(argp1); { if(tryRubyException([&]() mutable { result = (bool)((FIX::Initiator const *)arg1)->isStopped(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } |
#poll(*args) ⇒ Object
109074 109075 109076 109077 109078 109079 109080 109081 109082 109083 109084 109085 109086 109087 109088 109089 109090 109091 109092 109093 109094 109095 109096 109097 109098 109099 109100 109101 109102 109103 109104 109105 109106 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109074 SWIGINTERN VALUE _wrap_Initiator_poll(int argc, VALUE *argv, VALUE self) { FIX::Initiator *arg1 = (FIX::Initiator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool 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_FIX__Initiator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Initiator *","poll", 1, self )); } arg1 = reinterpret_cast< FIX::Initiator * >(argp1); { if(tryRubyException([&]() mutable { result = (bool)(arg1)->poll(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } |
#start(*args) ⇒ Object
109010 109011 109012 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109010 def start Thread.new { block() } end |
#stop(*args, self) ⇒ Object
109181 109182 109183 109184 109185 109186 109187 109188 109189 109190 109191 109192 109193 109194 109195 109196 109197 109198 109199 109200 109201 109202 109203 109204 109205 109206 109207 109208 109209 109210 109211 109212 109213 109214 109215 109216 109217 109218 109219 109220 109221 109222 109223 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109181 SWIGINTERN VALUE _wrap_Initiator_stop(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 1) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Initiator, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Initiator_stop__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Initiator, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Initiator_stop__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "Initiator.stop", " void Initiator.stop(bool force)\n" " void Initiator.stop()\n"); return Qnil; } |