99549
99550
99551
99552
99553
99554
99555
99556
99557
99558
99559
99560
99561
99562
99563
99564
99565
99566
99567
99568
99569
99570
|
# File 'ext/ctp/ctp.cxx', line 99549
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_SettlementPrice_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","SettlementPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->SettlementPrice);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|