Class: Ctp::CThostFtdcTransferBankField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcTransferBankField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BankBrchID(*args) ⇒ Object
- #BankBrchID=(*args) ⇒ Object
- #BankID(*args) ⇒ Object
- #BankID=(*args) ⇒ Object
- #BankName(*args) ⇒ Object
- #BankName=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #IsActive(*args) ⇒ Object
- #IsActive=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
103581 103582 103583 103584 103585 103586 103587 103588 103589 103590 103591 103592 103593 103594 |
# File 'ext/ctp/ctp.cxx', line 103581
SWIGINTERN VALUE
_wrap_new_CThostFtdcTransferBankField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcTransferBankField";
CThostFtdcTransferBankField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcTransferBankField *)new CThostFtdcTransferBankField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BankBrchID(*args) ⇒ Object
103423 103424 103425 103426 103427 103428 103429 103430 103431 103432 103433 103434 103435 103436 103437 103438 103439 103440 103441 103442 103443 103444 103445 103446 103447 103448 103449 103450 |
# File 'ext/ctp/ctp.cxx', line 103423
SWIGINTERN VALUE
_wrap_CThostFtdcTransferBankField_BankBrchID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 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_CThostFtdcTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankBrchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1);
result = (char *) ((arg1)->BankBrchID);
{
size_t size = SWIG_strnlen(result, 5);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankBrchID=(*args) ⇒ Object
103393 103394 103395 103396 103397 103398 103399 103400 103401 103402 103403 103404 103405 103406 103407 103408 103409 103410 103411 103412 103413 103414 103415 103416 103417 103418 103419 103420 |
# File 'ext/ctp/ctp.cxx', line 103393
SWIGINTERN VALUE
_wrap_CThostFtdcTransferBankField_BankBrchID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[5] ;
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_CThostFtdcTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankBrchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 5);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBrchID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankBrchID,arg2,5*sizeof(char));
else memset(arg1->BankBrchID,0,5*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankID(*args) ⇒ Object
103363 103364 103365 103366 103367 103368 103369 103370 103371 103372 103373 103374 103375 103376 103377 103378 103379 103380 103381 103382 103383 103384 103385 103386 103387 103388 103389 103390 |
# File 'ext/ctp/ctp.cxx', line 103363
SWIGINTERN VALUE
_wrap_CThostFtdcTransferBankField_BankID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 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_CThostFtdcTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1);
result = (char *) ((arg1)->BankID);
{
size_t size = SWIG_strnlen(result, 4);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankID=(*args) ⇒ Object
103333 103334 103335 103336 103337 103338 103339 103340 103341 103342 103343 103344 103345 103346 103347 103348 103349 103350 103351 103352 103353 103354 103355 103356 103357 103358 103359 103360 |
# File 'ext/ctp/ctp.cxx', line 103333
SWIGINTERN VALUE
_wrap_CThostFtdcTransferBankField_BankID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 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_CThostFtdcTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char));
else memset(arg1->BankID,0,4*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankName(*args) ⇒ Object
103483 103484 103485 103486 103487 103488 103489 103490 103491 103492 103493 103494 103495 103496 103497 103498 103499 103500 103501 103502 103503 103504 103505 103506 103507 103508 103509 103510 |
# File 'ext/ctp/ctp.cxx', line 103483
SWIGINTERN VALUE
_wrap_CThostFtdcTransferBankField_BankName_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 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_CThostFtdcTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankName", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1);
result = (char *) ((arg1)->BankName);
{
size_t size = SWIG_strnlen(result, 101);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankName=(*args) ⇒ Object
103453 103454 103455 103456 103457 103458 103459 103460 103461 103462 103463 103464 103465 103466 103467 103468 103469 103470 103471 103472 103473 103474 103475 103476 103477 103478 103479 103480 |
# File 'ext/ctp/ctp.cxx', line 103453
SWIGINTERN VALUE
_wrap_CThostFtdcTransferBankField_BankName_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[101] ;
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_CThostFtdcTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","BankName", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 101);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [101]","BankName", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankName,arg2,101*sizeof(char));
else memset(arg1->BankName,0,101*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#IsActive(*args) ⇒ Object
103542 103543 103544 103545 103546 103547 103548 103549 103550 103551 103552 103553 103554 103555 103556 103557 103558 103559 103560 103561 103562 103563 |
# File 'ext/ctp/ctp.cxx', line 103542
SWIGINTERN VALUE
_wrap_CThostFtdcTransferBankField_IsActive_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcBoolType 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_CThostFtdcTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1);
result = (TThostFtdcBoolType) ((arg1)->IsActive);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#IsActive=(*args) ⇒ Object
103513 103514 103515 103516 103517 103518 103519 103520 103521 103522 103523 103524 103525 103526 103527 103528 103529 103530 103531 103532 103533 103534 103535 103536 103537 103538 103539 |
# File 'ext/ctp/ctp.cxx', line 103513
SWIGINTERN VALUE
_wrap_CThostFtdcTransferBankField_IsActive_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTransferBankField *arg1 = (CThostFtdcTransferBankField *) 0 ;
TThostFtdcBoolType 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_CThostFtdcTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTransferBankField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTransferBankField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBoolType >(val2);
if (arg1) (arg1)->IsActive = arg2;
return Qnil;
fail:
return Qnil;
}
|