Class: Quickfix::MySQLStoreFactory
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__MessageStoreFactory->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__MessageStoreFactory->clientdata)->klass
- Quickfix::MySQLStoreFactory
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Class Method Summary collapse
- .DEFAULT_DATABASE ⇒ Object
- .DEFAULT_HOST ⇒ Object
- .DEFAULT_PASSWORD ⇒ Object
- .DEFAULT_PORT ⇒ Object
- .DEFAULT_USER ⇒ Object
Instance Method Summary collapse
Constructor Details
#initialize(*args, self) ⇒ Object
116240 116241 116242 116243 116244 116245 116246 116247 116248 116249 116250 116251 116252 116253 116254 116255 116256 116257 116258 116259 116260 116261 116262 116263 116264 116265 116266 116267 116268 116269 116270 116271 116272 116273 116274 116275 116276 116277 116278 116279 116280 116281 116282 116283 116284 116285 116286 116287 116288 116289 116290 116291 116292 116293 116294 116295 116296 116297 116298 116299 116300 116301 116302 116303 116304 116305 116306 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116240 SWIGINTERN VALUE _wrap_new_MySQLStoreFactory(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[5]; int ii; argc = nargs; if (argc > 5) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_MySQLStoreFactory__SWIG_3(nargs, args, self); } if (argc == 1) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Dictionary, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_MySQLStoreFactory__SWIG_1(nargs, args, self); } } 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_MySQLStoreFactory__SWIG_0(nargs, args, self); } } if (argc == 5) { 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) { int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_short(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_MySQLStoreFactory__SWIG_2(nargs, args, self); } } } } } } fail: Ruby_Format_OverloadedError( argc, 5, "MySQLStoreFactory.new", " MySQLStoreFactory.new(FIX::SessionSettings const &settings)\n" " MySQLStoreFactory.new(FIX::Dictionary const &dictionary)\n" " MySQLStoreFactory.new(std::string const &database, std::string const &user, std::string const &password, std::string const &host, short port)\n" " MySQLStoreFactory.new()\n"); return Qnil; } |
Class Method Details
.DEFAULT_DATABASE ⇒ Object
115954 115955 115956 115957 115958 115959 115960 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115954 SWIGINTERN VALUE _wrap_MySQLStoreFactory_DEFAULT_DATABASE_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLStoreFactory::DEFAULT_DATABASE)); return _val; } |
.DEFAULT_HOST ⇒ Object
115981 115982 115983 115984 115985 115986 115987 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115981 SWIGINTERN VALUE _wrap_MySQLStoreFactory_DEFAULT_HOST_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLStoreFactory::DEFAULT_HOST)); return _val; } |
.DEFAULT_PASSWORD ⇒ Object
115972 115973 115974 115975 115976 115977 115978 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115972 SWIGINTERN VALUE _wrap_MySQLStoreFactory_DEFAULT_PASSWORD_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLStoreFactory::DEFAULT_PASSWORD)); return _val; } |
.DEFAULT_PORT ⇒ Object
115990 115991 115992 115993 115994 115995 115996 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115990 SWIGINTERN VALUE _wrap_MySQLStoreFactory_DEFAULT_PORT_get(VALUE self) { VALUE _val; _val = SWIG_From_short(static_cast< short >(FIX::MySQLStoreFactory::DEFAULT_PORT)); return _val; } |
.DEFAULT_USER ⇒ Object
115963 115964 115965 115966 115967 115968 115969 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115963 SWIGINTERN VALUE _wrap_MySQLStoreFactory_DEFAULT_USER_get(VALUE self) { VALUE _val; _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLStoreFactory::DEFAULT_USER)); return _val; } |
Instance Method Details
#create(*args) ⇒ Object
116309 116310 116311 116312 116313 116314 116315 116316 116317 116318 116319 116320 116321 116322 116323 116324 116325 116326 116327 116328 116329 116330 116331 116332 116333 116334 116335 116336 116337 116338 116339 116340 116341 116342 116343 116344 116345 116346 116347 116348 116349 116350 116351 116352 116353 116354 116355 116356 116357 116358 116359 116360 116361 116362 116363 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116309 SWIGINTERN VALUE _wrap_MySQLStoreFactory_create(int argc, VALUE *argv, VALUE self) { FIX::MySQLStoreFactory *arg1 = (FIX::MySQLStoreFactory *) 0 ; FIX::UtcTimeStamp *arg2 = 0 ; FIX::SessionID *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; FIX::MessageStore *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FIX__MySQLStoreFactory, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLStoreFactory *","create", 1, self )); } arg1 = reinterpret_cast< FIX::MySQLStoreFactory * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__UtcTimeStamp, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::UtcTimeStamp const &","create", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::UtcTimeStamp const &","create", 2, argv[0])); } arg2 = reinterpret_cast< FIX::UtcTimeStamp * >(argp2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FIX__SessionID, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FIX::SessionID const &","create", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::SessionID const &","create", 3, argv[1])); } arg3 = reinterpret_cast< FIX::SessionID * >(argp3); { if(tryRubyException([&]() mutable { result = (FIX::MessageStore *)(arg1)->create((FIX::UtcTimeStamp const &)*arg2,(FIX::SessionID const &)*arg3); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__MessageStore, 0 | 0 ); return vresult; fail: return Qnil; } |
#destroy(*args) ⇒ Object
116366 116367 116368 116369 116370 116371 116372 116373 116374 116375 116376 116377 116378 116379 116380 116381 116382 116383 116384 116385 116386 116387 116388 116389 116390 116391 116392 116393 116394 116395 116396 116397 116398 116399 116400 116401 116402 116403 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 116366 SWIGINTERN VALUE _wrap_MySQLStoreFactory_destroy(int argc, VALUE *argv, VALUE self) { FIX::MySQLStoreFactory *arg1 = (FIX::MySQLStoreFactory *) 0 ; FIX::MessageStore *arg2 = (FIX::MessageStore *) 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__MySQLStoreFactory, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLStoreFactory *","destroy", 1, self )); } arg1 = reinterpret_cast< FIX::MySQLStoreFactory * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FIX__MessageStore, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::MessageStore *","destroy", 2, argv[0] )); } arg2 = reinterpret_cast< FIX::MessageStore * >(argp2); { if(tryRubyException([&]() mutable { (arg1)->destroy(arg2); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } return Qnil; fail: return Qnil; } |