Class: Quickfix::Trailer
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__FieldMap->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__FieldMap->clientdata)->klass
- Quickfix::Trailer
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #addGroup(*args) ⇒ Object
- #getGroup(*args) ⇒ Object
- #hasGroup(*args, self) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
- #removeGroup(*args, self) ⇒ Object
- #replaceGroup(*args) ⇒ Object
Constructor Details
#initialize(*args, self) ⇒ Object
34996 34997 34998 34999 35000 35001 35002 35003 35004 35005 35006 35007 35008 35009 35010 35011 35012 35013 35014 35015 35016 35017 35018 35019 35020 35021 35022 35023 35024 35025 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 34996 SWIGINTERN VALUE _wrap_new_Trailer(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 == 0) { return _wrap_new_Trailer__SWIG_0(nargs, args, self); } if (argc == 1) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, , SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_Trailer__SWIG_1(nargs, args, self); } } fail: Ruby_Format_OverloadedError( argc, 1, "Trailer.new", " Trailer.new()\n" " Trailer.new(message_order const &order)\n"); return Qnil; } |
Instance Method Details
#addGroup(*args) ⇒ Object
35028 35029 35030 35031 35032 35033 35034 35035 35036 35037 35038 35039 35040 35041 35042 35043 35044 35045 35046 35047 35048 35049 35050 35051 35052 35053 35054 35055 35056 35057 35058 35059 35060 35061 35062 35063 35064 35065 35066 35067 35068 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 35028 SWIGINTERN VALUE _wrap_Trailer_addGroup(int argc, VALUE *argv, VALUE self) { FIX::Trailer *arg1 = (FIX::Trailer *) 0 ; FIX::Group *arg2 = 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__Trailer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Trailer *","addGroup", 1, self )); } arg1 = reinterpret_cast< FIX::Trailer * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__Group, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::Group const &","addGroup", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::Group const &","addGroup", 2, argv[0])); } arg2 = reinterpret_cast< FIX::Group * >(argp2); { if(tryRubyException([&]() mutable { (arg1)->addGroup((FIX::Group const &)*arg2); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } return Qnil; fail: return Qnil; } |
#getGroup(*args) ⇒ Object
35122 35123 35124 35125 35126 35127 35128 35129 35130 35131 35132 35133 35134 35135 35136 35137 35138 35139 35140 35141 35142 35143 35144 35145 35146 35147 35148 35149 35150 35151 35152 35153 35154 35155 35156 35157 35158 35159 35160 35161 35162 35163 35164 35165 35166 35167 35168 35169 35170 35171 35172 35173 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 35122 SWIGINTERN VALUE _wrap_Trailer_getGroup(int argc, VALUE *argv, VALUE self) { FIX::Trailer *arg1 = (FIX::Trailer *) 0 ; unsigned int arg2 ; FIX::Group *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; Group *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__Trailer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Trailer const *","getGroup", 1, self )); } arg1 = reinterpret_cast< FIX::Trailer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","getGroup", 2, argv[0] )); } arg2 = static_cast< unsigned int >(val2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FIX__Group, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FIX::Group &","getGroup", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::Group &","getGroup", 3, argv[1])); } arg3 = reinterpret_cast< FIX::Group * >(argp3); { if(tryRubyException([&]() mutable { result = (Group *) &((FIX::Trailer const *)arg1)->getGroup(arg2,*arg3); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Group, 0 | 0 ); return vresult; fail: return Qnil; } |
#hasGroup(*args, self) ⇒ Object
35425 35426 35427 35428 35429 35430 35431 35432 35433 35434 35435 35436 35437 35438 35439 35440 35441 35442 35443 35444 35445 35446 35447 35448 35449 35450 35451 35452 35453 35454 35455 35456 35457 35458 35459 35460 35461 35462 35463 35464 35465 35466 35467 35468 35469 35470 35471 35472 35473 35474 35475 35476 35477 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 35425 SWIGINTERN VALUE _wrap_Trailer_hasGroup(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Trailer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__Group, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_Trailer_hasGroup__SWIG_0(nargs, args, self); } } } if (argc == 3) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Trailer, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FIX__Group, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_Trailer_hasGroup__SWIG_1(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "Trailer.hasGroup", " bool Trailer.hasGroup(FIX::Group const &group)\n" " bool Trailer.hasGroup(unsigned int num, FIX::Group const &group)\n"); return Qnil; } |
#removeGroup(*args, self) ⇒ Object
35270 35271 35272 35273 35274 35275 35276 35277 35278 35279 35280 35281 35282 35283 35284 35285 35286 35287 35288 35289 35290 35291 35292 35293 35294 35295 35296 35297 35298 35299 35300 35301 35302 35303 35304 35305 35306 35307 35308 35309 35310 35311 35312 35313 35314 35315 35316 35317 35318 35319 35320 35321 35322 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 35270 SWIGINTERN VALUE _wrap_Trailer_removeGroup(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 4) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Trailer, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__Group, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_Trailer_removeGroup__SWIG_1(nargs, args, self); } } } if (argc == 3) { int _v = 0; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Trailer, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FIX__Group, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_Trailer_removeGroup__SWIG_0(nargs, args, self); } } } } fail: Ruby_Format_OverloadedError( argc, 4, "Trailer.removeGroup", " void Trailer.removeGroup(unsigned int num, FIX::Group const &group)\n" " void Trailer.removeGroup(FIX::Group const &group)\n"); return Qnil; } |
#replaceGroup(*args) ⇒ Object
35071 35072 35073 35074 35075 35076 35077 35078 35079 35080 35081 35082 35083 35084 35085 35086 35087 35088 35089 35090 35091 35092 35093 35094 35095 35096 35097 35098 35099 35100 35101 35102 35103 35104 35105 35106 35107 35108 35109 35110 35111 35112 35113 35114 35115 35116 35117 35118 35119 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 35071 SWIGINTERN VALUE _wrap_Trailer_replaceGroup(int argc, VALUE *argv, VALUE self) { FIX::Trailer *arg1 = (FIX::Trailer *) 0 ; unsigned int arg2 ; FIX::Group *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; 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__Trailer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::Trailer *","replaceGroup", 1, self )); } arg1 = reinterpret_cast< FIX::Trailer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","replaceGroup", 2, argv[0] )); } arg2 = static_cast< unsigned int >(val2); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FIX__Group, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FIX::Group const &","replaceGroup", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::Group const &","replaceGroup", 3, argv[1])); } arg3 = reinterpret_cast< FIX::Group * >(argp3); { if(tryRubyException([&]() mutable { (arg1)->replaceGroup(arg2,(FIX::Group const &)*arg3); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } return Qnil; fail: return Qnil; } |