Class: Quickfix::LogFactory
- Inherits:
-
Object
- Object
- Quickfix::LogFactory
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
102396 102397 102398 102399 102400 102401 102402 102403 102404 102405 102406 102407 102408 102409 102410 102411 102412 102413 102414 102415 102416 102417 102418 102419 102420 102421 102422 102423 102424 102425 102426 102427 102428 102429 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 102396 SWIGINTERN VALUE _wrap_new_LogFactory(int argc, VALUE *argv, VALUE self) { VALUE arg1 = (VALUE) 0 ; const char *classname SWIGUNUSED = "Quickfix::LogFactory"; FIX::LogFactory *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::LogFactory *)new SwigDirector_LogFactory(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
#create(*args, self) ⇒ Object
102284 102285 102286 102287 102288 102289 102290 102291 102292 102293 102294 102295 102296 102297 102298 102299 102300 102301 102302 102303 102304 102305 102306 102307 102308 102309 102310 102311 102312 102313 102314 102315 102316 102317 102318 102319 102320 102321 102322 102323 102324 102325 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 102284 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 = 0; 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 = 0; 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, SWIG_POINTER_NO_NULL); _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 &arg0)\n"); return Qnil; } |
#destroy(*args) ⇒ Object
102328 102329 102330 102331 102332 102333 102334 102335 102336 102337 102338 102339 102340 102341 102342 102343 102344 102345 102346 102347 102348 102349 102350 102351 102352 102353 102354 102355 102356 102357 102358 102359 102360 102361 102362 102363 102364 102365 102366 102367 102368 102369 102370 102371 102372 102373 102374 102375 102376 102377 102378 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 102328 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 ; Swig::Director *director = 0; bool upcall = false; 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); director = dynamic_cast<Swig::Director *>(arg1); upcall = (director && (director->swig_get_self() == self)); try { { if(tryRubyException([&]() mutable { if (upcall) { Swig::DirectorPureVirtualException::raise("FIX::LogFactory::destroy"); } else { (arg1)->destroy(arg2); } return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } } catch (Swig::DirectorException& e) { rb_exc_raise(e.getError()); SWIG_fail; } return Qnil; fail: return Qnil; } |