Class: Ctp::CThostFtdcVerifyInvestorPasswordField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcVerifyInvestorPasswordField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #Password(*args) ⇒ Object
- #Password=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
117819 117820 117821 117822 117823 117824 117825 117826 117827 117828 117829 117830 117831 117832 |
# File 'ext/ctp/ctp.cxx', line 117819
SWIGINTERN VALUE
_wrap_new_CThostFtdcVerifyInvestorPasswordField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcVerifyInvestorPasswordField";
CThostFtdcVerifyInvestorPasswordField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcVerifyInvestorPasswordField *)new CThostFtdcVerifyInvestorPasswordField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
117654 117655 117656 117657 117658 117659 117660 117661 117662 117663 117664 117665 117666 117667 117668 117669 117670 117671 117672 117673 117674 117675 117676 117677 117678 117679 117680 117681 |
# File 'ext/ctp/ctp.cxx', line 117654
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyInvestorPasswordField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(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
117624 117625 117626 117627 117628 117629 117630 117631 117632 117633 117634 117635 117636 117637 117638 117639 117640 117641 117642 117643 117644 117645 117646 117647 117648 117649 117650 117651 |
# File 'ext/ctp/ctp.cxx', line 117624
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyInvestorPasswordField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(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;
}
|
#InvestorID(*args) ⇒ Object
117714 117715 117716 117717 117718 117719 117720 117721 117722 117723 117724 117725 117726 117727 117728 117729 117730 117731 117732 117733 117734 117735 117736 117737 117738 117739 117740 117741 |
# File 'ext/ctp/ctp.cxx', line 117714
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyInvestorPasswordField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(argp1);
result = (char *) ((arg1)->InvestorID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InvestorID=(*args) ⇒ Object
117684 117685 117686 117687 117688 117689 117690 117691 117692 117693 117694 117695 117696 117697 117698 117699 117700 117701 117702 117703 117704 117705 117706 117707 117708 117709 117710 117711 |
# File 'ext/ctp/ctp.cxx', line 117684
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyInvestorPasswordField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char));
else memset(arg1->InvestorID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#Password(*args) ⇒ Object
117774 117775 117776 117777 117778 117779 117780 117781 117782 117783 117784 117785 117786 117787 117788 117789 117790 117791 117792 117793 117794 117795 117796 117797 117798 117799 117800 117801 |
# File 'ext/ctp/ctp.cxx', line 117774
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyInvestorPasswordField_Password_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","Password", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(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
117744 117745 117746 117747 117748 117749 117750 117751 117752 117753 117754 117755 117756 117757 117758 117759 117760 117761 117762 117763 117764 117765 117766 117767 117768 117769 117770 117771 |
# File 'ext/ctp/ctp.cxx', line 117744
SWIGINTERN VALUE
_wrap_CThostFtdcVerifyInvestorPasswordField_Password_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcVerifyInvestorPasswordField *arg1 = (CThostFtdcVerifyInvestorPasswordField *) 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_CThostFtdcVerifyInvestorPasswordField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcVerifyInvestorPasswordField *","Password", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcVerifyInvestorPasswordField * >(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;
}
|