Class: Ctp::CThostFtdcCFMMCTradingAccountTokenField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



134526
134527
134528
134529
134530
134531
134532
134533
134534
134535
134536
134537
134538
134539
# File 'ext/ctp/ctp.cxx', line 134526

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

Instance Method Details

#AccountID(*args) ⇒ Object



134368
134369
134370
134371
134372
134373
134374
134375
134376
134377
134378
134379
134380
134381
134382
134383
134384
134385
134386
134387
134388
134389
134390
134391
134392
134393
134394
134395
# File 'ext/ctp/ctp.cxx', line 134368

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

#AccountID=(*args) ⇒ Object



134338
134339
134340
134341
134342
134343
134344
134345
134346
134347
134348
134349
134350
134351
134352
134353
134354
134355
134356
134357
134358
134359
134360
134361
134362
134363
134364
134365
# File 'ext/ctp/ctp.cxx', line 134338

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

#BrokerID(*args) ⇒ Object



134248
134249
134250
134251
134252
134253
134254
134255
134256
134257
134258
134259
134260
134261
134262
134263
134264
134265
134266
134267
134268
134269
134270
134271
134272
134273
134274
134275
# File 'ext/ctp/ctp.cxx', line 134248

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

#BrokerID=(*args) ⇒ Object



134218
134219
134220
134221
134222
134223
134224
134225
134226
134227
134228
134229
134230
134231
134232
134233
134234
134235
134236
134237
134238
134239
134240
134241
134242
134243
134244
134245
# File 'ext/ctp/ctp.cxx', line 134218

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

#KeyID(*args) ⇒ Object



134427
134428
134429
134430
134431
134432
134433
134434
134435
134436
134437
134438
134439
134440
134441
134442
134443
134444
134445
134446
134447
134448
# File 'ext/ctp/ctp.cxx', line 134427

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

#KeyID=(*args) ⇒ Object



134398
134399
134400
134401
134402
134403
134404
134405
134406
134407
134408
134409
134410
134411
134412
134413
134414
134415
134416
134417
134418
134419
134420
134421
134422
134423
134424
# File 'ext/ctp/ctp.cxx', line 134398

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

#ParticipantID(*args) ⇒ Object



134308
134309
134310
134311
134312
134313
134314
134315
134316
134317
134318
134319
134320
134321
134322
134323
134324
134325
134326
134327
134328
134329
134330
134331
134332
134333
134334
134335
# File 'ext/ctp/ctp.cxx', line 134308

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

#ParticipantID=(*args) ⇒ Object



134278
134279
134280
134281
134282
134283
134284
134285
134286
134287
134288
134289
134290
134291
134292
134293
134294
134295
134296
134297
134298
134299
134300
134301
134302
134303
134304
134305
# File 'ext/ctp/ctp.cxx', line 134278

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

#Token(*args) ⇒ Object



134481
134482
134483
134484
134485
134486
134487
134488
134489
134490
134491
134492
134493
134494
134495
134496
134497
134498
134499
134500
134501
134502
134503
134504
134505
134506
134507
134508
# File 'ext/ctp/ctp.cxx', line 134481

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

#Token=(*args) ⇒ Object



134451
134452
134453
134454
134455
134456
134457
134458
134459
134460
134461
134462
134463
134464
134465
134466
134467
134468
134469
134470
134471
134472
134473
134474
134475
134476
134477
134478
# File 'ext/ctp/ctp.cxx', line 134451

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