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
16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 16804
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;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_message_order, 0);
_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
16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 16836
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 ;
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);
(arg1)->addGroup((FIX::Group const &)*arg2);
return Qnil;
fail:
return Qnil;
}
|
#getGroup(*args) ⇒ Object
16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 16908
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);
try {
result = (Group *) &((FIX::Trailer const *)arg1)->getGroup(arg2,*arg3);
}
catch(FIX::FieldNotFound &_e) {
rb_exc_raise(SWIG_Ruby_ExceptionType(SWIGTYPE_p_FIX__FieldNotFound, SWIG_NewPointerObj((new FIX::FieldNotFound(static_cast< const FIX::FieldNotFound& >(_e))),SWIGTYPE_p_FIX__FieldNotFound,SWIG_POINTER_OWN))); SWIG_fail;
}
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Group, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#hasGroup(*args, self) ⇒ Object
17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 17162
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;
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, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Trailer_hasGroup__SWIG_0(nargs, args, self);
}
}
}
if (argc == 3) {
int _v;
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, 0);
_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
17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 17029
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;
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, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_Trailer_removeGroup__SWIG_1(nargs, args, self);
}
}
}
if (argc == 3) {
int _v;
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, 0);
_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
16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 16868
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 ;
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);
(arg1)->replaceGroup(arg2,(FIX::Group const &)*arg3);
return Qnil;
fail:
return Qnil;
}
|