Class: Quickfix::SessionSettings
- Inherits:
-
Object
- Object
- Quickfix::SessionSettings
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #get(*args, self) ⇒ Object
- #getSessions(*args) ⇒ Object
- #has(*args) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
- #set(*args, self) ⇒ Object
-
#size(*args) ⇒ Object
call-seq: size -> size_t.
Constructor Details
#initialize(*args, self) ⇒ Object
207151 207152 207153 207154 207155 207156 207157 207158 207159 207160 207161 207162 207163 207164 207165 207166 207167 207168 207169 207170 207171 207172 207173 207174 207175 207176 207177 207178 207179 207180 207181 207182 207183 207184 207185 207186 207187 207188 207189 207190 207191 207192 207193 207194 207195 207196 207197 207198 207199 207200 207201 207202 207203 207204 207205 207206 207207 207208 207209 207210 207211 207212 207213 207214 207215 207216 207217 207218 207219 207220 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 207151
SWIGINTERN VALUE _wrap_new_SessionSettings(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_SessionSettings__SWIG_0(nargs, args, self);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__istream, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SessionSettings__SWIG_2(nargs, args, self);
}
}
if (argc == 1) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SessionSettings__SWIG_4(nargs, args, self);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__istream, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_bool(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_SessionSettings__SWIG_1(nargs, args, self);
}
}
}
if (argc == 2) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_bool(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_SessionSettings__SWIG_3(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "SessionSettings.new",
" SessionSettings.new()\n"
" SessionSettings.new(std::istream &stream, bool resolveEnvVars)\n"
" SessionSettings.new(std::istream &stream)\n"
" SessionSettings.new(std::string const &file, bool resolveEnvVars)\n"
" SessionSettings.new(std::string const &file)\n");
return Qnil;
}
|
Instance Method Details
#get(*args, self) ⇒ Object
207375 207376 207377 207378 207379 207380 207381 207382 207383 207384 207385 207386 207387 207388 207389 207390 207391 207392 207393 207394 207395 207396 207397 207398 207399 207400 207401 207402 207403 207404 207405 207406 207407 207408 207409 207410 207411 207412 207413 207414 207415 207416 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 207375
SWIGINTERN VALUE _wrap_SessionSettings_get(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[3];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 3) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__SessionSettings, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SessionSettings_get__SWIG_1(nargs, args, self);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__SessionSettings, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__SessionID, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SessionSettings_get__SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "SessionSettings.get",
" FIX::Dictionary const SessionSettings.get(FIX::SessionID const &)\n"
" FIX::Dictionary const & SessionSettings.get()\n");
return Qnil;
}
|
#getSessions(*args) ⇒ Object
207544 207545 207546 207547 207548 207549 207550 207551 207552 207553 207554 207555 207556 207557 207558 207559 207560 207561 207562 207563 207564 207565 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 207544
SWIGINTERN VALUE
_wrap_SessionSettings_getSessions(int argc, VALUE *argv, VALUE self) {
FIX::SessionSettings *arg1 = (FIX::SessionSettings *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< std::set< FIX::SessionID > > 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__SessionSettings, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionSettings const *","getSessions", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionSettings * >(argp1);
result = ((FIX::SessionSettings const *)arg1)->getSessions();
vresult = SWIG_NewPointerObj((new std::set< FIX::SessionID >(static_cast< const std::set< FIX::SessionID >& >(result))), SWIGTYPE_p_std__setT_FIX__SessionID_t, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
|
#has(*args) ⇒ Object
207223 207224 207225 207226 207227 207228 207229 207230 207231 207232 207233 207234 207235 207236 207237 207238 207239 207240 207241 207242 207243 207244 207245 207246 207247 207248 207249 207250 207251 207252 207253 207254 207255 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 207223
SWIGINTERN VALUE
_wrap_SessionSettings_has(int argc, VALUE *argv, VALUE self) {
FIX::SessionSettings *arg1 = (FIX::SessionSettings *) 0 ;
FIX::SessionID *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__SessionSettings, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionSettings const *","has", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionSettings * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__SessionID, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::SessionID const &","has", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::SessionID const &","has", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::SessionID * >(argp2);
result = (bool)((FIX::SessionSettings const *)arg1)->has((FIX::SessionID const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#set(*args, self) ⇒ Object
207457 207458 207459 207460 207461 207462 207463 207464 207465 207466 207467 207468 207469 207470 207471 207472 207473 207474 207475 207476 207477 207478 207479 207480 207481 207482 207483 207484 207485 207486 207487 207488 207489 207490 207491 207492 207493 207494 207495 207496 207497 207498 207499 207500 207501 207502 207503 207504 207505 207506 207507 207508 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 207457
SWIGINTERN VALUE _wrap_SessionSettings_set(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__SessionSettings, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__Dictionary, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SessionSettings_set__SWIG_1(nargs, args, self);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__SessionSettings, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__SessionID, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FIX__Dictionary, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SessionSettings_set__SWIG_0(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "SessionSettings.set",
" void SessionSettings.set(FIX::SessionID const &, FIX::Dictionary)\n"
" void SessionSettings.set(FIX::Dictionary const &defaults)\n");
return Qnil;
}
|
#size(*args) ⇒ Object
call-seq:
size -> size_t
Size or Length of the SessionSettings.
207520 207521 207522 207523 207524 207525 207526 207527 207528 207529 207530 207531 207532 207533 207534 207535 207536 207537 207538 207539 207540 207541 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 207520
SWIGINTERN VALUE
_wrap_SessionSettings_size(int argc, VALUE *argv, VALUE self) {
FIX::SessionSettings *arg1 = (FIX::SessionSettings *) 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__SessionSettings, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionSettings const *","size", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionSettings * >(argp1);
result = ((FIX::SessionSettings const *)arg1)->size();
vresult = SWIG_From_size_t(static_cast< size_t >(result));
return vresult;
fail:
return Qnil;
}
|