Class: Quickfix::LogFactory
- Inherits:
-
Object
- Object
- Quickfix::LogFactory
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
Instance Method Details
#create(*args, self) ⇒ Object
210947 210948 210949 210950 210951 210952 210953 210954 210955 210956 210957 210958 210959 210960 210961 210962 210963 210964 210965 210966 210967 210968 210969 210970 210971 210972 210973 210974 210975 210976 210977 210978 210979 210980 210981 210982 210983 210984 210985 210986 210987 210988 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 210947
SWIGINTERN VALUE _wrap_LogFactory_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;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__LogFactory, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_LogFactory_create__SWIG_0(nargs, args, self);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__LogFactory, 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_LogFactory_create__SWIG_1(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "LogFactory.create",
" FIX::Log LogFactory.create()\n"
" FIX::Log * LogFactory.create(FIX::SessionID const &)\n");
return Qnil;
}
|
#destroy(*args) ⇒ Object
210991 210992 210993 210994 210995 210996 210997 210998 210999 211000 211001 211002 211003 211004 211005 211006 211007 211008 211009 211010 211011 211012 211013 211014 211015 211016 211017 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 210991
SWIGINTERN VALUE
_wrap_LogFactory_destroy(int argc, VALUE *argv, VALUE self) {
FIX::LogFactory *arg1 = (FIX::LogFactory *) 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__LogFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::LogFactory *","destroy", 1, self ));
}
arg1 = reinterpret_cast< FIX::LogFactory * >(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);
(arg1)->destroy(arg2);
return Qnil;
fail:
return Qnil;
}
|