Class: Quickfix::FileLogFactory
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__LogFactory->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__LogFactory->clientdata)->klass
- Quickfix::FileLogFactory
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
- #create(*args, self) ⇒ Object
- #destroy(*args) ⇒ Object
- #initialize(*args, self) ⇒ Object constructor
Constructor Details
#initialize(*args, self) ⇒ Object
212187 212188 212189 212190 212191 212192 212193 212194 212195 212196 212197 212198 212199 212200 212201 212202 212203 212204 212205 212206 212207 212208 212209 212210 212211 212212 212213 212214 212215 212216 212217 212218 212219 212220 212221 212222 212223 212224 212225 212226 212227 212228 212229 212230 212231 212232 212233 212234 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 212187
SWIGINTERN VALUE _wrap_new_FileLogFactory(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[2];
int ii;
argc = nargs;
if (argc > 2) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__SessionSettings, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FileLogFactory__SWIG_0(nargs, args, self);
}
}
if (argc == 1) {
int _v;
int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FileLogFactory__SWIG_1(nargs, args, self);
}
}
if (argc == 2) {
int _v;
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) {
return _wrap_new_FileLogFactory__SWIG_2(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 2, "FileLogFactory.new",
" FileLogFactory.new(FIX::SessionSettings const &settings)\n"
" FileLogFactory.new(std::string const &path)\n"
" FileLogFactory.new(std::string const &path, std::string const &backupPath)\n");
return Qnil;
}
|
Instance Method Details
#create(*args, self) ⇒ Object
212296 212297 212298 212299 212300 212301 212302 212303 212304 212305 212306 212307 212308 212309 212310 212311 212312 212313 212314 212315 212316 212317 212318 212319 212320 212321 212322 212323 212324 212325 212326 212327 212328 212329 212330 212331 212332 212333 212334 212335 212336 212337 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 212296
SWIGINTERN VALUE _wrap_FileLogFactory_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;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__FileLogFactory, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FileLogFactory_create__SWIG_0(nargs, args, self);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__FileLogFactory, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__SessionID, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FileLogFactory_create__SWIG_1(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "FileLogFactory.create",
" FIX::Log FileLogFactory.create()\n"
" FIX::Log * FileLogFactory.create(FIX::SessionID const &)\n");
return Qnil;
}
|
#destroy(*args) ⇒ Object
212340 212341 212342 212343 212344 212345 212346 212347 212348 212349 212350 212351 212352 212353 212354 212355 212356 212357 212358 212359 212360 212361 212362 212363 212364 212365 212366 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 212340
SWIGINTERN VALUE
_wrap_FileLogFactory_destroy(int argc, VALUE *argv, VALUE self) {
FIX::FileLogFactory *arg1 = (FIX::FileLogFactory *) 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__FileLogFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::FileLogFactory *","destroy", 1, self ));
}
arg1 = reinterpret_cast< FIX::FileLogFactory * >(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);
(arg1)->destroy(arg2);
return Qnil;
fail:
return Qnil;
}
|