Class: Quickfix::UInt64Field
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__FieldBase->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__FieldBase->clientdata)->klass
- Quickfix::UInt64Field
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
Constructor Details
#initialize(*args, self) ⇒ Object
29564 29565 29566 29567 29568 29569 29570 29571 29572 29573 29574 29575 29576 29577 29578 29579 29580 29581 29582 29583 29584 29585 29586 29587 29588 29589 29590 29591 29592 29593 29594 29595 29596 29597 29598 29599 29600 29601 29602 29603 29604 29605 29606 29607 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 29564
SWIGINTERN VALUE _wrap_new_UInt64Field(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_UInt64Field__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_unsigned_SS_long_SS_long(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_UInt64Field__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "UInt64Field.new",
" UInt64Field.new(int field, uint64_t data)\n"
" UInt64Field.new(int field)\n");
return Qnil;
}
|
Instance Method Details
#getValue(*args) ⇒ Object
29650 29651 29652 29653 29654 29655 29656 29657 29658 29659 29660 29661 29662 29663 29664 29665 29666 29667 29668 29669 29670 29671 29672 29673 29674 29675 29676 29677 29678 29679 29680 29681 29682 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 29650
SWIGINTERN VALUE
_wrap_UInt64Field_getValue(int argc, VALUE *argv, VALUE self) {
FIX::UInt64Field *arg1 = (FIX::UInt64Field *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint64_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__UInt64Field, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::UInt64Field const *","getValue", 1, self ));
}
arg1 = reinterpret_cast< FIX::UInt64Field * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (uint64_t)((FIX::UInt64Field const *)arg1)->getValue();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
return vresult;
fail:
return Qnil;
}
|
#setValue(*args) ⇒ Object
29610 29611 29612 29613 29614 29615 29616 29617 29618 29619 29620 29621 29622 29623 29624 29625 29626 29627 29628 29629 29630 29631 29632 29633 29634 29635 29636 29637 29638 29639 29640 29641 29642 29643 29644 29645 29646 29647 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 29610
SWIGINTERN VALUE
_wrap_UInt64Field_setValue(int argc, VALUE *argv, VALUE self) {
FIX::UInt64Field *arg1 = (FIX::UInt64Field *) 0 ;
uint64_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned 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__UInt64Field, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::UInt64Field *","setValue", 1, self ));
}
arg1 = reinterpret_cast< FIX::UInt64Field * >(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","setValue", 2, argv[0] ));
}
arg2 = static_cast< uint64_t >(val2);
{
if(tryRubyException([&]() mutable
{
(arg1)->setValue(arg2);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
return Qnil;
fail:
return Qnil;
}
|