Class: Quickfix::NoTagValue
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__Exception->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__Exception->clientdata)->klass
- Quickfix::NoTagValue
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
Constructor Details
#initialize(*args, self) ⇒ Object
15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 15130 SWIGINTERN VALUE _wrap_new_NoTagValue(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 == 0) { return _wrap_new_NoTagValue__SWIG_2(nargs, args, self); } if (argc == 1) { int _v = 0; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_NoTagValue__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_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_NoTagValue__SWIG_0(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 2, "NoTagValue.new", " NoTagValue.new(int field, std::string const &what)\n" " NoTagValue.new(int field)\n" " NoTagValue.new()\n"); return Qnil; } |
Instance Method Details
#field(*args) ⇒ Object
15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 15207 SWIGINTERN VALUE _wrap_NoTagValue_field_get(int argc, VALUE *argv, VALUE self) { FIX::NoTagValue *arg1 = (FIX::NoTagValue *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int 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__NoTagValue, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::NoTagValue *","field", 1, self )); } arg1 = reinterpret_cast< FIX::NoTagValue * >(argp1); result = (int) ((arg1)->field); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#field=(*args) ⇒ Object
15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 15178 SWIGINTERN VALUE _wrap_NoTagValue_field_set(int argc, VALUE *argv, VALUE self) { FIX::NoTagValue *arg1 = (FIX::NoTagValue *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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__NoTagValue, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::NoTagValue *","field", 1, self )); } arg1 = reinterpret_cast< FIX::NoTagValue * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","field", 2, argv[0] )); } arg2 = static_cast< int >(val2); if (arg1) (arg1)->field = arg2; return Qnil; fail: return Qnil; } |