Class: Quickfix::SessionID
- Inherits:
-
Object
- Object
- Quickfix::SessionID
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #fromString(*args) ⇒ Object
- #getBeginString(*args) ⇒ Object
- #getSenderCompID(*args) ⇒ Object
- #getSessionQualifier(*args) ⇒ Object
- #getTargetCompID(*args) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
- #isFIXT(*args) ⇒ Object
- #to_s(*args) ⇒ Object
- #toString(*args, self) ⇒ Object
- #toStringFrozen(*args) ⇒ Object
-
#~(*args) ⇒ Object
call-seq: ~ -> SessionID.
Constructor Details
#initialize(*args, self) ⇒ Object
94097 94098 94099 94100 94101 94102 94103 94104 94105 94106 94107 94108 94109 94110 94111 94112 94113 94114 94115 94116 94117 94118 94119 94120 94121 94122 94123 94124 94125 94126 94127 94128 94129 94130 94131 94132 94133 94134 94135 94136 94137 94138 94139 94140 94141 94142 94143 94144 94145 94146 94147 94148 94149 94150 94151 94152 94153 94154 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94097
SWIGINTERN VALUE _wrap_new_SessionID(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[4];
int ii;
argc = nargs;
if (argc > 4) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 0) {
return _wrap_new_SessionID__SWIG_0(nargs, args, self);
}
if (argc == 3) {
int _v = 0;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SessionID__SWIG_2(nargs, args, self);
}
}
}
}
if (argc == 4) {
int _v = 0;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SessionID__SWIG_1(nargs, args, self);
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "SessionID.new",
" SessionID.new()\n"
" SessionID.new(std::string const &beginString, std::string const &senderCompID, std::string const &targetCompID, std::string const &sessionQualifier)\n"
" SessionID.new(std::string const &beginString, std::string const &senderCompID, std::string const &targetCompID)\n");
return Qnil;
}
|
Instance Method Details
#fromString(*args) ⇒ Object
94402 94403 94404 94405 94406 94407 94408 94409 94410 94411 94412 94413 94414 94415 94416 94417 94418 94419 94420 94421 94422 94423 94424 94425 94426 94427 94428 94429 94430 94431 94432 94433 94434 94435 94436 94437 94438 94439 94440 94441 94442 94443 94444 94445 94446 94447 94448 94449 94450 94451 94452 94453 94454 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94402
SWIGINTERN VALUE
_wrap_SessionID_fromString(int argc, VALUE *argv, VALUE self) {
FIX::SessionID *arg1 = (FIX::SessionID *) 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__SessionID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionID *","fromString", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionID * >(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 &","fromString", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","fromString", 2, argv[0]));
}
arg2 = ptr;
}
{
if(tryRubyException([&]() mutable
{
(arg1)->fromString((std::string const &)*arg2);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
{
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;
}
|
#getBeginString(*args) ⇒ Object
94157 94158 94159 94160 94161 94162 94163 94164 94165 94166 94167 94168 94169 94170 94171 94172 94173 94174 94175 94176 94177 94178 94179 94180 94181 94182 94183 94184 94185 94186 94187 94188 94189 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94157
SWIGINTERN VALUE
_wrap_SessionID_getBeginString(int argc, VALUE *argv, VALUE self) {
FIX::SessionID *arg1 = (FIX::SessionID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FIX::BeginString *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__SessionID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionID const *","getBeginString", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionID * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (FIX::BeginString *) &((FIX::SessionID const *)arg1)->getBeginString();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__BeginString, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#getSenderCompID(*args) ⇒ Object
94192 94193 94194 94195 94196 94197 94198 94199 94200 94201 94202 94203 94204 94205 94206 94207 94208 94209 94210 94211 94212 94213 94214 94215 94216 94217 94218 94219 94220 94221 94222 94223 94224 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94192
SWIGINTERN VALUE
_wrap_SessionID_getSenderCompID(int argc, VALUE *argv, VALUE self) {
FIX::SessionID *arg1 = (FIX::SessionID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FIX::SenderCompID *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__SessionID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionID const *","getSenderCompID", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionID * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (FIX::SenderCompID *) &((FIX::SessionID const *)arg1)->getSenderCompID();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__SenderCompID, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#getSessionQualifier(*args) ⇒ Object
94262 94263 94264 94265 94266 94267 94268 94269 94270 94271 94272 94273 94274 94275 94276 94277 94278 94279 94280 94281 94282 94283 94284 94285 94286 94287 94288 94289 94290 94291 94292 94293 94294 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94262
SWIGINTERN VALUE
_wrap_SessionID_getSessionQualifier(int argc, VALUE *argv, VALUE self) {
FIX::SessionID *arg1 = (FIX::SessionID *) 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__SessionID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionID const *","getSessionQualifier", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionID * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (std::string *) &((FIX::SessionID const *)arg1)->getSessionQualifier();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_std_string(static_cast< std::string >(*result));
return vresult;
fail:
return Qnil;
}
|
#getTargetCompID(*args) ⇒ Object
94227 94228 94229 94230 94231 94232 94233 94234 94235 94236 94237 94238 94239 94240 94241 94242 94243 94244 94245 94246 94247 94248 94249 94250 94251 94252 94253 94254 94255 94256 94257 94258 94259 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94227
SWIGINTERN VALUE
_wrap_SessionID_getTargetCompID(int argc, VALUE *argv, VALUE self) {
FIX::SessionID *arg1 = (FIX::SessionID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FIX::TargetCompID *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__SessionID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionID const *","getTargetCompID", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionID * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (FIX::TargetCompID *) &((FIX::SessionID const *)arg1)->getTargetCompID();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__TargetCompID, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#isFIXT(*args) ⇒ Object
94297 94298 94299 94300 94301 94302 94303 94304 94305 94306 94307 94308 94309 94310 94311 94312 94313 94314 94315 94316 94317 94318 94319 94320 94321 94322 94323 94324 94325 94326 94327 94328 94329 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94297
SWIGINTERN VALUE
_wrap_SessionID_isFIXT(int argc, VALUE *argv, VALUE self) {
FIX::SessionID *arg1 = (FIX::SessionID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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__SessionID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionID const *","isFIXT", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionID * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (bool)((FIX::SessionID const *)arg1)->isFIXT();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#to_s(*args) ⇒ Object
94836 94837 94838 94839 94840 94841 94842 94843 94844 94845 94846 94847 94848 94849 94850 94851 94852 94853 94854 94855 94856 94857 94858 94859 94860 94861 94862 94863 94864 94865 94866 94867 94868 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94836
SWIGINTERN VALUE
_wrap_SessionID___str__(int argc, VALUE *argv, VALUE self) {
FIX::SessionID *arg1 = (FIX::SessionID *) 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__SessionID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionID *","__str__", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionID * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = FIX_SessionID___str__(arg1);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_std_string(static_cast< std::string >(result));
return vresult;
fail:
return Qnil;
}
|
#toString(*args, self) ⇒ Object
94505 94506 94507 94508 94509 94510 94511 94512 94513 94514 94515 94516 94517 94518 94519 94520 94521 94522 94523 94524 94525 94526 94527 94528 94529 94530 94531 94532 94533 94534 94535 94536 94537 94538 94539 94540 94541 94542 94543 94544 94545 94546 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94505
SWIGINTERN VALUE _wrap_SessionID_toString(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 = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__SessionID, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SessionID_toString__SWIG_0(nargs, args, self);
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__SessionID, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__string, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SessionID_toString__SWIG_1(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "SessionID.toString",
" std::string SessionID.toString()\n"
" std::string & SessionID.toString(std::string &str)\n");
return Qnil;
}
|
#toStringFrozen(*args) ⇒ Object
94367 94368 94369 94370 94371 94372 94373 94374 94375 94376 94377 94378 94379 94380 94381 94382 94383 94384 94385 94386 94387 94388 94389 94390 94391 94392 94393 94394 94395 94396 94397 94398 94399 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94367
SWIGINTERN VALUE
_wrap_SessionID_toStringFrozen(int argc, VALUE *argv, VALUE self) {
FIX::SessionID *arg1 = (FIX::SessionID *) 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__SessionID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionID const *","toStringFrozen", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionID * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (std::string *) &((FIX::SessionID const *)arg1)->toStringFrozen();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_std_string(static_cast< std::string >(*result));
return vresult;
fail:
return Qnil;
}
|
#~(*args) ⇒ Object
call-seq:
~ -> SessionID
Invert operator.
94801 94802 94803 94804 94805 94806 94807 94808 94809 94810 94811 94812 94813 94814 94815 94816 94817 94818 94819 94820 94821 94822 94823 94824 94825 94826 94827 94828 94829 94830 94831 94832 94833 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 94801
SWIGINTERN VALUE
_wrap_SessionID___invert__(int argc, VALUE *argv, VALUE self) {
FIX::SessionID *arg1 = (FIX::SessionID *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
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__SessionID, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SessionID const *","operator ~", 1, self ));
}
arg1 = reinterpret_cast< FIX::SessionID * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = ((FIX::SessionID const *)arg1)->operator ~();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_NewPointerObj((new FIX::SessionID(result)), SWIGTYPE_p_FIX__SessionID, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
|