Method: Ctp::CThostFtdcBrokerUserField#IsActive=

Defined in:
ext/ctp/ctp.cxx

#IsActive=(*args) ⇒ Object



26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
# File 'ext/ctp/ctp.cxx', line 26007

SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserField_IsActive_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcBrokerUserField *arg1 = (CThostFtdcBrokerUserField *) 0 ;
  TThostFtdcBoolType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 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_CThostFtdcBrokerUserField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserField *","IsActive", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcBrokerUserField * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcBoolType >(val2);
  if (arg1) (arg1)->IsActive = arg2;
  return Qnil;
fail:
  return Qnil;
}