218688
218689
218690
218691
218692
218693
218694
218695
218696
218697
218698
218699
218700
218701
218702
218703
218704
218705
218706
218707
218708
218709
218710
218711
218712
218713
218714
218715
218716
218717
218718
218719
218720
218721
218722
218723
218724
218725
218726
218727
218728
218729
218730
|
# File 'ext/quickfix/QuickfixRuby.cpp', line 218688
SWIGINTERN VALUE
_wrap_DataDictionary__getFieldName(int argc, VALUE *argv, VALUE self) {
FIX::DataDictionary *arg1 = (FIX::DataDictionary *) 0 ;
int arg2 ;
std::string *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
std::string temp3 ;
bool result;
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__DataDictionary, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::DataDictionary const *","getFieldName", 1, self ));
}
arg1 = reinterpret_cast< FIX::DataDictionary * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","getFieldName", 2, argv[0] ));
}
arg2 = static_cast< int >(val2);
{
temp3 = std::string((char*)StringValuePtr(argv[1]));
arg3 = &temp3;
}
result = (bool)((FIX::DataDictionary const *)arg1)->getFieldName(arg2,*arg3);
vresult = SWIG_From_bool(static_cast< bool >(result));
{
if( std::string("std::string &") == "std::string &" )
{
rb_str_resize( argv[1], 0 );
rb_str_append( argv[1], rb_str_new2(arg3->c_str()) );
}
}
return vresult;
fail:
return Qnil;
}
|