Class: Quickfix::MySQLLogFactory

Inherits:
((swig_class *) SWIGTYPE_p_FIX__LogFactory->clientdata)->klass
  • Object
show all
Defined in:
ext/quickfix/QuickfixRuby.cpp

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



118459
118460
118461
118462
118463
118464
118465
118466
118467
118468
118469
118470
118471
118472
118473
118474
118475
118476
118477
118478
118479
118480
118481
118482
118483
118484
118485
118486
118487
118488
118489
118490
118491
118492
118493
118494
118495
118496
118497
118498
118499
118500
118501
118502
118503
118504
118505
118506
118507
118508
118509
118510
118511
118512
118513
118514
118515
# File 'ext/quickfix/QuickfixRuby.cpp', line 118459

SWIGINTERN VALUE _wrap_new_MySQLLogFactory(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 == 0) {
    return _wrap_new_MySQLLogFactory__SWIG_2(nargs, args, self);
  }
  if (argc == 1) {
    int _v = 0;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__SessionSettings, SWIG_POINTER_NO_NULL);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_MySQLLogFactory__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_MySQLLogFactory__SWIG_1(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "MySQLLogFactory.new", 
    "    MySQLLogFactory.new(FIX::SessionSettings const &settings)\n"
    "    MySQLLogFactory.new(std::string const &database, std::string const &user, std::string const &password, std::string const &host, short port)\n"
    "    MySQLLogFactory.new()\n");
  
  return Qnil;
}

Class Method Details

.DEFAULT_DATABASEObject



118211
118212
118213
118214
118215
118216
118217
# File 'ext/quickfix/QuickfixRuby.cpp', line 118211

SWIGINTERN VALUE
_wrap_MySQLLogFactory_DEFAULT_DATABASE_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLLogFactory::DEFAULT_DATABASE));
  return _val;
}

.DEFAULT_HOSTObject



118238
118239
118240
118241
118242
118243
118244
# File 'ext/quickfix/QuickfixRuby.cpp', line 118238

SWIGINTERN VALUE
_wrap_MySQLLogFactory_DEFAULT_HOST_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLLogFactory::DEFAULT_HOST));
  return _val;
}

.DEFAULT_PASSWORDObject



118229
118230
118231
118232
118233
118234
118235
# File 'ext/quickfix/QuickfixRuby.cpp', line 118229

SWIGINTERN VALUE
_wrap_MySQLLogFactory_DEFAULT_PASSWORD_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLLogFactory::DEFAULT_PASSWORD));
  return _val;
}

.DEFAULT_PORTObject



118247
118248
118249
118250
118251
118252
118253
# File 'ext/quickfix/QuickfixRuby.cpp', line 118247

SWIGINTERN VALUE
_wrap_MySQLLogFactory_DEFAULT_PORT_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_short(static_cast< short >(FIX::MySQLLogFactory::DEFAULT_PORT));
  return _val;
}

.DEFAULT_USERObject



118220
118221
118222
118223
118224
118225
118226
# File 'ext/quickfix/QuickfixRuby.cpp', line 118220

SWIGINTERN VALUE
_wrap_MySQLLogFactory_DEFAULT_USER_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_std_string(static_cast< std::string >(FIX::MySQLLogFactory::DEFAULT_USER));
  return _val;
}

Instance Method Details

#create(*args, self) ⇒ Object



118611
118612
118613
118614
118615
118616
118617
118618
118619
118620
118621
118622
118623
118624
118625
118626
118627
118628
118629
118630
118631
118632
118633
118634
118635
118636
118637
118638
118639
118640
118641
118642
118643
118644
118645
118646
118647
118648
118649
118650
118651
118652
# File 'ext/quickfix/QuickfixRuby.cpp', line 118611

SWIGINTERN VALUE _wrap_MySQLLogFactory_create(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__MySQLLogFactory, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_MySQLLogFactory_create__SWIG_0(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v = 0;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__MySQLLogFactory, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__SessionID, SWIG_POINTER_NO_NULL);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_MySQLLogFactory_create__SWIG_1(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "MySQLLogFactory.create", 
    "    FIX::Log MySQLLogFactory.create()\n"
    "    FIX::Log * MySQLLogFactory.create(FIX::SessionID const &)\n");
  
  return Qnil;
}

#destroy(*args) ⇒ Object



118655
118656
118657
118658
118659
118660
118661
118662
118663
118664
118665
118666
118667
118668
118669
118670
118671
118672
118673
118674
118675
118676
118677
118678
118679
118680
118681
118682
118683
118684
118685
118686
118687
118688
118689
118690
118691
118692
# File 'ext/quickfix/QuickfixRuby.cpp', line 118655

SWIGINTERN VALUE
_wrap_MySQLLogFactory_destroy(int argc, VALUE *argv, VALUE self) {
  FIX::MySQLLogFactory *arg1 = (FIX::MySQLLogFactory *) 0 ;
  FIX::Log *arg2 = (FIX::Log *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  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__MySQLLogFactory, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MySQLLogFactory *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FIX::MySQLLogFactory * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FIX__Log, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::Log *","destroy", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FIX::Log * >(argp2);
  {
    if(tryRubyException([&]() mutable 
        {
      (arg1)->destroy(arg2);
          return self;
        fail:
          return Qnil;
        }) == Qnil) 
    {
      SWIG_fail;
    }
  }
  return Qnil;
fail:
  return Qnil;
}