Class: Quickfix::PostgreSQLStoreFactory
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__MessageStoreFactory->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__MessageStoreFactory->clientdata)->klass
- Quickfix::PostgreSQLStoreFactory
- 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
119546 119547 119548 119549 119550 119551 119552 119553 119554 119555 119556 119557 119558 119559 119560 119561 119562 119563 119564 119565 119566 119567 119568 119569 119570 119571 119572 119573 119574 119575 119576 119577 119578 119579 119580 119581 119582 119583 119584 119585 119586 119587 119588 119589 119590 119591 119592 119593 119594 119595 119596 119597 119598 119599 119600 119601 119602 119603 119604 119605 119606 119607 119608 119609 119610 119611 119612 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119546 SWIGINTERN VALUE _wrap_new_PostgreSQLStoreFactory(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_PostgreSQLStoreFactory__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_PostgreSQLStoreFactory__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_PostgreSQLStoreFactory__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_PostgreSQLStoreFactory__SWIG_2(nargs, args, self); } } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "PostgreSQLStoreFactory.new", " PostgreSQLStoreFactory.new(FIX::SessionSettings const &settings)\n" " PostgreSQLStoreFactory.new(FIX::Dictionary const &dictionary)\n" " PostgreSQLStoreFactory.new(std::string const &database, std::string const &user, std::string const &password, std::string const &host, short port)\n" " PostgreSQLStoreFactory.new()\n"); return Qnil; } |
Class Method Details
.DEFAULT_DATABASE ⇒ Object
119260 119261 119262 119263 119264 119265 119266 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119260 SWIGINTERN VALUE _wrap_PostgreSQLStoreFactory_DEFAULT_DATABASE_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::PostgreSQLStoreFactory::DEFAULT_DATABASE)); return _val; } |
.DEFAULT_HOST ⇒ Object
119287 119288 119289 119290 119291 119292 119293 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119287 SWIGINTERN VALUE _wrap_PostgreSQLStoreFactory_DEFAULT_HOST_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::PostgreSQLStoreFactory::DEFAULT_HOST)); return _val; } |
.DEFAULT_PASSWORD ⇒ Object
119278 119279 119280 119281 119282 119283 119284 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119278 SWIGINTERN VALUE _wrap_PostgreSQLStoreFactory_DEFAULT_PASSWORD_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::PostgreSQLStoreFactory::DEFAULT_PASSWORD)); return _val; } |
.DEFAULT_PORT ⇒ Object
119296 119297 119298 119299 119300 119301 119302 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119296 SWIGINTERN VALUE _wrap_PostgreSQLStoreFactory_DEFAULT_PORT_get(VALUE self) { VALUE _val; _val = SWIG_From_short(static_cast< short >(FIX::PostgreSQLStoreFactory::DEFAULT_PORT)); return _val; } |
.DEFAULT_USER ⇒ Object
119269 119270 119271 119272 119273 119274 119275 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119269 SWIGINTERN VALUE _wrap_PostgreSQLStoreFactory_DEFAULT_USER_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::PostgreSQLStoreFactory::DEFAULT_USER)); return _val; } |
Instance Method Details
#create(*args) ⇒ Object
119615 119616 119617 119618 119619 119620 119621 119622 119623 119624 119625 119626 119627 119628 119629 119630 119631 119632 119633 119634 119635 119636 119637 119638 119639 119640 119641 119642 119643 119644 119645 119646 119647 119648 119649 119650 119651 119652 119653 119654 119655 119656 119657 119658 119659 119660 119661 119662 119663 119664 119665 119666 119667 119668 119669 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119615 SWIGINTERN VALUE _wrap_PostgreSQLStoreFactory_create(int argc, VALUE *argv, VALUE self) { FIX::PostgreSQLStoreFactory *arg1 = (FIX::PostgreSQLStoreFactory *) 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__PostgreSQLStoreFactory, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLStoreFactory *","create", 1, self )); } arg1 = reinterpret_cast< FIX::PostgreSQLStoreFactory * >(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
119672 119673 119674 119675 119676 119677 119678 119679 119680 119681 119682 119683 119684 119685 119686 119687 119688 119689 119690 119691 119692 119693 119694 119695 119696 119697 119698 119699 119700 119701 119702 119703 119704 119705 119706 119707 119708 119709 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119672 SWIGINTERN VALUE _wrap_PostgreSQLStoreFactory_destroy(int argc, VALUE *argv, VALUE self) { FIX::PostgreSQLStoreFactory *arg1 = (FIX::PostgreSQLStoreFactory *) 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__PostgreSQLStoreFactory, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLStoreFactory *","destroy", 1, self )); } arg1 = reinterpret_cast< FIX::PostgreSQLStoreFactory * >(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; } |