Class: Quickfix::Acceptor
- Inherits:
-
Object
- Object
- Quickfix::Acceptor
- 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, self) ⇒ Object
- #start(*args) ⇒ Object
- #stop(*args, self) ⇒ Object
Instance Method Details
#block(*args) ⇒ Object
217167 217168 217169 217170 217171 217172 217173 217174 217175 217176 217177 217178 217179 217180 217181 217182 217183 217184 217185 217186 217187 217188 217189 217190 217191 217192 217193 217194 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217167
SWIGINTERN VALUE
_wrap_Acceptor_block(int argc, VALUE *argv, VALUE self) {
FIX::Acceptor *arg1 = (FIX::Acceptor *) 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__Acceptor, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Acceptor *","block", 1, self ));
}
arg1 = reinterpret_cast< FIX::Acceptor * >(argp1);
try {
(arg1)->block();
}
catch(FIX::ConfigError &_e) {
rb_exc_raise(SWIG_Ruby_ExceptionType(SWIGTYPE_p_FIX__ConfigError, SWIG_NewPointerObj((new FIX::ConfigError(static_cast< const FIX::ConfigError& >(_e))),SWIGTYPE_p_FIX__ConfigError,SWIG_POINTER_OWN))); SWIG_fail;
}
catch(FIX::RuntimeError &_e) {
rb_exc_raise(SWIG_Ruby_ExceptionType(SWIGTYPE_p_FIX__RuntimeError, SWIG_NewPointerObj((new FIX::RuntimeError(static_cast< const FIX::RuntimeError& >(_e))),SWIGTYPE_p_FIX__RuntimeError,SWIG_POINTER_OWN))); SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#getApplication(*args) ⇒ Object
217698 217699 217700 217701 217702 217703 217704 217705 217706 217707 217708 217709 217710 217711 217712 217713 217714 217715 217716 217717 217718 217719 217720 217721 217722 217723 217724 217725 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217698
SWIGINTERN VALUE
_wrap_Acceptor_getApplication(int argc, VALUE *argv, VALUE self) {
FIX::Acceptor *arg1 = (FIX::Acceptor *) 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__Acceptor, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Acceptor *","getApplication", 1, self ));
}
arg1 = reinterpret_cast< FIX::Acceptor * >(argp1);
result = (FIX::Application *) &(arg1)->getApplication();
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
217113 217114 217115 217116 217117 217118 217119 217120 217121 217122 217123 217124 217125 217126 217127 217128 217129 217130 217131 217132 217133 217134 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217113
SWIGINTERN VALUE
_wrap_Acceptor_getLog(int argc, VALUE *argv, VALUE self) {
FIX::Acceptor *arg1 = (FIX::Acceptor *) 0 ;
void *argp1 = 0 ;
int res1 = 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__Acceptor, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Acceptor *","getLog", 1, self ));
}
arg1 = reinterpret_cast< FIX::Acceptor * >(argp1);
result = (FIX::Log *)(arg1)->getLog();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__Log, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#getMessageStoreFactory(*args) ⇒ Object
217728 217729 217730 217731 217732 217733 217734 217735 217736 217737 217738 217739 217740 217741 217742 217743 217744 217745 217746 217747 217748 217749 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217728
SWIGINTERN VALUE
_wrap_Acceptor_getMessageStoreFactory(int argc, VALUE *argv, VALUE self) {
FIX::Acceptor *arg1 = (FIX::Acceptor *) 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__Acceptor, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Acceptor *","getMessageStoreFactory", 1, self ));
}
arg1 = reinterpret_cast< FIX::Acceptor * >(argp1);
result = (FIX::MessageStoreFactory *) &(arg1)->getMessageStoreFactory();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__MessageStoreFactory, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#getSession(*args, self) ⇒ Object
217551 217552 217553 217554 217555 217556 217557 217558 217559 217560 217561 217562 217563 217564 217565 217566 217567 217568 217569 217570 217571 217572 217573 217574 217575 217576 217577 217578 217579 217580 217581 217582 217583 217584 217585 217586 217587 217588 217589 217590 217591 217592 217593 217594 217595 217596 217597 217598 217599 217600 217601 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217551
SWIGINTERN VALUE _wrap_Acceptor_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;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Acceptor, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__SessionID, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Acceptor_getSession__SWIG_1(nargs, args, self);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Acceptor, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Responder, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Acceptor_getSession__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "Acceptor.getSession",
" FIX::Session Acceptor.getSession(std::string const &msg, Responder &)\n"
" FIX::Session * Acceptor.getSession(FIX::SessionID const &sessionID)\n");
return Qnil;
}
|
#getSessions(*args) ⇒ Object
217492 217493 217494 217495 217496 217497 217498 217499 217500 217501 217502 217503 217504 217505 217506 217507 217508 217509 217510 217511 217512 217513 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217492
SWIGINTERN VALUE
_wrap_Acceptor_getSessions(int argc, VALUE *argv, VALUE self) {
FIX::Acceptor *arg1 = (FIX::Acceptor *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::set< 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__Acceptor, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Acceptor const *","getSessions", 1, self ));
}
arg1 = reinterpret_cast< FIX::Acceptor * >(argp1);
result = (std::set< FIX::SessionID > *) &((FIX::Acceptor const *)arg1)->getSessions();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_FIX__SessionID_t, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#getSessionSettings(*args) ⇒ Object
217604 217605 217606 217607 217608 217609 217610 217611 217612 217613 217614 217615 217616 217617 217618 217619 217620 217621 217622 217623 217624 217625 217626 217627 217628 217629 217630 217631 217632 217633 217634 217635 217636 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217604
SWIGINTERN VALUE
_wrap_Acceptor_getSessionSettings(int argc, VALUE *argv, VALUE self) {
FIX::Acceptor *arg1 = (FIX::Acceptor *) 0 ;
FIX::SessionID *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
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__Acceptor, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Acceptor const *","getSessionSettings", 1, self ));
}
arg1 = reinterpret_cast< FIX::Acceptor * >(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);
result = (FIX::Dictionary *)((FIX::Acceptor const *)arg1)->getSessionSettings((FIX::SessionID const &)*arg2);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__Dictionary, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#has(*args) ⇒ Object
217639 217640 217641 217642 217643 217644 217645 217646 217647 217648 217649 217650 217651 217652 217653 217654 217655 217656 217657 217658 217659 217660 217661 217662 217663 217664 217665 217666 217667 217668 217669 217670 217671 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217639
SWIGINTERN VALUE
_wrap_Acceptor_has(int argc, VALUE *argv, VALUE self) {
FIX::Acceptor *arg1 = (FIX::Acceptor *) 0 ;
FIX::SessionID *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
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__Acceptor, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Acceptor *","has", 1, self ));
}
arg1 = reinterpret_cast< FIX::Acceptor * >(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);
result = (bool)(arg1)->has((FIX::SessionID const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#isLoggedOn(*args) ⇒ Object
217411 217412 217413 217414 217415 217416 217417 217418 217419 217420 217421 217422 217423 217424 217425 217426 217427 217428 217429 217430 217431 217432 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217411
SWIGINTERN VALUE
_wrap_Acceptor_isLoggedOn(int argc, VALUE *argv, VALUE self) {
FIX::Acceptor *arg1 = (FIX::Acceptor *) 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__Acceptor, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Acceptor *","isLoggedOn", 1, self ));
}
arg1 = reinterpret_cast< FIX::Acceptor * >(argp1);
result = (bool)(arg1)->isLoggedOn();
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#isStopped(*args) ⇒ Object
217674 217675 217676 217677 217678 217679 217680 217681 217682 217683 217684 217685 217686 217687 217688 217689 217690 217691 217692 217693 217694 217695 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217674
SWIGINTERN VALUE
_wrap_Acceptor_isStopped(int argc, VALUE *argv, VALUE self) {
FIX::Acceptor *arg1 = (FIX::Acceptor *) 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__Acceptor, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Acceptor *","isStopped", 1, self ));
}
arg1 = reinterpret_cast< FIX::Acceptor * >(argp1);
result = (bool)(arg1)->isStopped();
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#poll(*args, self) ⇒ Object
217271 217272 217273 217274 217275 217276 217277 217278 217279 217280 217281 217282 217283 217284 217285 217286 217287 217288 217289 217290 217291 217292 217293 217294 217295 217296 217297 217298 217299 217300 217301 217302 217303 217304 217305 217306 217307 217308 217309 217310 217311 217312 217313 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217271
SWIGINTERN VALUE _wrap_Acceptor_poll(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;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Acceptor, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Acceptor_poll__SWIG_1(nargs, args, self);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Acceptor, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Acceptor_poll__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "Acceptor.poll",
" bool Acceptor.poll(double timeout)\n"
" bool Acceptor.poll()\n");
return Qnil;
}
|
#start(*args) ⇒ Object
217137 217138 217139 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217137 def start Thread.new { block() } end |
#stop(*args, self) ⇒ Object
217366 217367 217368 217369 217370 217371 217372 217373 217374 217375 217376 217377 217378 217379 217380 217381 217382 217383 217384 217385 217386 217387 217388 217389 217390 217391 217392 217393 217394 217395 217396 217397 217398 217399 217400 217401 217402 217403 217404 217405 217406 217407 217408 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 217366
SWIGINTERN VALUE _wrap_Acceptor_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;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Acceptor, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Acceptor_stop__SWIG_1(nargs, args, self);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Acceptor, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_bool(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_Acceptor_stop__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "Acceptor.stop",
" void Acceptor.stop(bool force)\n"
" void Acceptor.stop()\n");
return Qnil;
}
|