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
118582 118583 118584 118585 118586 118587 118588 118589 118590 118591 118592 118593 118594 118595 118596 118597 118598 118599 118600 118601 118602 118603 118604 118605 118606 118607 118608 118609 118610 118611 118612 118613 118614 118615 118616 118617 118618 118619 118620 118621 118622 118623 118624 118625 118626 118627 118628 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118582 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
118637 118638 118639 118640 118641 118642 118643 118644 118645 118646 118647 118648 118649 118650 118651 118652 118653 118654 118655 118656 118657 118658 118659 118660 118661 118662 118663 118664 118665 118666 118667 118668 118669 118670 118671 118672 118673 118674 118675 118676 118677 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118637 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
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 118814 118815 118816 118817 118818 118819 118820 118821 118822 118823 118824 118825 118826 118827 118828 118829 118830 118831 118832 118833 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118785 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
118750 118751 118752 118753 118754 118755 118756 118757 118758 118759 118760 118761 118762 118763 118764 118765 118766 118767 118768 118769 118770 118771 118772 118773 118774 118775 118776 118777 118778 118779 118780 118781 118782 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118750 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
118715 118716 118717 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 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118715 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
118680 118681 118682 118683 118684 118685 118686 118687 118688 118689 118690 118691 118692 118693 118694 118695 118696 118697 118698 118699 118700 118701 118702 118703 118704 118705 118706 118707 118708 118709 118710 118711 118712 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118680 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
118836 118837 118838 118839 118840 118841 118842 118843 118844 118845 118846 118847 118848 118849 118850 118851 118852 118853 118854 118855 118856 118857 118858 118859 118860 118861 118862 118863 118864 118865 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 118836 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; } |