Class: Quickfix::FileLogFactory
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__LogFactory->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__LogFactory->clientdata)->klass
- Quickfix::FileLogFactory
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #create(*args, self) ⇒ Object
- #destroy(*args) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
Constructor Details
#initialize(*args, self) ⇒ Object
104214 104215 104216 104217 104218 104219 104220 104221 104222 104223 104224 104225 104226 104227 104228 104229 104230 104231 104232 104233 104234 104235 104236 104237 104238 104239 104240 104241 104242 104243 104244 104245 104246 104247 104248 104249 104250 104251 104252 104253 104254 104255 104256 104257 104258 104259 104260 104261 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 104214 SWIGINTERN VALUE _wrap_new_FileLogFactory(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[2]; int ii; argc = nargs; if (argc > 2) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 1) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__SessionSettings, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FileLogFactory__SWIG_0(nargs, args, self); } } if (argc == 1) { int _v = 0; int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FileLogFactory__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v = 0; 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_FileLogFactory__SWIG_2(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "FileLogFactory.new", " FileLogFactory.new(FIX::SessionSettings const &settings)\n" " FileLogFactory.new(std::string const &path)\n" " FileLogFactory.new(std::string const &path, std::string const &backupPath)\n"); return Qnil; } |
Instance Method Details
#create(*args, self) ⇒ Object
104357 104358 104359 104360 104361 104362 104363 104364 104365 104366 104367 104368 104369 104370 104371 104372 104373 104374 104375 104376 104377 104378 104379 104380 104381 104382 104383 104384 104385 104386 104387 104388 104389 104390 104391 104392 104393 104394 104395 104396 104397 104398 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 104357 SWIGINTERN VALUE _wrap_FileLogFactory_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__FileLogFactory, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_FileLogFactory_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__FileLogFactory, 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_FileLogFactory_create__SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "FileLogFactory.create", " FIX::Log FileLogFactory.create()\n" " FIX::Log * FileLogFactory.create(FIX::SessionID const &)\n"); return Qnil; } |
#destroy(*args) ⇒ Object
104401 104402 104403 104404 104405 104406 104407 104408 104409 104410 104411 104412 104413 104414 104415 104416 104417 104418 104419 104420 104421 104422 104423 104424 104425 104426 104427 104428 104429 104430 104431 104432 104433 104434 104435 104436 104437 104438 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 104401 SWIGINTERN VALUE _wrap_FileLogFactory_destroy(int argc, VALUE *argv, VALUE self) { FIX::FileLogFactory *arg1 = (FIX::FileLogFactory *) 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__FileLogFactory, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FileLogFactory *","destroy", 1, self )); } arg1 = reinterpret_cast< FIX::FileLogFactory * >(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); { if(tryRubyException([&]() mutable { (arg1)->destroy(arg2); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } return Qnil; fail: return Qnil; } |