Class: Quickfix::FieldBase
- Inherits:
-
Object
- Object
- Quickfix::FieldBase
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
-
#<(*args) ⇒ Object
call-seq: <(field) -> bool.
- #getField(*args) ⇒ Object
- #getFixString(*args) ⇒ Object
- #getLength(*args) ⇒ Object
- #getString(*args) ⇒ Object
- #getTag(*args) ⇒ Object
- #getTotal(*args) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
- #setField(*args) ⇒ Object
- #setString(*args) ⇒ Object
- #setTag(*args) ⇒ Object
- #swap(*args) ⇒ Object
- #to_s(*args) ⇒ Object
Constructor Details
#initialize(*args, self) ⇒ Object
9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9660
SWIGINTERN VALUE _wrap_new_FieldBase(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;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__FieldBase, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FieldBase__SWIG_1(nargs, args, self);
}
}
if (argc == 2) {
int _v;
{
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_FieldBase__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "FieldBase.new",
" FieldBase.new(int tag, std::string const &string)\n"
" FieldBase.new(FIX::FieldBase const &rhs)\n");
return Qnil;
}
|
Instance Method Details
#<(*args) ⇒ Object
call-seq:
<(field) -> bool
Lower than comparison operator.
9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9990
SWIGINTERN VALUE
_wrap_FieldBase___lt__(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 0 ;
FIX::FieldBase *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
bool result;
VALUE vresult = Qnil;
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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase const *","operator <", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__FieldBase, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::FieldBase const &","operator <", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::FieldBase const &","operator <", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::FieldBase * >(argp2);
result = (bool)((FIX::FieldBase const *)arg1)->operator <((FIX::FieldBase const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#getField(*args) ⇒ Object
9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9861
SWIGINTERN VALUE
_wrap_FieldBase_getField(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase const *","getField", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
result = (int)((FIX::FieldBase const *)arg1)->getField();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#getFixString(*args) ⇒ Object
9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9909
SWIGINTERN VALUE
_wrap_FieldBase_getFixString(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::string *result = 0 ;
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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase const *","getFixString", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
result = (std::string *) &((FIX::FieldBase const *)arg1)->getFixString();
vresult = SWIG_From_std_string(static_cast< std::string >(*result));
return vresult;
fail:
return Qnil;
}
|
#getLength(*args) ⇒ Object
9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9933
SWIGINTERN VALUE
_wrap_FieldBase_getLength(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
size_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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase const *","getLength", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
result = ((FIX::FieldBase const *)arg1)->getLength();
vresult = SWIG_From_size_t(static_cast< size_t >(result));
return vresult;
fail:
return Qnil;
}
|
#getString(*args) ⇒ Object
9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9885
SWIGINTERN VALUE
_wrap_FieldBase_getString(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::string *result = 0 ;
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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase const *","getString", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
result = (std::string *) &((FIX::FieldBase const *)arg1)->getString();
vresult = SWIG_From_std_string(static_cast< std::string >(*result));
return vresult;
fail:
return Qnil;
}
|
#getTag(*args) ⇒ Object
9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9837
SWIGINTERN VALUE
_wrap_FieldBase_getTag(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase const *","getTag", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
result = (int)((FIX::FieldBase const *)arg1)->getTag();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#getTotal(*args) ⇒ Object
9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9957
SWIGINTERN VALUE
_wrap_FieldBase_getTotal(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase const *","getTotal", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
result = (int)((FIX::FieldBase const *)arg1)->getTotal();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#setField(*args) ⇒ Object
9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9764
SWIGINTERN VALUE
_wrap_FieldBase_setField(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase *","setField", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setField", 2, argv[0] ));
}
arg2 = static_cast< int >(val2);
(arg1)->setField(arg2);
return Qnil;
fail:
return Qnil;
}
|
#setString(*args) ⇒ Object
9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9793
SWIGINTERN VALUE
_wrap_FieldBase_setString(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
VALUE vresult = Qnil;
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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase *","setString", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","setString", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","setString", 2, argv[0]));
}
arg2 = ptr;
}
(arg1)->setString((std::string const &)*arg2);
{
if( std::string("std::string const &") == "std::string &" )
{
rb_str_resize( argv[0], 0 );
rb_str_append( argv[0], rb_str_new2(arg2->c_str()) );
}
}
if (SWIG_IsNewObj(res2)) delete arg2;
return vresult;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
}
|
#setTag(*args) ⇒ Object
9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9735
SWIGINTERN VALUE
_wrap_FieldBase_setTag(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase *","setTag", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setTag", 2, argv[0] ));
}
arg2 = static_cast< int >(val2);
(arg1)->setTag(arg2);
return Qnil;
fail:
return Qnil;
}
|
#swap(*args) ⇒ Object
9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 9703
SWIGINTERN VALUE
_wrap_FieldBase_swap(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 0 ;
FIX::FieldBase *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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase *","swap", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__FieldBase, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::FieldBase &","swap", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::FieldBase &","swap", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::FieldBase * >(argp2);
(arg1)->swap(*arg2);
return Qnil;
fail:
return Qnil;
}
|
#to_s(*args) ⇒ Object
10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 10025
SWIGINTERN VALUE
_wrap_FieldBase___str__(int argc, VALUE *argv, VALUE self) {
FIX::FieldBase *arg1 = (FIX::FieldBase *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
std::string 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__FieldBase, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FieldBase *","__str__", 1, self ));
}
arg1 = reinterpret_cast< FIX::FieldBase * >(argp1);
result = FIX_FieldBase___str__(arg1);
vresult = SWIG_From_std_string(static_cast< std::string >(result));
return vresult;
fail:
return Qnil;
}
|