Class: Ctp::CThostFtdcDRTransferField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



190420
190421
190422
190423
190424
190425
190426
190427
190428
190429
190430
190431
190432
190433
# File 'ext/ctp/ctp.cxx', line 190420

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

Instance Method Details

#DestBrokerID(*args) ⇒ Object



190375
190376
190377
190378
190379
190380
190381
190382
190383
190384
190385
190386
190387
190388
190389
190390
190391
190392
190393
190394
190395
190396
190397
190398
190399
190400
190401
190402
# File 'ext/ctp/ctp.cxx', line 190375

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

#DestBrokerID=(*args) ⇒ Object



190345
190346
190347
190348
190349
190350
190351
190352
190353
190354
190355
190356
190357
190358
190359
190360
190361
190362
190363
190364
190365
190366
190367
190368
190369
190370
190371
190372
# File 'ext/ctp/ctp.cxx', line 190345

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

#DestDRIdentityID(*args) ⇒ Object



190261
190262
190263
190264
190265
190266
190267
190268
190269
190270
190271
190272
190273
190274
190275
190276
190277
190278
190279
190280
190281
190282
# File 'ext/ctp/ctp.cxx', line 190261

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

#DestDRIdentityID=(*args) ⇒ Object



190232
190233
190234
190235
190236
190237
190238
190239
190240
190241
190242
190243
190244
190245
190246
190247
190248
190249
190250
190251
190252
190253
190254
190255
190256
190257
190258
# File 'ext/ctp/ctp.cxx', line 190232

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

#OrigBrokerID(*args) ⇒ Object



190315
190316
190317
190318
190319
190320
190321
190322
190323
190324
190325
190326
190327
190328
190329
190330
190331
190332
190333
190334
190335
190336
190337
190338
190339
190340
190341
190342
# File 'ext/ctp/ctp.cxx', line 190315

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

#OrigBrokerID=(*args) ⇒ Object



190285
190286
190287
190288
190289
190290
190291
190292
190293
190294
190295
190296
190297
190298
190299
190300
190301
190302
190303
190304
190305
190306
190307
190308
190309
190310
190311
190312
# File 'ext/ctp/ctp.cxx', line 190285

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

#OrigDRIdentityID(*args) ⇒ Object



190208
190209
190210
190211
190212
190213
190214
190215
190216
190217
190218
190219
190220
190221
190222
190223
190224
190225
190226
190227
190228
190229
# File 'ext/ctp/ctp.cxx', line 190208

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

#OrigDRIdentityID=(*args) ⇒ Object



190179
190180
190181
190182
190183
190184
190185
190186
190187
190188
190189
190190
190191
190192
190193
190194
190195
190196
190197
190198
190199
190200
190201
190202
190203
190204
190205
# File 'ext/ctp/ctp.cxx', line 190179

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