Class: Quickfix::DatabaseConnectionID
- Inherits:
-
Object
- Object
- Quickfix::DatabaseConnectionID
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #getDatabase(*args) ⇒ Object
- #getHost(*args) ⇒ Object
- #getPassword(*args) ⇒ Object
- #getPort(*args) ⇒ Object
- #getUser(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
Constructor Details
#initialize(*args) ⇒ Object
114591 114592 114593 114594 114595 114596 114597 114598 114599 114600 114601 114602 114603 114604 114605 114606 114607 114608 114609 114610 114611 114612 114613 114614 114615 114616 114617 114618 114619 114620 114621 114622 114623 114624 114625 114626 114627 114628 114629 114630 114631 114632 114633 114634 114635 114636 114637 114638 114639 114640 114641 114642 114643 114644 114645 114646 114647 114648 114649 114650 114651 114652 114653 114654 114655 114656 114657 114658 114659 114660 114661 114662 114663 114664 114665 114666 114667 114668 114669 114670 114671 114672 114673 114674 114675 114676 114677 114678 114679 114680 114681 114682 114683 114684 114685 114686 114687 114688 114689 114690 114691 114692 114693 114694 114695 114696 114697 114698 114699 114700 114701 114702 114703 114704 114705 114706 114707 114708 114709 114710 114711 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114591 SWIGINTERN VALUE _wrap_new_DatabaseConnectionID(int argc, VALUE *argv, VALUE self) { std::string *arg1 = 0 ; std::string *arg2 = 0 ; std::string *arg3 = 0 ; std::string *arg4 = 0 ; short arg5 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; short val5 ; int ecode5 = 0 ; const char *classname SWIGUNUSED = "Quickfix::DatabaseConnectionID"; FIX::DatabaseConnectionID *result = 0 ; if ((argc < 5) || (argc > 5)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; } { std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(argv[0], &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::string const &","DatabaseConnectionID", 1, argv[0] )); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","DatabaseConnectionID", 1, argv[0])); } arg1 = ptr; } { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(argv[1], &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","DatabaseConnectionID", 2, argv[1] )); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","DatabaseConnectionID", 2, argv[1])); } arg2 = ptr; } { std::string *ptr = (std::string *)0; res3 = SWIG_AsPtr_std_string(argv[2], &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::string const &","DatabaseConnectionID", 3, argv[2] )); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","DatabaseConnectionID", 3, argv[2])); } arg3 = ptr; } { std::string *ptr = (std::string *)0; res4 = SWIG_AsPtr_std_string(argv[3], &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "std::string const &","DatabaseConnectionID", 4, argv[3] )); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","DatabaseConnectionID", 4, argv[3])); } arg4 = ptr; } ecode5 = SWIG_AsVal_short(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "short","DatabaseConnectionID", 5, argv[4] )); } arg5 = static_cast< short >(val5); { if(tryRubyException([&]() mutable { result = (FIX::DatabaseConnectionID *)new FIX::DatabaseConnectionID((std::string const &)*arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5); DATA_PTR(self) = result; 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(arg1->c_str()) ); } } { if( std::string("std::string const &") == "std::string &" ) { rb_str_resize( argv[1], 0 ); rb_str_append( argv[1], rb_str_new2(arg2->c_str()) ); } } { if( std::string("std::string const &") == "std::string &" ) { rb_str_resize( argv[2], 0 ); rb_str_append( argv[2], rb_str_new2(arg3->c_str()) ); } } { if( std::string("std::string const &") == "std::string &" ) { rb_str_resize( argv[3], 0 ); rb_str_append( argv[3], rb_str_new2(arg4->c_str()) ); } } if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return self; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return Qnil; } |
Instance Method Details
#getDatabase(*args) ⇒ Object
115078 115079 115080 115081 115082 115083 115084 115085 115086 115087 115088 115089 115090 115091 115092 115093 115094 115095 115096 115097 115098 115099 115100 115101 115102 115103 115104 115105 115106 115107 115108 115109 115110 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115078 SWIGINTERN VALUE _wrap_DatabaseConnectionID_getDatabase(int argc, VALUE *argv, VALUE self) { FIX::DatabaseConnectionID *arg1 = (FIX::DatabaseConnectionID *) 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__DatabaseConnectionID, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::DatabaseConnectionID const *","getDatabase", 1, self )); } arg1 = reinterpret_cast< FIX::DatabaseConnectionID * >(argp1); { if(tryRubyException([&]() mutable { result = (std::string *) &((FIX::DatabaseConnectionID const *)arg1)->getDatabase(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_std_string(static_cast< std::string >(*result)); return vresult; fail: return Qnil; } |
#getHost(*args) ⇒ Object
115183 115184 115185 115186 115187 115188 115189 115190 115191 115192 115193 115194 115195 115196 115197 115198 115199 115200 115201 115202 115203 115204 115205 115206 115207 115208 115209 115210 115211 115212 115213 115214 115215 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115183 SWIGINTERN VALUE _wrap_DatabaseConnectionID_getHost(int argc, VALUE *argv, VALUE self) { FIX::DatabaseConnectionID *arg1 = (FIX::DatabaseConnectionID *) 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__DatabaseConnectionID, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::DatabaseConnectionID const *","getHost", 1, self )); } arg1 = reinterpret_cast< FIX::DatabaseConnectionID * >(argp1); { if(tryRubyException([&]() mutable { result = (std::string *) &((FIX::DatabaseConnectionID const *)arg1)->getHost(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_std_string(static_cast< std::string >(*result)); return vresult; fail: return Qnil; } |
#getPassword(*args) ⇒ Object
115148 115149 115150 115151 115152 115153 115154 115155 115156 115157 115158 115159 115160 115161 115162 115163 115164 115165 115166 115167 115168 115169 115170 115171 115172 115173 115174 115175 115176 115177 115178 115179 115180 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115148 SWIGINTERN VALUE _wrap_DatabaseConnectionID_getPassword(int argc, VALUE *argv, VALUE self) { FIX::DatabaseConnectionID *arg1 = (FIX::DatabaseConnectionID *) 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__DatabaseConnectionID, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::DatabaseConnectionID const *","getPassword", 1, self )); } arg1 = reinterpret_cast< FIX::DatabaseConnectionID * >(argp1); { if(tryRubyException([&]() mutable { result = (std::string *) &((FIX::DatabaseConnectionID const *)arg1)->getPassword(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_std_string(static_cast< std::string >(*result)); return vresult; fail: return Qnil; } |
#getPort(*args) ⇒ Object
115218 115219 115220 115221 115222 115223 115224 115225 115226 115227 115228 115229 115230 115231 115232 115233 115234 115235 115236 115237 115238 115239 115240 115241 115242 115243 115244 115245 115246 115247 115248 115249 115250 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115218 SWIGINTERN VALUE _wrap_DatabaseConnectionID_getPort(int argc, VALUE *argv, VALUE self) { FIX::DatabaseConnectionID *arg1 = (FIX::DatabaseConnectionID *) 0 ; void *argp1 = 0 ; int res1 = 0 ; short 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__DatabaseConnectionID, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::DatabaseConnectionID const *","getPort", 1, self )); } arg1 = reinterpret_cast< FIX::DatabaseConnectionID * >(argp1); { if(tryRubyException([&]() mutable { result = (short)((FIX::DatabaseConnectionID const *)arg1)->getPort(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_short(static_cast< short >(result)); return vresult; fail: return Qnil; } |
#getUser(*args) ⇒ Object
115113 115114 115115 115116 115117 115118 115119 115120 115121 115122 115123 115124 115125 115126 115127 115128 115129 115130 115131 115132 115133 115134 115135 115136 115137 115138 115139 115140 115141 115142 115143 115144 115145 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115113 SWIGINTERN VALUE _wrap_DatabaseConnectionID_getUser(int argc, VALUE *argv, VALUE self) { FIX::DatabaseConnectionID *arg1 = (FIX::DatabaseConnectionID *) 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__DatabaseConnectionID, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::DatabaseConnectionID const *","getUser", 1, self )); } arg1 = reinterpret_cast< FIX::DatabaseConnectionID * >(argp1); { if(tryRubyException([&]() mutable { result = (std::string *) &((FIX::DatabaseConnectionID const *)arg1)->getUser(); return self; fail: return Qnil; }) == Qnil) { SWIG_fail; } } vresult = SWIG_From_std_string(static_cast< std::string >(*result)); return vresult; fail: return Qnil; } |