Class: Quickfix::PostgreSQLQuery
- Inherits:
-
Object
- Object
- Quickfix::PostgreSQLQuery
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #execute(*args) ⇒ Object
- #getValue(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #reason(*args) ⇒ Object
- #rows(*args) ⇒ Object
- #success(*args) ⇒ Object
- #throwException(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
118718 118719 118720 118721 118722 118723 118724 118725 118726 118727 118728 118729 118730 118731 118732 118733 118734 118735 118736 118737 118738 118739 118740 118741 118742 118743 118744 118745 118746 118747 118748 118749 118750 118751 118752 118753 118754 118755 118756 118757 118758 118759 118760 118761 118762 118763 118764 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118718 SWIGINTERN VALUE _wrap_new_PostgreSQLQuery(int argc, VALUE *argv, VALUE self) { std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; const char *classname SWIGUNUSED = "Quickfix::PostgreSQLQuery"; FIX::PostgreSQLQuery *result = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } { std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(argv[0], &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::string const &","PostgreSQLQuery", 1, argv[0] )); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","PostgreSQLQuery", 1, argv[0])); } arg1 = ptr; } { if(tryRubyException([&]() mutable { result = (FIX::PostgreSQLQuery *)new FIX::PostgreSQLQuery((std::string const &)*arg1); DATA_PTR(self) = result; return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } { if( std::string("std::string const &") == "std::string &" ) { rb_str_resize( argv[0], 0 ); rb_str_append( argv[0], rb_str_new2(arg1->c_str()) ); } } if (SWIG_IsNewObj(res1)) delete arg1; return self; fail: if (SWIG_IsNewObj(res1)) delete arg1; return Qnil; } |
Instance Method Details
#execute(*args) ⇒ Object
118773 118774 118775 118776 118777 118778 118779 118780 118781 118782 118783 118784 118785 118786 118787 118788 118789 118790 118791 118792 118793 118794 118795 118796 118797 118798 118799 118800 118801 118802 118803 118804 118805 118806 118807 118808 118809 118810 118811 118812 118813 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118773 SWIGINTERN VALUE _wrap_PostgreSQLQuery_execute(int argc, VALUE *argv, VALUE self) { FIX::PostgreSQLQuery *arg1 = (FIX::PostgreSQLQuery *) 0 ; PGconn *arg2 = (PGconn *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; 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__PostgreSQLQuery, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLQuery *","execute", 1, self )); } arg1 = reinterpret_cast< FIX::PostgreSQLQuery * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_PGconn, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "PGconn *","execute", 2, argv[0] )); } arg2 = reinterpret_cast< PGconn * >(argp2); { if(tryRubyException([&]() mutable { result = (bool)(arg1)->execute(arg2); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } |
#getValue(*args) ⇒ Object
118921 118922 118923 118924 118925 118926 118927 118928 118929 118930 118931 118932 118933 118934 118935 118936 118937 118938 118939 118940 118941 118942 118943 118944 118945 118946 118947 118948 118949 118950 118951 118952 118953 118954 118955 118956 118957 118958 118959 118960 118961 118962 118963 118964 118965 118966 118967 118968 118969 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118921 SWIGINTERN VALUE _wrap_PostgreSQLQuery_getValue(int argc, VALUE *argv, VALUE self) { FIX::PostgreSQLQuery *arg1 = (FIX::PostgreSQLQuery *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; char *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__PostgreSQLQuery, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLQuery *","getValue", 1, self )); } arg1 = reinterpret_cast< FIX::PostgreSQLQuery * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","getValue", 2, argv[0] )); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","getValue", 3, argv[1] )); } arg3 = static_cast< int >(val3); { if(tryRubyException([&]() mutable { result = (char *)(arg1)->getValue(arg2,arg3); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } |
#reason(*args) ⇒ Object
118886 118887 118888 118889 118890 118891 118892 118893 118894 118895 118896 118897 118898 118899 118900 118901 118902 118903 118904 118905 118906 118907 118908 118909 118910 118911 118912 118913 118914 118915 118916 118917 118918 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118886 SWIGINTERN VALUE _wrap_PostgreSQLQuery_reason(int argc, VALUE *argv, VALUE self) { FIX::PostgreSQLQuery *arg1 = (FIX::PostgreSQLQuery *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *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__PostgreSQLQuery, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLQuery *","reason", 1, self )); } arg1 = reinterpret_cast< FIX::PostgreSQLQuery * >(argp1); { if(tryRubyException([&]() mutable { result = (char *)(arg1)->reason(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } |
#rows(*args) ⇒ Object
118851 118852 118853 118854 118855 118856 118857 118858 118859 118860 118861 118862 118863 118864 118865 118866 118867 118868 118869 118870 118871 118872 118873 118874 118875 118876 118877 118878 118879 118880 118881 118882 118883 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118851 SWIGINTERN VALUE _wrap_PostgreSQLQuery_rows(int argc, VALUE *argv, VALUE self) { FIX::PostgreSQLQuery *arg1 = (FIX::PostgreSQLQuery *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int 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__PostgreSQLQuery, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLQuery *","rows", 1, self )); } arg1 = reinterpret_cast< FIX::PostgreSQLQuery * >(argp1); { if(tryRubyException([&]() mutable { result = (int)(arg1)->rows(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#success(*args) ⇒ Object
118816 118817 118818 118819 118820 118821 118822 118823 118824 118825 118826 118827 118828 118829 118830 118831 118832 118833 118834 118835 118836 118837 118838 118839 118840 118841 118842 118843 118844 118845 118846 118847 118848 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118816 SWIGINTERN VALUE _wrap_PostgreSQLQuery_success(int argc, VALUE *argv, VALUE self) { FIX::PostgreSQLQuery *arg1 = (FIX::PostgreSQLQuery *) 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__PostgreSQLQuery, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLQuery *","success", 1, self )); } arg1 = reinterpret_cast< FIX::PostgreSQLQuery * >(argp1); { if(tryRubyException([&]() mutable { result = (bool)(arg1)->success(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; } |
#throwException(*args) ⇒ Object
118972 118973 118974 118975 118976 118977 118978 118979 118980 118981 118982 118983 118984 118985 118986 118987 118988 118989 118990 118991 118992 118993 118994 118995 118996 118997 118998 118999 119000 119001 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118972 SWIGINTERN VALUE _wrap_PostgreSQLQuery_throwException(int argc, VALUE *argv, VALUE self) { FIX::PostgreSQLQuery *arg1 = (FIX::PostgreSQLQuery *) 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__PostgreSQLQuery, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLQuery *","throwException", 1, self )); } arg1 = reinterpret_cast< FIX::PostgreSQLQuery * >(argp1); { if(tryRubyException([&]() mutable { (arg1)->throwException(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } return Qnil; fail: return Qnil; } |