Class: Quickfix::Log
- Inherits:
-
Object
- Object
- Quickfix::Log
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #backup(*args) ⇒ Object
-
#clear(*args) ⇒ Object
call-seq: clear.
- #initialize(*args) ⇒ Object constructor
- #onEvent(*args) ⇒ Object
- #onIncoming(*args) ⇒ Object
- #onOutgoing(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
103113 103114 103115 103116 103117 103118 103119 103120 103121 103122 103123 103124 103125 103126 103127 103128 103129 103130 103131 103132 103133 103134 103135 103136 103137 103138 103139 103140 103141 103142 103143 103144 103145 103146 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 103113 SWIGINTERN VALUE _wrap_new_Log(int argc, VALUE *argv, VALUE self) { VALUE arg1 = (VALUE) 0 ; const char *classname SWIGUNUSED = "Quickfix::Log"; FIX::Log *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } arg1 = self; { if(tryRubyException([&]() mutable { if ( strcmp(rb_obj_classname(self), classname) != 0 ) { /* subclassed */ result = (FIX::Log *)new SwigDirector_Log(arg1); } else { rb_raise(rb_eNameError,"accessing abstract class or protected constructor"); return Qnil; } DATA_PTR(self) = result; return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } return self; fail: return Qnil; } |
Instance Method Details
#backup(*args) ⇒ Object
102849 102850 102851 102852 102853 102854 102855 102856 102857 102858 102859 102860 102861 102862 102863 102864 102865 102866 102867 102868 102869 102870 102871 102872 102873 102874 102875 102876 102877 102878 102879 102880 102881 102882 102883 102884 102885 102886 102887 102888 102889 102890 102891 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 102849 SWIGINTERN VALUE _wrap_Log_backup(int argc, VALUE *argv, VALUE self) { FIX::Log *arg1 = (FIX::Log *) 0 ; void *argp1 = 0 ; int res1 = 0 ; Swig::Director *director = 0; bool upcall = false; 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__Log, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Log *","backup", 1, self )); } arg1 = reinterpret_cast< FIX::Log * >(argp1); director = dynamic_cast<Swig::Director *>(arg1); upcall = (director && (director->swig_get_self() == self)); try { { if(tryRubyException([&]() mutable { if (upcall) { Swig::DirectorPureVirtualException::raise("FIX::Log::backup"); } else { (arg1)->backup(); } return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } |
#clear(*args) ⇒ Object
call-seq:
clear
Clear Log contents.
102804 102805 102806 102807 102808 102809 102810 102811 102812 102813 102814 102815 102816 102817 102818 102819 102820 102821 102822 102823 102824 102825 102826 102827 102828 102829 102830 102831 102832 102833 102834 102835 102836 102837 102838 102839 102840 102841 102842 102843 102844 102845 102846 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 102804 SWIGINTERN VALUE _wrap_Log_clear(int argc, VALUE *argv, VALUE self) { FIX::Log *arg1 = (FIX::Log *) 0 ; void *argp1 = 0 ; int res1 = 0 ; Swig::Director *director = 0; bool upcall = false; 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__Log, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Log *","clear", 1, self )); } arg1 = reinterpret_cast< FIX::Log * >(argp1); director = dynamic_cast<Swig::Director *>(arg1); upcall = (director && (director->swig_get_self() == self)); try { { if(tryRubyException([&]() mutable { if (upcall) { Swig::DirectorPureVirtualException::raise("FIX::Log::clear"); } else { (arg1)->clear(); } return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } |
#onEvent(*args) ⇒ Object
103030 103031 103032 103033 103034 103035 103036 103037 103038 103039 103040 103041 103042 103043 103044 103045 103046 103047 103048 103049 103050 103051 103052 103053 103054 103055 103056 103057 103058 103059 103060 103061 103062 103063 103064 103065 103066 103067 103068 103069 103070 103071 103072 103073 103074 103075 103076 103077 103078 103079 103080 103081 103082 103083 103084 103085 103086 103087 103088 103089 103090 103091 103092 103093 103094 103095 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 103030 SWIGINTERN VALUE _wrap_Log_onEvent(int argc, VALUE *argv, VALUE self) { FIX::Log *arg1 = (FIX::Log *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; Swig::Director *director = 0; bool upcall = false; 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__Log, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Log *","onEvent", 1, self )); } arg1 = reinterpret_cast< FIX::Log * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(argv[0], &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","onEvent", 2, argv[0] )); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","onEvent", 2, argv[0])); } arg2 = ptr; } director = dynamic_cast<Swig::Director *>(arg1); upcall = (director && (director->swig_get_self() == self)); try { { if(tryRubyException([&]() mutable { if (upcall) { Swig::DirectorPureVirtualException::raise("FIX::Log::onEvent"); } else { (arg1)->onEvent((std::string const &)*arg2); } return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } { if( std::string("std::string const &") == "std::string &" ) { rb_str_resize( argv[0], 0 ); rb_str_append( argv[0], rb_str_new2(arg2->c_str()) ); } } if (SWIG_IsNewObj(res2)) delete arg2; return vresult; fail: if (SWIG_IsNewObj(res2)) delete arg2; return Qnil; } |
#onIncoming(*args) ⇒ Object
102894 102895 102896 102897 102898 102899 102900 102901 102902 102903 102904 102905 102906 102907 102908 102909 102910 102911 102912 102913 102914 102915 102916 102917 102918 102919 102920 102921 102922 102923 102924 102925 102926 102927 102928 102929 102930 102931 102932 102933 102934 102935 102936 102937 102938 102939 102940 102941 102942 102943 102944 102945 102946 102947 102948 102949 102950 102951 102952 102953 102954 102955 102956 102957 102958 102959 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 102894 SWIGINTERN VALUE _wrap_Log_onIncoming(int argc, VALUE *argv, VALUE self) { FIX::Log *arg1 = (FIX::Log *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; Swig::Director *director = 0; bool upcall = false; 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__Log, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Log *","onIncoming", 1, self )); } arg1 = reinterpret_cast< FIX::Log * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(argv[0], &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","onIncoming", 2, argv[0] )); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","onIncoming", 2, argv[0])); } arg2 = ptr; } director = dynamic_cast<Swig::Director *>(arg1); upcall = (director && (director->swig_get_self() == self)); try { { if(tryRubyException([&]() mutable { if (upcall) { Swig::DirectorPureVirtualException::raise("FIX::Log::onIncoming"); } else { (arg1)->onIncoming((std::string const &)*arg2); } return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } { if( std::string("std::string const &") == "std::string &" ) { rb_str_resize( argv[0], 0 ); rb_str_append( argv[0], rb_str_new2(arg2->c_str()) ); } } if (SWIG_IsNewObj(res2)) delete arg2; return vresult; fail: if (SWIG_IsNewObj(res2)) delete arg2; return Qnil; } |
#onOutgoing(*args) ⇒ Object
102962 102963 102964 102965 102966 102967 102968 102969 102970 102971 102972 102973 102974 102975 102976 102977 102978 102979 102980 102981 102982 102983 102984 102985 102986 102987 102988 102989 102990 102991 102992 102993 102994 102995 102996 102997 102998 102999 103000 103001 103002 103003 103004 103005 103006 103007 103008 103009 103010 103011 103012 103013 103014 103015 103016 103017 103018 103019 103020 103021 103022 103023 103024 103025 103026 103027 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 102962 SWIGINTERN VALUE _wrap_Log_onOutgoing(int argc, VALUE *argv, VALUE self) { FIX::Log *arg1 = (FIX::Log *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; Swig::Director *director = 0; bool upcall = false; 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__Log, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Log *","onOutgoing", 1, self )); } arg1 = reinterpret_cast< FIX::Log * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(argv[0], &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","onOutgoing", 2, argv[0] )); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","onOutgoing", 2, argv[0])); } arg2 = ptr; } director = dynamic_cast<Swig::Director *>(arg1); upcall = (director && (director->swig_get_self() == self)); try { { if(tryRubyException([&]() mutable { if (upcall) { Swig::DirectorPureVirtualException::raise("FIX::Log::onOutgoing"); } else { (arg1)->onOutgoing((std::string const &)*arg2); } return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } { if( std::string("std::string const &") == "std::string &" ) { rb_str_resize( argv[0], 0 ); rb_str_append( argv[0], rb_str_new2(arg2->c_str()) ); } } if (SWIG_IsNewObj(res2)) delete arg2; return vresult; fail: if (SWIG_IsNewObj(res2)) delete arg2; return Qnil; } |