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
109178 109179 109180 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 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109178
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
109716 109717 109718 109719 109720 109721 109722 109723 109724 109725 109726 109727 109728 109729 109730 109731 109732 109733 109734 109735 109736 109737 109738 109739 109740 109741 109742 109743 109744 109745 109746 109747 109748 109749 109750 109751 109752 109753 109754 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109716
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
109792 109793 109794 109795 109796 109797 109798 109799 109800 109801 109802 109803 109804 109805 109806 109807 109808 109809 109810 109811 109812 109813 109814 109815 109816 109817 109818 109819 109820 109821 109822 109823 109824 109825 109826 109827 109828 109829 109830 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109792
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
109757 109758 109759 109760 109761 109762 109763 109764 109765 109766 109767 109768 109769 109770 109771 109772 109773 109774 109775 109776 109777 109778 109779 109780 109781 109782 109783 109784 109785 109786 109787 109788 109789 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109757
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
109535 109536 109537 109538 109539 109540 109541 109542 109543 109544 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 109578 109579 109580 109581 109582 109583 109584 109585 109586 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109535
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
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 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109454
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
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 109619 109620 109621 109622 109623 109624 109625 109626 109627 109628 109629 109630 109631 109632 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109589
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
109635 109636 109637 109638 109639 109640 109641 109642 109643 109644 109645 109646 109647 109648 109649 109650 109651 109652 109653 109654 109655 109656 109657 109658 109659 109660 109661 109662 109663 109664 109665 109666 109667 109668 109669 109670 109671 109672 109673 109674 109675 109676 109677 109678 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109635
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
109362 109363 109364 109365 109366 109367 109368 109369 109370 109371 109372 109373 109374 109375 109376 109377 109378 109379 109380 109381 109382 109383 109384 109385 109386 109387 109388 109389 109390 109391 109392 109393 109394 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109362
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
109681 109682 109683 109684 109685 109686 109687 109688 109689 109690 109691 109692 109693 109694 109695 109696 109697 109698 109699 109700 109701 109702 109703 109704 109705 109706 109707 109708 109709 109710 109711 109712 109713 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109681
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
109210 109211 109212 109213 109214 109215 109216 109217 109218 109219 109220 109221 109222 109223 109224 109225 109226 109227 109228 109229 109230 109231 109232 109233 109234 109235 109236 109237 109238 109239 109240 109241 109242 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109210
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
109146 109147 109148 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109146 def start Thread.new { block() } end |
#stop(*args, self) ⇒ Object
109317 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 109351 109352 109353 109354 109355 109356 109357 109358 109359 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 109317
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;
}
|