Class: Quickfix::MySQLQuery
- Inherits:
-
Object
- Object
- Quickfix::MySQLQuery
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #execute(*args) ⇒ Object
- #getValue(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #reason(*args) ⇒ Object
- #rows(*args) ⇒ Object
- #success(*args) ⇒ Object
- #throwException(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
115412 115413 115414 115415 115416 115417 115418 115419 115420 115421 115422 115423 115424 115425 115426 115427 115428 115429 115430 115431 115432 115433 115434 115435 115436 115437 115438 115439 115440 115441 115442 115443 115444 115445 115446 115447 115448 115449 115450 115451 115452 115453 115454 115455 115456 115457 115458 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115412
SWIGINTERN VALUE
_wrap_new_MySQLQuery(int argc, VALUE *argv, VALUE self) {
std::string *arg1 = 0 ;
int res1 = SWIG_OLDOBJ ;
const char *classname SWIGUNUSED = "Quickfix::MySQLQuery";
FIX::MySQLQuery *result = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",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 &","MySQLQuery", 1, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","MySQLQuery", 1, argv[0]));
}
arg1 = ptr;
}
{
if(tryRubyException([&]() mutable
{
result = (FIX::MySQLQuery *)new FIX::MySQLQuery((std::string const &)*arg1);
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 (SWIG_IsNewObj(res1)) delete arg1;
return self;
fail:
if (SWIG_IsNewObj(res1)) delete arg1;
return Qnil;
}
|
Instance Method Details
#execute(*args) ⇒ Object
115467 115468 115469 115470 115471 115472 115473 115474 115475 115476 115477 115478 115479 115480 115481 115482 115483 115484 115485 115486 115487 115488 115489 115490 115491 115492 115493 115494 115495 115496 115497 115498 115499 115500 115501 115502 115503 115504 115505 115506 115507 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115467
SWIGINTERN VALUE
_wrap_MySQLQuery_execute(int argc, VALUE *argv, VALUE self) {
FIX::MySQLQuery *arg1 = (FIX::MySQLQuery *) 0 ;
MYSQL *arg2 = (MYSQL *) 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__MySQLQuery, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLQuery *","execute", 1, self ));
}
arg1 = reinterpret_cast< FIX::MySQLQuery * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_MYSQL, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "MYSQL *","execute", 2, argv[0] ));
}
arg2 = reinterpret_cast< MYSQL * >(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;
}
|
#getValue(*args) ⇒ Object
115615 115616 115617 115618 115619 115620 115621 115622 115623 115624 115625 115626 115627 115628 115629 115630 115631 115632 115633 115634 115635 115636 115637 115638 115639 115640 115641 115642 115643 115644 115645 115646 115647 115648 115649 115650 115651 115652 115653 115654 115655 115656 115657 115658 115659 115660 115661 115662 115663 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115615
SWIGINTERN VALUE
_wrap_MySQLQuery_getValue(int argc, VALUE *argv, VALUE self) {
FIX::MySQLQuery *arg1 = (FIX::MySQLQuery *) 0 ;
int arg2 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FIX__MySQLQuery, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLQuery *","getValue", 1, self ));
}
arg1 = reinterpret_cast< FIX::MySQLQuery * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","getValue", 2, argv[0] ));
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","getValue", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
{
if(tryRubyException([&]() mutable
{
result = (char *)(arg1)->getValue(arg2,arg3);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
|
#reason(*args) ⇒ Object
115580 115581 115582 115583 115584 115585 115586 115587 115588 115589 115590 115591 115592 115593 115594 115595 115596 115597 115598 115599 115600 115601 115602 115603 115604 115605 115606 115607 115608 115609 115610 115611 115612 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115580
SWIGINTERN VALUE
_wrap_MySQLQuery_reason(int argc, VALUE *argv, VALUE self) {
FIX::MySQLQuery *arg1 = (FIX::MySQLQuery *) 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__MySQLQuery, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLQuery *","reason", 1, self ));
}
arg1 = reinterpret_cast< FIX::MySQLQuery * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (std::string *) &(arg1)->reason();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_std_string(static_cast< std::string >(*result));
return vresult;
fail:
return Qnil;
}
|
#rows(*args) ⇒ Object
115545 115546 115547 115548 115549 115550 115551 115552 115553 115554 115555 115556 115557 115558 115559 115560 115561 115562 115563 115564 115565 115566 115567 115568 115569 115570 115571 115572 115573 115574 115575 115576 115577 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115545
SWIGINTERN VALUE
_wrap_MySQLQuery_rows(int argc, VALUE *argv, VALUE self) {
FIX::MySQLQuery *arg1 = (FIX::MySQLQuery *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int 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__MySQLQuery, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLQuery *","rows", 1, self ));
}
arg1 = reinterpret_cast< FIX::MySQLQuery * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (int)(arg1)->rows();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#success(*args) ⇒ Object
115510 115511 115512 115513 115514 115515 115516 115517 115518 115519 115520 115521 115522 115523 115524 115525 115526 115527 115528 115529 115530 115531 115532 115533 115534 115535 115536 115537 115538 115539 115540 115541 115542 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115510
SWIGINTERN VALUE
_wrap_MySQLQuery_success(int argc, VALUE *argv, VALUE self) {
FIX::MySQLQuery *arg1 = (FIX::MySQLQuery *) 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__MySQLQuery, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLQuery *","success", 1, self ));
}
arg1 = reinterpret_cast< FIX::MySQLQuery * >(argp1);
{
if(tryRubyException([&]() mutable
{
result = (bool)(arg1)->success();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
|
#throwException(*args) ⇒ Object
115666 115667 115668 115669 115670 115671 115672 115673 115674 115675 115676 115677 115678 115679 115680 115681 115682 115683 115684 115685 115686 115687 115688 115689 115690 115691 115692 115693 115694 115695 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 115666
SWIGINTERN VALUE
_wrap_MySQLQuery_throwException(int argc, VALUE *argv, VALUE self) {
FIX::MySQLQuery *arg1 = (FIX::MySQLQuery *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
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__MySQLQuery, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLQuery *","throwException", 1, self ));
}
arg1 = reinterpret_cast< FIX::MySQLQuery * >(argp1);
{
if(tryRubyException([&]() mutable
{
(arg1)->throwException();
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
return Qnil;
fail:
return Qnil;
}
|