Class: Ctp::CThostFtdcLogoutAllField

Inherits:
Object
  • Object
show all
Defined in:
ext/ctp/ctp.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



32362
32363
32364
32365
32366
32367
32368
32369
32370
32371
32372
32373
32374
32375
# File 'ext/ctp/ctp.cxx', line 32362

SWIGINTERN VALUE
_wrap_new_CThostFtdcLogoutAllField(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "Ctp::CThostFtdcLogoutAllField";
  CThostFtdcLogoutAllField *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (CThostFtdcLogoutAllField *)new CThostFtdcLogoutAllField();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Instance Method Details

#FrontID(*args) ⇒ Object



32210
32211
32212
32213
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223
32224
32225
32226
32227
32228
32229
32230
32231
# File 'ext/ctp/ctp.cxx', line 32210

SWIGINTERN VALUE
_wrap_CThostFtdcLogoutAllField_FrontID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcLogoutAllField *arg1 = (CThostFtdcLogoutAllField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcFrontIDType 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_CThostFtdcLogoutAllField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLogoutAllField *","FrontID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcLogoutAllField * >(argp1);
  result = (TThostFtdcFrontIDType) ((arg1)->FrontID);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#FrontID=(*args) ⇒ Object



32181
32182
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200
32201
32202
32203
32204
32205
32206
32207
# File 'ext/ctp/ctp.cxx', line 32181

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

#SessionID(*args) ⇒ Object



32263
32264
32265
32266
32267
32268
32269
32270
32271
32272
32273
32274
32275
32276
32277
32278
32279
32280
32281
32282
32283
32284
# File 'ext/ctp/ctp.cxx', line 32263

SWIGINTERN VALUE
_wrap_CThostFtdcLogoutAllField_SessionID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcLogoutAllField *arg1 = (CThostFtdcLogoutAllField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcSessionIDType 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_CThostFtdcLogoutAllField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLogoutAllField *","SessionID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcLogoutAllField * >(argp1);
  result = (TThostFtdcSessionIDType) ((arg1)->SessionID);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#SessionID=(*args) ⇒ Object



32234
32235
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258
32259
32260
# File 'ext/ctp/ctp.cxx', line 32234

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

#SystemName(*args) ⇒ Object



32317
32318
32319
32320
32321
32322
32323
32324
32325
32326
32327
32328
32329
32330
32331
32332
32333
32334
32335
32336
32337
32338
32339
32340
32341
32342
32343
32344
# File 'ext/ctp/ctp.cxx', line 32317

SWIGINTERN VALUE
_wrap_CThostFtdcLogoutAllField_SystemName_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcLogoutAllField *arg1 = (CThostFtdcLogoutAllField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  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_CThostFtdcLogoutAllField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLogoutAllField *","SystemName", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcLogoutAllField * >(argp1);
  result = (char *) ((arg1)->SystemName);
  {
    size_t size = SWIG_strnlen(result, 41);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#SystemName=(*args) ⇒ Object



32287
32288
32289
32290
32291
32292
32293
32294
32295
32296
32297
32298
32299
32300
32301
32302
32303
32304
32305
32306
32307
32308
32309
32310
32311
32312
32313
32314
# File 'ext/ctp/ctp.cxx', line 32287

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