Class: Ctp::CThostFtdcManualSyncBrokerUserOTPField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcManualSyncBrokerUserOTPField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #FirstOTP(*args) ⇒ Object
- #FirstOTP=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #OTPType(*args) ⇒ Object
- #OTPType=(*args) ⇒ Object
- #SecondOTP(*args) ⇒ Object
- #SecondOTP=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
130732 130733 130734 130735 130736 130737 130738 130739 130740 130741 130742 130743 130744 130745 |
# File 'ext/ctp/ctp.cxx', line 130732
SWIGINTERN VALUE
_wrap_new_CThostFtdcManualSyncBrokerUserOTPField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcManualSyncBrokerUserOTPField";
CThostFtdcManualSyncBrokerUserOTPField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcManualSyncBrokerUserOTPField *)new CThostFtdcManualSyncBrokerUserOTPField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
130454 130455 130456 130457 130458 130459 130460 130461 130462 130463 130464 130465 130466 130467 130468 130469 130470 130471 130472 130473 130474 130475 130476 130477 130478 130479 130480 130481 |
# File 'ext/ctp/ctp.cxx', line 130454
SWIGINTERN VALUE
_wrap_CThostFtdcManualSyncBrokerUserOTPField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(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
130424 130425 130426 130427 130428 130429 130430 130431 130432 130433 130434 130435 130436 130437 130438 130439 130440 130441 130442 130443 130444 130445 130446 130447 130448 130449 130450 130451 |
# File 'ext/ctp/ctp.cxx', line 130424
SWIGINTERN VALUE
_wrap_CThostFtdcManualSyncBrokerUserOTPField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(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;
}
|
#FirstOTP(*args) ⇒ Object
130627 130628 130629 130630 130631 130632 130633 130634 130635 130636 130637 130638 130639 130640 130641 130642 130643 130644 130645 130646 130647 130648 130649 130650 130651 130652 130653 130654 |
# File 'ext/ctp/ctp.cxx', line 130627
SWIGINTERN VALUE
_wrap_CThostFtdcManualSyncBrokerUserOTPField_FirstOTP_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","FirstOTP", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1);
result = (char *) ((arg1)->FirstOTP);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#FirstOTP=(*args) ⇒ Object
130597 130598 130599 130600 130601 130602 130603 130604 130605 130606 130607 130608 130609 130610 130611 130612 130613 130614 130615 130616 130617 130618 130619 130620 130621 130622 130623 130624 |
# File 'ext/ctp/ctp.cxx', line 130597
SWIGINTERN VALUE
_wrap_CThostFtdcManualSyncBrokerUserOTPField_FirstOTP_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","FirstOTP", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","FirstOTP", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->FirstOTP,arg2,41*sizeof(char));
else memset(arg1->FirstOTP,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#OTPType(*args) ⇒ Object
130573 130574 130575 130576 130577 130578 130579 130580 130581 130582 130583 130584 130585 130586 130587 130588 130589 130590 130591 130592 130593 130594 |
# File 'ext/ctp/ctp.cxx', line 130573
SWIGINTERN VALUE
_wrap_CThostFtdcManualSyncBrokerUserOTPField_OTPType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","OTPType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1);
result = (TThostFtdcOTPTypeType) ((arg1)->OTPType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#OTPType=(*args) ⇒ Object
130544 130545 130546 130547 130548 130549 130550 130551 130552 130553 130554 130555 130556 130557 130558 130559 130560 130561 130562 130563 130564 130565 130566 130567 130568 130569 130570 |
# File 'ext/ctp/ctp.cxx', line 130544
SWIGINTERN VALUE
_wrap_CThostFtdcManualSyncBrokerUserOTPField_OTPType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","OTPType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(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;
}
|
#SecondOTP(*args) ⇒ Object
130687 130688 130689 130690 130691 130692 130693 130694 130695 130696 130697 130698 130699 130700 130701 130702 130703 130704 130705 130706 130707 130708 130709 130710 130711 130712 130713 130714 |
# File 'ext/ctp/ctp.cxx', line 130687
SWIGINTERN VALUE
_wrap_CThostFtdcManualSyncBrokerUserOTPField_SecondOTP_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","SecondOTP", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1);
result = (char *) ((arg1)->SecondOTP);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#SecondOTP=(*args) ⇒ Object
130657 130658 130659 130660 130661 130662 130663 130664 130665 130666 130667 130668 130669 130670 130671 130672 130673 130674 130675 130676 130677 130678 130679 130680 130681 130682 130683 130684 |
# File 'ext/ctp/ctp.cxx', line 130657
SWIGINTERN VALUE
_wrap_CThostFtdcManualSyncBrokerUserOTPField_SecondOTP_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","SecondOTP", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","SecondOTP", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->SecondOTP,arg2,41*sizeof(char));
else memset(arg1->SecondOTP,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
130514 130515 130516 130517 130518 130519 130520 130521 130522 130523 130524 130525 130526 130527 130528 130529 130530 130531 130532 130533 130534 130535 130536 130537 130538 130539 130540 130541 |
# File 'ext/ctp/ctp.cxx', line 130514
SWIGINTERN VALUE
_wrap_CThostFtdcManualSyncBrokerUserOTPField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(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
130484 130485 130486 130487 130488 130489 130490 130491 130492 130493 130494 130495 130496 130497 130498 130499 130500 130501 130502 130503 130504 130505 130506 130507 130508 130509 130510 130511 |
# File 'ext/ctp/ctp.cxx', line 130484
SWIGINTERN VALUE
_wrap_CThostFtdcManualSyncBrokerUserOTPField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcManualSyncBrokerUserOTPField *arg1 = (CThostFtdcManualSyncBrokerUserOTPField *) 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_CThostFtdcManualSyncBrokerUserOTPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcManualSyncBrokerUserOTPField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcManualSyncBrokerUserOTPField * >(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;
}
|