Class: Quickfix::StringField
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__FieldBase->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__FieldBase->clientdata)->klass
- Quickfix::StringField
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
-
#<(*args) ⇒ Object
call-seq: <(rhs) -> bool.
-
#<=(*args) ⇒ Object
call-seq: <=(rhs) -> bool.
-
#==(*args) ⇒ Object
call-seq: ==(rhs) -> bool.
-
#>(*args) ⇒ Object
call-seq: >(rhs) -> bool.
-
#>=(*args) ⇒ Object
call-seq: >=(rhs) -> bool.
- #getValue(*args) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
- #setValue(*args) ⇒ Object
Constructor Details
#initialize(*args, self) ⇒ Object
10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 10221
SWIGINTERN VALUE _wrap_new_StringField(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;
{
int res = SWIG_AsVal_int(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_StringField__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_StringField__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "StringField.new",
" StringField.new(int field, std::string const &data)\n"
" StringField.new(int field)\n");
return Qnil;
}
|
Instance Method Details
#<(*args) ⇒ Object
call-seq:
<(rhs) -> bool
Lower than comparison operator.
10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 10342
SWIGINTERN VALUE
_wrap_StringField___lt__(int argc, VALUE *argv, VALUE self) {
FIX::StringField *arg1 = (FIX::StringField *) 0 ;
FIX::StringField *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__StringField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::StringField const *","operator <", 1, self ));
}
arg1 = reinterpret_cast< FIX::StringField * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__StringField, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::StringField const &","operator <", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::StringField const &","operator <", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::StringField * >(argp2);
result = (bool)((FIX::StringField const *)arg1)->operator <((FIX::StringField const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#<=(*args) ⇒ Object
call-seq:
<=(rhs) -> bool
Lower or equal comparison operator.
10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 10474
SWIGINTERN VALUE
_wrap_StringField___le__(int argc, VALUE *argv, VALUE self) {
FIX::StringField *arg1 = (FIX::StringField *) 0 ;
FIX::StringField *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__StringField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::StringField const *","operator <=", 1, self ));
}
arg1 = reinterpret_cast< FIX::StringField * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__StringField, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::StringField const &","operator <=", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::StringField const &","operator <=", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::StringField * >(argp2);
result = (bool)((FIX::StringField const *)arg1)->operator <=((FIX::StringField const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#==(*args) ⇒ Object
call-seq:
==(rhs) -> bool
Equality comparison operator.
10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 10430
SWIGINTERN VALUE
_wrap_StringField___eq__(int argc, VALUE *argv, VALUE self) {
FIX::StringField *arg1 = (FIX::StringField *) 0 ;
FIX::StringField *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__StringField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::StringField const *","operator ==", 1, self ));
}
arg1 = reinterpret_cast< FIX::StringField * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__StringField, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::StringField const &","operator ==", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::StringField const &","operator ==", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::StringField * >(argp2);
result = (bool)((FIX::StringField const *)arg1)->operator ==((FIX::StringField const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#>(*args) ⇒ Object
call-seq:
>(rhs) -> bool
Higher than comparison operator.
10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 10386
SWIGINTERN VALUE
_wrap_StringField___gt__(int argc, VALUE *argv, VALUE self) {
FIX::StringField *arg1 = (FIX::StringField *) 0 ;
FIX::StringField *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__StringField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::StringField const *","operator >", 1, self ));
}
arg1 = reinterpret_cast< FIX::StringField * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__StringField, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::StringField const &","operator >", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::StringField const &","operator >", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::StringField * >(argp2);
result = (bool)((FIX::StringField const *)arg1)->operator >((FIX::StringField const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#>=(*args) ⇒ Object
call-seq:
>=(rhs) -> bool
Higher or equal comparison operator.
10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 10518
SWIGINTERN VALUE
_wrap_StringField___ge__(int argc, VALUE *argv, VALUE self) {
FIX::StringField *arg1 = (FIX::StringField *) 0 ;
FIX::StringField *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__StringField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::StringField const *","operator >=", 1, self ));
}
arg1 = reinterpret_cast< FIX::StringField * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__StringField, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::StringField const &","operator >=", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::StringField const &","operator >=", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::StringField * >(argp2);
result = (bool)((FIX::StringField const *)arg1)->operator >=((FIX::StringField const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#getValue(*args) ⇒ Object
10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 10309
SWIGINTERN VALUE
_wrap_StringField_getValue(int argc, VALUE *argv, VALUE self) {
FIX::StringField *arg1 = (FIX::StringField *) 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__StringField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::StringField const *","getValue", 1, self ));
}
arg1 = reinterpret_cast< FIX::StringField * >(argp1);
result = (std::string *) &((FIX::StringField const *)arg1)->getValue();
vresult = SWIG_From_std_string(static_cast< std::string >(*result));
return vresult;
fail:
return Qnil;
}
|
#setValue(*args) ⇒ Object
10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 10265
SWIGINTERN VALUE
_wrap_StringField_setValue(int argc, VALUE *argv, VALUE self) {
FIX::StringField *arg1 = (FIX::StringField *) 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__StringField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::StringField *","setValue", 1, self ));
}
arg1 = reinterpret_cast< FIX::StringField * >(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 &","setValue", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","setValue", 2, argv[0]));
}
arg2 = ptr;
}
(arg1)->setValue((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;
}
|