Class: Quickfix::MessageStoreFactoryExceptionWrapper
- Inherits:
-
Object
- Object
- Quickfix::MessageStoreFactoryExceptionWrapper
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
213903 213904 213905 213906 213907 213908 213909 213910 213911 213912 213913 213914 213915 213916 213917 213918 213919 213920 213921 213922 213923 213924 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 213903
SWIGINTERN VALUE
_wrap_new_MessageStoreFactoryExceptionWrapper(int argc, VALUE *argv, VALUE self) {
FIX::MessageStoreFactory *arg1 = (FIX::MessageStoreFactory *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
const char *classname SWIGUNUSED = "Quickfix::MessageStoreFactoryExceptionWrapper";
FIX::MessageStoreFactoryExceptionWrapper *result = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FIX__MessageStoreFactory, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MessageStoreFactory *","MessageStoreFactoryExceptionWrapper", 1, argv[0] ));
}
arg1 = reinterpret_cast< FIX::MessageStoreFactory * >(argp1);
result = (FIX::MessageStoreFactoryExceptionWrapper *)new FIX::MessageStoreFactoryExceptionWrapper(arg1);
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#create(*args) ⇒ Object
213927 213928 213929 213930 213931 213932 213933 213934 213935 213936 213937 213938 213939 213940 213941 213942 213943 213944 213945 213946 213947 213948 213949 213950 213951 213952 213953 213954 213955 213956 213957 213958 213959 213960 213961 213962 213963 213964 213965 213966 213967 213968 213969 213970 213971 213972 213973 213974 213975 213976 213977 213978 213979 213980 213981 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 213927
SWIGINTERN VALUE
_wrap_MessageStoreFactoryExceptionWrapper_create(int argc, VALUE *argv, VALUE self) {
FIX::MessageStoreFactoryExceptionWrapper *arg1 = (FIX::MessageStoreFactoryExceptionWrapper *) 0 ;
FIX::SessionID *arg2 = 0 ;
bool *arg3 = 0 ;
FIX::ConfigError *arg4 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
FIX::MessageStore *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FIX__MessageStoreFactoryExceptionWrapper, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MessageStoreFactoryExceptionWrapper *","create", 1, self ));
}
arg1 = reinterpret_cast< FIX::MessageStoreFactoryExceptionWrapper * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FIX__SessionID, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::SessionID const &","create", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::SessionID const &","create", 2, argv[0]));
}
arg2 = reinterpret_cast< FIX::SessionID * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_bool, 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "bool &","create", 3, argv[1] ));
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "bool &","create", 3, argv[1]));
}
arg3 = reinterpret_cast< bool * >(argp3);
res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_FIX__ConfigError, 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FIX::ConfigError &","create", 4, argv[2] ));
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FIX::ConfigError &","create", 4, argv[2]));
}
arg4 = reinterpret_cast< FIX::ConfigError * >(argp4);
result = (FIX::MessageStore *)(arg1)->create((FIX::SessionID const &)*arg2,*arg3,*arg4);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FIX__MessageStore, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|
#destroy(*args) ⇒ Object
213984 213985 213986 213987 213988 213989 213990 213991 213992 213993 213994 213995 213996 213997 213998 213999 214000 214001 214002 214003 214004 214005 214006 214007 214008 214009 214010 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 213984
SWIGINTERN VALUE
_wrap_MessageStoreFactoryExceptionWrapper_destroy(int argc, VALUE *argv, VALUE self) {
FIX::MessageStoreFactoryExceptionWrapper *arg1 = (FIX::MessageStoreFactoryExceptionWrapper *) 0 ;
FIX::MessageStore *arg2 = (FIX::MessageStore *) 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__MessageStoreFactoryExceptionWrapper, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::MessageStoreFactoryExceptionWrapper *","destroy", 1, self ));
}
arg1 = reinterpret_cast< FIX::MessageStoreFactoryExceptionWrapper * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FIX__MessageStore, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FIX::MessageStore *","destroy", 2, argv[0] ));
}
arg2 = reinterpret_cast< FIX::MessageStore * >(argp2);
(arg1)->destroy(arg2);
return Qnil;
fail:
return Qnil;
}
|