Class: Quickfix::PostgreSQLLogFactory
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__LogFactory->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__LogFactory->clientdata)->klass
- Quickfix::PostgreSQLLogFactory
- 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
- #create(*args, self) ⇒ Object
- #destroy(*args) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
Constructor Details
#initialize(*args, self) ⇒ Object
121765 121766 121767 121768 121769 121770 121771 121772 121773 121774 121775 121776 121777 121778 121779 121780 121781 121782 121783 121784 121785 121786 121787 121788 121789 121790 121791 121792 121793 121794 121795 121796 121797 121798 121799 121800 121801 121802 121803 121804 121805 121806 121807 121808 121809 121810 121811 121812 121813 121814 121815 121816 121817 121818 121819 121820 121821 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 121765
SWIGINTERN VALUE _wrap_new_PostgreSQLLogFactory(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_PostgreSQLLogFactory__SWIG_2(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_PostgreSQLLogFactory__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_PostgreSQLLogFactory__SWIG_1(nargs, args, self);
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 5, "PostgreSQLLogFactory.new",
" PostgreSQLLogFactory.new(FIX::SessionSettings const &settings)\n"
" PostgreSQLLogFactory.new(std::string const &database, std::string const &user, std::string const &password, std::string const &host, short port)\n"
" PostgreSQLLogFactory.new()\n");
return Qnil;
}
|
Class Method Details
.DEFAULT_DATABASE ⇒ Object
121517 121518 121519 121520 121521 121522 121523 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 121517 SWIGINTERN VALUE _wrap_PostgreSQLLogFactory_DEFAULT_DATABASE_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::PostgreSQLLogFactory::DEFAULT_DATABASE)); return _val; } |
.DEFAULT_HOST ⇒ Object
121544 121545 121546 121547 121548 121549 121550 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 121544 SWIGINTERN VALUE _wrap_PostgreSQLLogFactory_DEFAULT_HOST_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::PostgreSQLLogFactory::DEFAULT_HOST)); return _val; } |
.DEFAULT_PASSWORD ⇒ Object
121535 121536 121537 121538 121539 121540 121541 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 121535 SWIGINTERN VALUE _wrap_PostgreSQLLogFactory_DEFAULT_PASSWORD_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::PostgreSQLLogFactory::DEFAULT_PASSWORD)); return _val; } |
.DEFAULT_PORT ⇒ Object
121553 121554 121555 121556 121557 121558 121559 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 121553 SWIGINTERN VALUE _wrap_PostgreSQLLogFactory_DEFAULT_PORT_get(VALUE self) { VALUE _val; _val = SWIG_From_short(static_cast< short >(FIX::PostgreSQLLogFactory::DEFAULT_PORT)); return _val; } |
.DEFAULT_USER ⇒ Object
121526 121527 121528 121529 121530 121531 121532 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 121526 SWIGINTERN VALUE _wrap_PostgreSQLLogFactory_DEFAULT_USER_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::PostgreSQLLogFactory::DEFAULT_USER)); return _val; } |
Instance Method Details
#create(*args, self) ⇒ Object
121917 121918 121919 121920 121921 121922 121923 121924 121925 121926 121927 121928 121929 121930 121931 121932 121933 121934 121935 121936 121937 121938 121939 121940 121941 121942 121943 121944 121945 121946 121947 121948 121949 121950 121951 121952 121953 121954 121955 121956 121957 121958 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 121917
SWIGINTERN VALUE _wrap_PostgreSQLLogFactory_create(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__PostgreSQLLogFactory, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_PostgreSQLLogFactory_create__SWIG_0(nargs, args, self);
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__PostgreSQLLogFactory, 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_PostgreSQLLogFactory_create__SWIG_1(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "PostgreSQLLogFactory.create",
" FIX::Log PostgreSQLLogFactory.create()\n"
" FIX::Log * PostgreSQLLogFactory.create(FIX::SessionID const &)\n");
return Qnil;
}
|
#destroy(*args) ⇒ Object
121961 121962 121963 121964 121965 121966 121967 121968 121969 121970 121971 121972 121973 121974 121975 121976 121977 121978 121979 121980 121981 121982 121983 121984 121985 121986 121987 121988 121989 121990 121991 121992 121993 121994 121995 121996 121997 121998 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 121961
SWIGINTERN VALUE
_wrap_PostgreSQLLogFactory_destroy(int argc, VALUE *argv, VALUE self) {
FIX::PostgreSQLLogFactory *arg1 = (FIX::PostgreSQLLogFactory *) 0 ;
FIX::Log *arg2 = (FIX::Log *) 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__PostgreSQLLogFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLLogFactory *","destroy", 1, self ));
}
arg1 = reinterpret_cast< FIX::PostgreSQLLogFactory * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FIX__Log, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::Log *","destroy", 2, argv[0] ));
}
arg2 = reinterpret_cast< FIX::Log * >(argp2);
{
if(tryRubyException([&]() mutable
{
(arg1)->destroy(arg2);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
return Qnil;
fail:
return Qnil;
}
|