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
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 119710 119711 119712 119713 119714 119715 119716 119717 119718 119719 119720 119721 119722 119723 119724 119725 119726 119727 119728 119729 119730 119731 119732 119733 119734 119735 119736 119737 119738 119739 119740 119741 119742 119743 119744 119745 119746 119747 119748 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119682
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
119396 119397 119398 119399 119400 119401 119402 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119396 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
119423 119424 119425 119426 119427 119428 119429 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119423 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
119414 119415 119416 119417 119418 119419 119420 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119414 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
119432 119433 119434 119435 119436 119437 119438 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119432 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
119405 119406 119407 119408 119409 119410 119411 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119405 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
119751 119752 119753 119754 119755 119756 119757 119758 119759 119760 119761 119762 119763 119764 119765 119766 119767 119768 119769 119770 119771 119772 119773 119774 119775 119776 119777 119778 119779 119780 119781 119782 119783 119784 119785 119786 119787 119788 119789 119790 119791 119792 119793 119794 119795 119796 119797 119798 119799 119800 119801 119802 119803 119804 119805 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119751
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
119808 119809 119810 119811 119812 119813 119814 119815 119816 119817 119818 119819 119820 119821 119822 119823 119824 119825 119826 119827 119828 119829 119830 119831 119832 119833 119834 119835 119836 119837 119838 119839 119840 119841 119842 119843 119844 119845 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119808
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;
}
|