Class: Quickfix::Int64Field
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__FieldBase->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__FieldBase->clientdata)->klass
- Quickfix::Int64Field
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
Constructor Details
#initialize(*args, self) ⇒ Object
29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 29342 SWIGINTERN VALUE _wrap_new_Int64Field(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; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_Int64Field__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v = 0; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_long_SS_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_Int64Field__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "Int64Field.new", " Int64Field.new(int field, int64_t data)\n" " Int64Field.new(int field)\n"); return Qnil; } |
Instance Method Details
#getValue(*args) ⇒ Object
29428 29429 29430 29431 29432 29433 29434 29435 29436 29437 29438 29439 29440 29441 29442 29443 29444 29445 29446 29447 29448 29449 29450 29451 29452 29453 29454 29455 29456 29457 29458 29459 29460 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 29428 SWIGINTERN VALUE _wrap_Int64Field_getValue(int argc, VALUE *argv, VALUE self) { FIX::Int64Field *arg1 = (FIX::Int64Field *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FIX__Int64Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Int64Field const *","getValue", 1, self )); } arg1 = reinterpret_cast< FIX::Int64Field * >(argp1); { if(tryRubyException([&]() mutable { result = (int64_t)((FIX::Int64Field const *)arg1)->getValue(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_long_SS_long(static_cast< long long >(result)); return vresult; fail: return Qnil; } |
#setValue(*args) ⇒ Object
29388 29389 29390 29391 29392 29393 29394 29395 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415 29416 29417 29418 29419 29420 29421 29422 29423 29424 29425 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 29388 SWIGINTERN VALUE _wrap_Int64Field_setValue(int argc, VALUE *argv, VALUE self) { FIX::Int64Field *arg1 = (FIX::Int64Field *) 0 ; int64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long long val2 ; int ecode2 = 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__Int64Field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Int64Field *","setValue", 1, self )); } arg1 = reinterpret_cast< FIX::Int64Field * >(argp1); ecode2 = SWIG_AsVal_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int64_t","setValue", 2, argv[0] )); } arg2 = static_cast< int64_t >(val2); { if(tryRubyException([&]() mutable { (arg1)->setValue(arg2); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } return Qnil; fail: return Qnil; } |