Class: Quickfix::MySQLStoreFactory
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__MessageStoreFactory->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__MessageStoreFactory->clientdata)->klass
- Quickfix::MySQLStoreFactory
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Class Method Summary collapse
- .DEFAULT_DATABASE ⇒ Object
- .DEFAULT_HOST ⇒ Object
- .DEFAULT_PASSWORD ⇒ Object
- .DEFAULT_PORT ⇒ Object
- .DEFAULT_USER ⇒ Object
Instance Method Summary collapse
Constructor Details
#initialize(*args, self) ⇒ Object
116376 116377 116378 116379 116380 116381 116382 116383 116384 116385 116386 116387 116388 116389 116390 116391 116392 116393 116394 116395 116396 116397 116398 116399 116400 116401 116402 116403 116404 116405 116406 116407 116408 116409 116410 116411 116412 116413 116414 116415 116416 116417 116418 116419 116420 116421 116422 116423 116424 116425 116426 116427 116428 116429 116430 116431 116432 116433 116434 116435 116436 116437 116438 116439 116440 116441 116442 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116376
SWIGINTERN VALUE _wrap_new_MySQLStoreFactory(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[5];
int ii;
argc = nargs;
if (argc > 5) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 0) {
return _wrap_new_MySQLStoreFactory__SWIG_3(nargs, args, self);
}
if (argc == 1) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Dictionary, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_MySQLStoreFactory__SWIG_1(nargs, args, self);
}
}
if (argc == 1) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__SessionSettings, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_MySQLStoreFactory__SWIG_0(nargs, args, self);
}
}
if (argc == 5) {
int _v = 0;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_short(argv[4], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_MySQLStoreFactory__SWIG_2(nargs, args, self);
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 5, "MySQLStoreFactory.new",
" MySQLStoreFactory.new(FIX::SessionSettings const &settings)\n"
" MySQLStoreFactory.new(FIX::Dictionary const &dictionary)\n"
" MySQLStoreFactory.new(std::string const &database, std::string const &user, std::string const &password, std::string const &host, short port)\n"
" MySQLStoreFactory.new()\n");
return Qnil;
}
|
Class Method Details
.DEFAULT_DATABASE ⇒ Object
116090 116091 116092 116093 116094 116095 116096 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116090 SWIGINTERN VALUE _wrap_MySQLStoreFactory_DEFAULT_DATABASE_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLStoreFactory::DEFAULT_DATABASE)); return _val; } |
.DEFAULT_HOST ⇒ Object
116117 116118 116119 116120 116121 116122 116123 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116117 SWIGINTERN VALUE _wrap_MySQLStoreFactory_DEFAULT_HOST_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLStoreFactory::DEFAULT_HOST)); return _val; } |
.DEFAULT_PASSWORD ⇒ Object
116108 116109 116110 116111 116112 116113 116114 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116108 SWIGINTERN VALUE _wrap_MySQLStoreFactory_DEFAULT_PASSWORD_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLStoreFactory::DEFAULT_PASSWORD)); return _val; } |
.DEFAULT_PORT ⇒ Object
116126 116127 116128 116129 116130 116131 116132 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116126 SWIGINTERN VALUE _wrap_MySQLStoreFactory_DEFAULT_PORT_get(VALUE self) { VALUE _val; _val = SWIG_From_short(static_cast< short >(FIX::MySQLStoreFactory::DEFAULT_PORT)); return _val; } |
.DEFAULT_USER ⇒ Object
116099 116100 116101 116102 116103 116104 116105 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116099 SWIGINTERN VALUE _wrap_MySQLStoreFactory_DEFAULT_USER_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLStoreFactory::DEFAULT_USER)); return _val; } |
Instance Method Details
#create(*args) ⇒ Object
116445 116446 116447 116448 116449 116450 116451 116452 116453 116454 116455 116456 116457 116458 116459 116460 116461 116462 116463 116464 116465 116466 116467 116468 116469 116470 116471 116472 116473 116474 116475 116476 116477 116478 116479 116480 116481 116482 116483 116484 116485 116486 116487 116488 116489 116490 116491 116492 116493 116494 116495 116496 116497 116498 116499 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116445
SWIGINTERN VALUE
_wrap_MySQLStoreFactory_create(int argc, VALUE *argv, VALUE self) {
FIX::MySQLStoreFactory *arg1 = (FIX::MySQLStoreFactory *) 0 ;
FIX::UtcTimeStamp *arg2 = 0 ;
FIX::SessionID *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
FIX::MessageStore *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FIX__MySQLStoreFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLStoreFactory *","create", 1, self ));
}
arg1 = reinterpret_cast< FIX::MySQLStoreFactory * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__UtcTimeStamp, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::UtcTimeStamp const &","create", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::UtcTimeStamp const &","create", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::UtcTimeStamp * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FIX__SessionID, 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FIX::SessionID const &","create", 3, argv[1] ));
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::SessionID const &","create", 3, argv[1]));
}
arg3 = reinterpret_cast< FIX::SessionID * >(argp3);
{
if(tryRubyException([&]() mutable
{
result = (FIX::MessageStore *)(arg1)->create((FIX::UtcTimeStamp const &)*arg2,(FIX::SessionID const &)*arg3);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__MessageStore, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#destroy(*args) ⇒ Object
116502 116503 116504 116505 116506 116507 116508 116509 116510 116511 116512 116513 116514 116515 116516 116517 116518 116519 116520 116521 116522 116523 116524 116525 116526 116527 116528 116529 116530 116531 116532 116533 116534 116535 116536 116537 116538 116539 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116502
SWIGINTERN VALUE
_wrap_MySQLStoreFactory_destroy(int argc, VALUE *argv, VALUE self) {
FIX::MySQLStoreFactory *arg1 = (FIX::MySQLStoreFactory *) 0 ;
FIX::MessageStore *arg2 = (FIX::MessageStore *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FIX__MySQLStoreFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLStoreFactory *","destroy", 1, self ));
}
arg1 = reinterpret_cast< FIX::MySQLStoreFactory * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FIX__MessageStore, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::MessageStore *","destroy", 2, argv[0] ));
}
arg2 = reinterpret_cast< FIX::MessageStore * >(argp2);
{
if(tryRubyException([&]() mutable
{
(arg1)->destroy(arg2);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
return Qnil;
fail:
return Qnil;
}
|