Class: Quickfix::FileLog
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__Log->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__Log->clientdata)->klass
- Quickfix::FileLog
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #backup(*args) ⇒ Object
- #clear(*args) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
- #onEvent(*args) ⇒ Object
- #onIncoming(*args) ⇒ Object
- #onOutgoing(*args) ⇒ Object
Constructor Details
#initialize(*args, self) ⇒ Object
212610 212611 212612 212613 212614 212615 212616 212617 212618 212619 212620 212621 212622 212623 212624 212625 212626 212627 212628 212629 212630 212631 212632 212633 212634 212635 212636 212637 212638 212639 212640 212641 212642 212643 212644 212645 212646 212647 212648 212649 212650 212651 212652 212653 212654 212655 212656 212657 212658 212659 212660 212661 212662 212663 212664 212665 212666 212667 212668 212669 212670 212671 212672 212673 212674 212675 212676 212677 212678 212679 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 212610
SWIGINTERN VALUE _wrap_new_FileLog(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[3];
int ii;
argc = nargs;
if (argc > 3) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 1) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FileLog__SWIG_0(nargs, args, self);
}
}
if (argc == 2) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__SessionID, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FileLog__SWIG_2(nargs, args, self);
}
}
}
if (argc == 2) {
int _v;
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) {
return _wrap_new_FileLog__SWIG_1(nargs, args, self);
}
}
}
if (argc == 3) {
int _v;
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) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FIX__SessionID, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FileLog__SWIG_3(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "FileLog.new",
" FileLog.new(std::string const &path)\n"
" FileLog.new(std::string const &path, std::string const &backupPath)\n"
" FileLog.new(std::string const &path, FIX::SessionID const &sessionID)\n"
" FileLog.new(std::string const &path, std::string const &backupPath, FIX::SessionID const &sessionID)\n");
return Qnil;
}
|
Instance Method Details
#backup(*args) ⇒ Object
212709 212710 212711 212712 212713 212714 212715 212716 212717 212718 212719 212720 212721 212722 212723 212724 212725 212726 212727 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 212709
SWIGINTERN VALUE
_wrap_FileLog_backup(int argc, VALUE *argv, VALUE self) {
FIX::FileLog *arg1 = (FIX::FileLog *) 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__FileLog, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FileLog *","backup", 1, self ));
}
arg1 = reinterpret_cast< FIX::FileLog * >(argp1);
(arg1)->backup();
return Qnil;
fail:
return Qnil;
}
|
#clear(*args) ⇒ Object
212688 212689 212690 212691 212692 212693 212694 212695 212696 212697 212698 212699 212700 212701 212702 212703 212704 212705 212706 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 212688
SWIGINTERN VALUE
_wrap_FileLog_clear(int argc, VALUE *argv, VALUE self) {
FIX::FileLog *arg1 = (FIX::FileLog *) 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__FileLog, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FileLog *","clear", 1, self ));
}
arg1 = reinterpret_cast< FIX::FileLog * >(argp1);
(arg1)->clear();
return Qnil;
fail:
return Qnil;
}
|
#onEvent(*args) ⇒ Object
212818 212819 212820 212821 212822 212823 212824 212825 212826 212827 212828 212829 212830 212831 212832 212833 212834 212835 212836 212837 212838 212839 212840 212841 212842 212843 212844 212845 212846 212847 212848 212849 212850 212851 212852 212853 212854 212855 212856 212857 212858 212859 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 212818
SWIGINTERN VALUE
_wrap_FileLog_onEvent(int argc, VALUE *argv, VALUE self) {
FIX::FileLog *arg1 = (FIX::FileLog *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
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__FileLog, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FileLog *","onEvent", 1, self ));
}
arg1 = reinterpret_cast< FIX::FileLog * >(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;
}
(arg1)->onEvent((std::string const &)*arg2);
{
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
212730 212731 212732 212733 212734 212735 212736 212737 212738 212739 212740 212741 212742 212743 212744 212745 212746 212747 212748 212749 212750 212751 212752 212753 212754 212755 212756 212757 212758 212759 212760 212761 212762 212763 212764 212765 212766 212767 212768 212769 212770 212771 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 212730
SWIGINTERN VALUE
_wrap_FileLog_onIncoming(int argc, VALUE *argv, VALUE self) {
FIX::FileLog *arg1 = (FIX::FileLog *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
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__FileLog, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FileLog *","onIncoming", 1, self ));
}
arg1 = reinterpret_cast< FIX::FileLog * >(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;
}
(arg1)->onIncoming((std::string const &)*arg2);
{
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
212774 212775 212776 212777 212778 212779 212780 212781 212782 212783 212784 212785 212786 212787 212788 212789 212790 212791 212792 212793 212794 212795 212796 212797 212798 212799 212800 212801 212802 212803 212804 212805 212806 212807 212808 212809 212810 212811 212812 212813 212814 212815 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 212774
SWIGINTERN VALUE
_wrap_FileLog_onOutgoing(int argc, VALUE *argv, VALUE self) {
FIX::FileLog *arg1 = (FIX::FileLog *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
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__FileLog, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FileLog *","onOutgoing", 1, self ));
}
arg1 = reinterpret_cast< FIX::FileLog * >(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;
}
(arg1)->onOutgoing((std::string const &)*arg2);
{
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;
}
|