Class: Ctp::CThostFtdcVerifyFuturePasswordAndCustInfoField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcVerifyFuturePasswordAndCustInfoField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #AccountID(*args) ⇒ Object
- #AccountID=(*args) ⇒ Object
- #CurrencyID(*args) ⇒ Object
- #CurrencyID=(*args) ⇒ Object
- #CustomerName(*args) ⇒ Object
- #CustomerName=(*args) ⇒ Object
- #CustType(*args) ⇒ Object
- #CustType=(*args) ⇒ Object
- #IdCardType(*args) ⇒ Object
- #IdCardType=(*args) ⇒ Object
- #IdentifiedCardNo(*args) ⇒ Object
- #IdentifiedCardNo=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #Password(*args) ⇒ Object
- #Password=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
168559 168560 168561 168562 168563 168564 168565 168566 168567 168568 168569 168570 168571 168572 |
# File 'ext/ctp/ctp.cxx', line 168559
SWIGINTERN VALUE
_wrap_new_CThostFtdcVerifyFuturePasswordAndCustInfoField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcVerifyFuturePasswordAndCustInfoField";
CThostFtdcVerifyFuturePasswordAndCustInfoField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcVerifyFuturePasswordAndCustInfoField *)new CThostFtdcVerifyFuturePasswordAndCustInfoField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#AccountID(*args) ⇒ Object
168394 168395 168396 168397 168398 168399 168400 168401 168402 168403 168404 168405 168406 168407 168408 168409 168410 168411 168412 168413 168414 168415 168416 168417 168418 168419 168420 168421 |
# File 'ext/ctp/ctp.cxx', line 168394
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_AccountID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","AccountID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(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
168364 168365 168366 168367 168368 168369 168370 168371 168372 168373 168374 168375 168376 168377 168378 168379 168380 168381 168382 168383 168384 168385 168386 168387 168388 168389 168390 168391 |
# File 'ext/ctp/ctp.cxx', line 168364
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_AccountID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","AccountID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(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;
}
|
#CurrencyID(*args) ⇒ Object
168514 168515 168516 168517 168518 168519 168520 168521 168522 168523 168524 168525 168526 168527 168528 168529 168530 168531 168532 168533 168534 168535 168536 168537 168538 168539 168540 168541 |
# File 'ext/ctp/ctp.cxx', line 168514
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
result = (char *) ((arg1)->CurrencyID);
{
size_t size = SWIG_strnlen(result, 4);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CurrencyID=(*args) ⇒ Object
168484 168485 168486 168487 168488 168489 168490 168491 168492 168493 168494 168495 168496 168497 168498 168499 168500 168501 168502 168503 168504 168505 168506 168507 168508 168509 168510 168511 |
# File 'ext/ctp/ctp.cxx', line 168484
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[4] ;
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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char));
else memset(arg1->CurrencyID,0,4*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CustomerName(*args) ⇒ Object
168168 168169 168170 168171 168172 168173 168174 168175 168176 168177 168178 168179 168180 168181 168182 168183 168184 168185 168186 168187 168188 168189 168190 168191 168192 168193 168194 168195 |
# File 'ext/ctp/ctp.cxx', line 168168
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustomerName_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CustomerName", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
result = (char *) ((arg1)->CustomerName);
{
size_t size = SWIG_strnlen(result, 51);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CustomerName=(*args) ⇒ Object
168138 168139 168140 168141 168142 168143 168144 168145 168146 168147 168148 168149 168150 168151 168152 168153 168154 168155 168156 168157 168158 168159 168160 168161 168162 168163 168164 168165 |
# File 'ext/ctp/ctp.cxx', line 168138
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustomerName_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[51] ;
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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CustomerName", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 51);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char));
else memset(arg1->CustomerName,0,51*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CustType(*args) ⇒ Object
168340 168341 168342 168343 168344 168345 168346 168347 168348 168349 168350 168351 168352 168353 168354 168355 168356 168357 168358 168359 168360 168361 |
# File 'ext/ctp/ctp.cxx', line 168340
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcCustTypeType 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CustType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
result = (TThostFtdcCustTypeType) ((arg1)->CustType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#CustType=(*args) ⇒ Object
168311 168312 168313 168314 168315 168316 168317 168318 168319 168320 168321 168322 168323 168324 168325 168326 168327 168328 168329 168330 168331 168332 168333 168334 168335 168336 168337 |
# File 'ext/ctp/ctp.cxx', line 168311
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_CustType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ;
TThostFtdcCustTypeType 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","CustType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcCustTypeType >(val2);
if (arg1) (arg1)->CustType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#IdCardType(*args) ⇒ Object
168227 168228 168229 168230 168231 168232 168233 168234 168235 168236 168237 168238 168239 168240 168241 168242 168243 168244 168245 168246 168247 168248 |
# File 'ext/ctp/ctp.cxx', line 168227
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdCardType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcIdCardTypeType 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","IdCardType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#IdCardType=(*args) ⇒ Object
168198 168199 168200 168201 168202 168203 168204 168205 168206 168207 168208 168209 168210 168211 168212 168213 168214 168215 168216 168217 168218 168219 168220 168221 168222 168223 168224 |
# File 'ext/ctp/ctp.cxx', line 168198
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdCardType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ;
TThostFtdcIdCardTypeType 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","IdCardType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcIdCardTypeType >(val2);
if (arg1) (arg1)->IdCardType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#IdentifiedCardNo(*args) ⇒ Object
168281 168282 168283 168284 168285 168286 168287 168288 168289 168290 168291 168292 168293 168294 168295 168296 168297 168298 168299 168300 168301 168302 168303 168304 168305 168306 168307 168308 |
# File 'ext/ctp/ctp.cxx', line 168281
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","IdentifiedCardNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
result = (char *) ((arg1)->IdentifiedCardNo);
{
size_t size = SWIG_strnlen(result, 51);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#IdentifiedCardNo=(*args) ⇒ Object
168251 168252 168253 168254 168255 168256 168257 168258 168259 168260 168261 168262 168263 168264 168265 168266 168267 168268 168269 168270 168271 168272 168273 168274 168275 168276 168277 168278 |
# File 'ext/ctp/ctp.cxx', line 168251
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[51] ;
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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","IdentifiedCardNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 51);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char));
else memset(arg1->IdentifiedCardNo,0,51*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#Password(*args) ⇒ Object
168454 168455 168456 168457 168458 168459 168460 168461 168462 168463 168464 168465 168466 168467 168468 168469 168470 168471 168472 168473 168474 168475 168476 168477 168478 168479 168480 168481 |
# File 'ext/ctp/ctp.cxx', line 168454
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_Password_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","Password", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
result = (char *) ((arg1)->Password);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#Password=(*args) ⇒ Object
168424 168425 168426 168427 168428 168429 168430 168431 168432 168433 168434 168435 168436 168437 168438 168439 168440 168441 168442 168443 168444 168445 168446 168447 168448 168449 168450 168451 |
# File 'ext/ctp/ctp.cxx', line 168424
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyFuturePasswordAndCustInfoField_Password_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyFuturePasswordAndCustInfoField *arg1 = (CThostFtdcVerifyFuturePasswordAndCustInfoField *) 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_CThostFtdcVerifyFuturePasswordAndCustInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyFuturePasswordAndCustInfoField *","Password", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyFuturePasswordAndCustInfoField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char));
else memset(arg1->Password,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|