101910
101911
101912
101913
101914
101915
101916
101917
101918
101919
101920
101921
101922
101923
101924
101925
101926
101927
101928
101929
101930
101931
|
# File 'ext/ctp/ctp.cxx', line 101910
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_InstrumentStatus_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcInstrumentStatusType 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","InstrumentStatus", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
result = (TThostFtdcInstrumentStatusType) ((arg1)->InstrumentStatus);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|