Class: Ctp::CThostFtdcBrokerUserOTPParamField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



130400
130401
130402
130403
130404
130405
130406
130407
130408
130409
130410
130411
130412
130413
# File 'ext/ctp/ctp.cxx', line 130400

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

Instance Method Details

#AuthKey(*args) ⇒ Object



130196
130197
130198
130199
130200
130201
130202
130203
130204
130205
130206
130207
130208
130209
130210
130211
130212
130213
130214
130215
130216
130217
130218
130219
130220
130221
130222
130223
# File 'ext/ctp/ctp.cxx', line 130196

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

#AuthKey=(*args) ⇒ Object



130166
130167
130168
130169
130170
130171
130172
130173
130174
130175
130176
130177
130178
130179
130180
130181
130182
130183
130184
130185
130186
130187
130188
130189
130190
130191
130192
130193
# File 'ext/ctp/ctp.cxx', line 130166

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

#BrokerID(*args) ⇒ Object



129956
129957
129958
129959
129960
129961
129962
129963
129964
129965
129966
129967
129968
129969
129970
129971
129972
129973
129974
129975
129976
129977
129978
129979
129980
129981
129982
129983
# File 'ext/ctp/ctp.cxx', line 129956

SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserOTPParamField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 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_CThostFtdcBrokerUserOTPParamField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","BrokerID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(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



129926
129927
129928
129929
129930
129931
129932
129933
129934
129935
129936
129937
129938
129939
129940
129941
129942
129943
129944
129945
129946
129947
129948
129949
129950
129951
129952
129953
# File 'ext/ctp/ctp.cxx', line 129926

SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserOTPParamField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 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_CThostFtdcBrokerUserOTPParamField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","BrokerID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(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;
}

#LastDrift(*args) ⇒ Object



130255
130256
130257
130258
130259
130260
130261
130262
130263
130264
130265
130266
130267
130268
130269
130270
130271
130272
130273
130274
130275
130276
# File 'ext/ctp/ctp.cxx', line 130255

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

#LastDrift=(*args) ⇒ Object



130226
130227
130228
130229
130230
130231
130232
130233
130234
130235
130236
130237
130238
130239
130240
130241
130242
130243
130244
130245
130246
130247
130248
130249
130250
130251
130252
# File 'ext/ctp/ctp.cxx', line 130226

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

#LastSuccess(*args) ⇒ Object



130308
130309
130310
130311
130312
130313
130314
130315
130316
130317
130318
130319
130320
130321
130322
130323
130324
130325
130326
130327
130328
130329
# File 'ext/ctp/ctp.cxx', line 130308

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

#LastSuccess=(*args) ⇒ Object



130279
130280
130281
130282
130283
130284
130285
130286
130287
130288
130289
130290
130291
130292
130293
130294
130295
130296
130297
130298
130299
130300
130301
130302
130303
130304
130305
# File 'ext/ctp/ctp.cxx', line 130279

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

#OTPType(*args) ⇒ Object



130361
130362
130363
130364
130365
130366
130367
130368
130369
130370
130371
130372
130373
130374
130375
130376
130377
130378
130379
130380
130381
130382
# File 'ext/ctp/ctp.cxx', line 130361

SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserOTPParamField_OTPType_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcOTPTypeType 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_CThostFtdcBrokerUserOTPParamField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","OTPType", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1);
  result = (TThostFtdcOTPTypeType) ((arg1)->OTPType);
  vresult = SWIG_From_char(static_cast< char >(result));
  return vresult;
fail:
  return Qnil;
}

#OTPType=(*args) ⇒ Object



130332
130333
130334
130335
130336
130337
130338
130339
130340
130341
130342
130343
130344
130345
130346
130347
130348
130349
130350
130351
130352
130353
130354
130355
130356
130357
130358
# File 'ext/ctp/ctp.cxx', line 130332

SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserOTPParamField_OTPType_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcBrokerUserOTPParamField *arg1 = (CThostFtdcBrokerUserOTPParamField *) 0 ;
  TThostFtdcOTPTypeType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char 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_CThostFtdcBrokerUserOTPParamField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserOTPParamField *","OTPType", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcBrokerUserOTPParamField * >(argp1);
  ecode2 = SWIG_AsVal_char(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOTPTypeType","OTPType", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcOTPTypeType >(val2);
  if (arg1) (arg1)->OTPType = arg2;
  return Qnil;
fail:
  return Qnil;
}

#OTPVendorsID(*args) ⇒ Object



130076
130077
130078
130079
130080
130081
130082
130083
130084
130085
130086
130087
130088
130089
130090
130091
130092
130093
130094
130095
130096
130097
130098
130099
130100
130101
130102
130103
# File 'ext/ctp/ctp.cxx', line 130076

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

#OTPVendorsID=(*args) ⇒ Object



130046
130047
130048
130049
130050
130051
130052
130053
130054
130055
130056
130057
130058
130059
130060
130061
130062
130063
130064
130065
130066
130067
130068
130069
130070
130071
130072
130073
# File 'ext/ctp/ctp.cxx', line 130046

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

#SerialNumber(*args) ⇒ Object



130136
130137
130138
130139
130140
130141
130142
130143
130144
130145
130146
130147
130148
130149
130150
130151
130152
130153
130154
130155
130156
130157
130158
130159
130160
130161
130162
130163
# File 'ext/ctp/ctp.cxx', line 130136

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

#SerialNumber=(*args) ⇒ Object



130106
130107
130108
130109
130110
130111
130112
130113
130114
130115
130116
130117
130118
130119
130120
130121
130122
130123
130124
130125
130126
130127
130128
130129
130130
130131
130132
130133
# File 'ext/ctp/ctp.cxx', line 130106

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

#UserID(*args) ⇒ Object



130016
130017
130018
130019
130020
130021
130022
130023
130024
130025
130026
130027
130028
130029
130030
130031
130032
130033
130034
130035
130036
130037
130038
130039
130040
130041
130042
130043
# File 'ext/ctp/ctp.cxx', line 130016

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

#UserID=(*args) ⇒ Object



129986
129987
129988
129989
129990
129991
129992
129993
129994
129995
129996
129997
129998
129999
130000
130001
130002
130003
130004
130005
130006
130007
130008
130009
130010
130011
130012
130013
# File 'ext/ctp/ctp.cxx', line 129986

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