Class: Quickfix::FileStoreFactory
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__MessageStoreFactory->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__MessageStoreFactory->clientdata)->klass
- Quickfix::FileStoreFactory
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
Constructor Details
#initialize(*args, self) ⇒ Object
107194 107195 107196 107197 107198 107199 107200 107201 107202 107203 107204 107205 107206 107207 107208 107209 107210 107211 107212 107213 107214 107215 107216 107217 107218 107219 107220 107221 107222 107223 107224 107225 107226 107227 107228 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 107194 SWIGINTERN VALUE _wrap_new_FileStoreFactory(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[1]; int ii; argc = nargs; if (argc > 1) 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_FileStoreFactory__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_FileStoreFactory__SWIG_1(nargs, args, self); } } fail: Ruby_Format_OverloadedError( argc, 1, "FileStoreFactory.new", " FileStoreFactory.new(FIX::SessionSettings const &settings)\n" " FileStoreFactory.new(std::string const &path)\n"); return Qnil; } |
Instance Method Details
#create(*args) ⇒ Object
107231 107232 107233 107234 107235 107236 107237 107238 107239 107240 107241 107242 107243 107244 107245 107246 107247 107248 107249 107250 107251 107252 107253 107254 107255 107256 107257 107258 107259 107260 107261 107262 107263 107264 107265 107266 107267 107268 107269 107270 107271 107272 107273 107274 107275 107276 107277 107278 107279 107280 107281 107282 107283 107284 107285 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 107231 SWIGINTERN VALUE _wrap_FileStoreFactory_create(int argc, VALUE *argv, VALUE self) { FIX::FileStoreFactory *arg1 = (FIX::FileStoreFactory *) 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__FileStoreFactory, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FileStoreFactory *","create", 1, self )); } arg1 = reinterpret_cast< FIX::FileStoreFactory * >(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
107288 107289 107290 107291 107292 107293 107294 107295 107296 107297 107298 107299 107300 107301 107302 107303 107304 107305 107306 107307 107308 107309 107310 107311 107312 107313 107314 107315 107316 107317 107318 107319 107320 107321 107322 107323 107324 107325 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 107288 SWIGINTERN VALUE _wrap_FileStoreFactory_destroy(int argc, VALUE *argv, VALUE self) { FIX::FileStoreFactory *arg1 = (FIX::FileStoreFactory *) 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__FileStoreFactory, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FileStoreFactory *","destroy", 1, self )); } arg1 = reinterpret_cast< FIX::FileStoreFactory * >(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; } |