Class: Quickfix::PostgreSQLConnection
- Inherits:
-
Object
- Object
- Quickfix::PostgreSQLConnection
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #connected(*args) ⇒ Object
- #connectionID(*args) ⇒ Object
- #execute(*args) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
- #reconnect(*args) ⇒ Object
Constructor Details
#initialize(*args, self) ⇒ Object
119182 119183 119184 119185 119186 119187 119188 119189 119190 119191 119192 119193 119194 119195 119196 119197 119198 119199 119200 119201 119202 119203 119204 119205 119206 119207 119208 119209 119210 119211 119212 119213 119214 119215 119216 119217 119218 119219 119220 119221 119222 119223 119224 119225 119226 119227 119228 119229 119230 119231 119232 119233 119234 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119182
SWIGINTERN VALUE _wrap_new_PostgreSQLConnection(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[5];
int ii;
argc = nargs;
if (argc > 5) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 1) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__DatabaseConnectionID, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_PostgreSQLConnection__SWIG_0(nargs, args, self);
}
}
if (argc == 5) {
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) {
{
int res = SWIG_AsVal_short(argv[4], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_PostgreSQLConnection__SWIG_1(nargs, args, self);
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 5, "PostgreSQLConnection.new",
" PostgreSQLConnection.new(FIX::DatabaseConnectionID const &id)\n"
" PostgreSQLConnection.new(std::string const &database, std::string const &user, std::string const &password, std::string const &host, short port)\n");
return Qnil;
}
|
Instance Method Details
#connected(*args) ⇒ Object
119278 119279 119280 119281 119282 119283 119284 119285 119286 119287 119288 119289 119290 119291 119292 119293 119294 119295 119296 119297 119298 119299 119300 119301 119302 119303 119304 119305 119306 119307 119308 119309 119310 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119278
SWIGINTERN VALUE
_wrap_PostgreSQLConnection_connected(int argc, VALUE *argv, VALUE self) {
FIX::PostgreSQLConnection *arg1 = (FIX::PostgreSQLConnection *) 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__PostgreSQLConnection, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLConnection *","connected", 1, self ));
}
arg1 = reinterpret_cast< FIX::PostgreSQLConnection * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (bool)(arg1)->connected();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#connectionID(*args) ⇒ Object
119243 119244 119245 119246 119247 119248 119249 119250 119251 119252 119253 119254 119255 119256 119257 119258 119259 119260 119261 119262 119263 119264 119265 119266 119267 119268 119269 119270 119271 119272 119273 119274 119275 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119243
SWIGINTERN VALUE
_wrap_PostgreSQLConnection_connectionID(int argc, VALUE *argv, VALUE self) {
FIX::PostgreSQLConnection *arg1 = (FIX::PostgreSQLConnection *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FIX::DatabaseConnectionID *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__PostgreSQLConnection, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLConnection *","connectionID", 1, self ));
}
arg1 = reinterpret_cast< FIX::PostgreSQLConnection * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (FIX::DatabaseConnectionID *) &(arg1)->connectionID();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__DatabaseConnectionID, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#execute(*args) ⇒ Object
119348 119349 119350 119351 119352 119353 119354 119355 119356 119357 119358 119359 119360 119361 119362 119363 119364 119365 119366 119367 119368 119369 119370 119371 119372 119373 119374 119375 119376 119377 119378 119379 119380 119381 119382 119383 119384 119385 119386 119387 119388 119389 119390 119391 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119348
SWIGINTERN VALUE
_wrap_PostgreSQLConnection_execute(int argc, VALUE *argv, VALUE self) {
FIX::PostgreSQLConnection *arg1 = (FIX::PostgreSQLConnection *) 0 ;
FIX::PostgreSQLQuery *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
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__PostgreSQLConnection, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLConnection *","execute", 1, self ));
}
arg1 = reinterpret_cast< FIX::PostgreSQLConnection * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__PostgreSQLQuery, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::PostgreSQLQuery &","execute", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::PostgreSQLQuery &","execute", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::PostgreSQLQuery * >(argp2);
{
if(tryRubyException([&]() mutable
{
result = (bool)(arg1)->execute(*arg2);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#reconnect(*args) ⇒ Object
119313 119314 119315 119316 119317 119318 119319 119320 119321 119322 119323 119324 119325 119326 119327 119328 119329 119330 119331 119332 119333 119334 119335 119336 119337 119338 119339 119340 119341 119342 119343 119344 119345 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 119313
SWIGINTERN VALUE
_wrap_PostgreSQLConnection_reconnect(int argc, VALUE *argv, VALUE self) {
FIX::PostgreSQLConnection *arg1 = (FIX::PostgreSQLConnection *) 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__PostgreSQLConnection, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::PostgreSQLConnection *","reconnect", 1, self ));
}
arg1 = reinterpret_cast< FIX::PostgreSQLConnection * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (bool)(arg1)->reconnect();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|