Method: Ctp::CThostFtdcOrderField#Direction

Defined in:
ext/ctp/ctp.cxx

#Direction(*args) ⇒ Object



34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
# File 'ext/ctp/ctp.cxx', line 34633

SWIGINTERN VALUE
_wrap_CThostFtdcOrderField_Direction_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOrderField *arg1 = (CThostFtdcOrderField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcDirectionType 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_CThostFtdcOrderField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOrderField *","Direction", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOrderField * >(argp1);
  result = (TThostFtdcDirectionType) ((arg1)->Direction);
  vresult = SWIG_From_char(static_cast< char >(result));
  return vresult;
fail:
  return Qnil;
}