Method: Ctp::CThostFtdcMDTraderOfferField#ConnectDate=

Defined in:
ext/ctp/ctp.cxx

#ConnectDate=(*args) ⇒ Object



106222
106223
106224
106225
106226
106227
106228
106229
106230
106231
106232
106233
106234
106235
106236
106237
106238
106239
106240
106241
106242
106243
106244
106245
106246
106247
106248
106249
# File 'ext/ctp/ctp.cxx', line 106222

SWIGINTERN VALUE
_wrap_CThostFtdcMDTraderOfferField_ConnectDate_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMDTraderOfferField *arg1 = (CThostFtdcMDTraderOfferField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[9] ;
  int res2 ;
  
  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_CThostFtdcMDTraderOfferField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMDTraderOfferField *","ConnectDate", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMDTraderOfferField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 9);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConnectDate", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->ConnectDate,arg2,9*sizeof(char));
  else memset(arg1->ConnectDate,0,9*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}