Class: Ctp::CThostFtdcUserPasswordUpdateField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcUserPasswordUpdateField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #NewPassword(*args) ⇒ Object
- #NewPassword=(*args) ⇒ Object
- #OldPassword(*args) ⇒ Object
- #OldPassword=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
32906 32907 32908 32909 32910 32911 32912 32913 32914 32915 32916 32917 32918 32919 |
# File 'ext/ctp/ctp.cxx', line 32906
SWIGINTERN VALUE
_wrap_new_CThostFtdcUserPasswordUpdateField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcUserPasswordUpdateField";
CThostFtdcUserPasswordUpdateField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcUserPasswordUpdateField *)new CThostFtdcUserPasswordUpdateField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
32681 32682 32683 32684 32685 32686 32687 32688 32689 32690 32691 32692 32693 32694 32695 32696 32697 32698 32699 32700 32701 32702 32703 32704 32705 32706 32707 32708 |
# File 'ext/ctp/ctp.cxx', line 32681
SWIGINTERN VALUE
_wrap_CThostFtdcUserPasswordUpdateField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(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
32651 32652 32653 32654 32655 32656 32657 32658 32659 32660 32661 32662 32663 32664 32665 32666 32667 32668 32669 32670 32671 32672 32673 32674 32675 32676 32677 32678 |
# File 'ext/ctp/ctp.cxx', line 32651
SWIGINTERN VALUE
_wrap_CThostFtdcUserPasswordUpdateField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(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;
}
|
#NewPassword(*args) ⇒ Object
32861 32862 32863 32864 32865 32866 32867 32868 32869 32870 32871 32872 32873 32874 32875 32876 32877 32878 32879 32880 32881 32882 32883 32884 32885 32886 32887 32888 |
# File 'ext/ctp/ctp.cxx', line 32861
SWIGINTERN VALUE
_wrap_CThostFtdcUserPasswordUpdateField_NewPassword_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","NewPassword", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1);
result = (char *) ((arg1)->NewPassword);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#NewPassword=(*args) ⇒ Object
32831 32832 32833 32834 32835 32836 32837 32838 32839 32840 32841 32842 32843 32844 32845 32846 32847 32848 32849 32850 32851 32852 32853 32854 32855 32856 32857 32858 |
# File 'ext/ctp/ctp.cxx', line 32831
SWIGINTERN VALUE
_wrap_CThostFtdcUserPasswordUpdateField_NewPassword_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","NewPassword", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","NewPassword", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->NewPassword,arg2,41*sizeof(char));
else memset(arg1->NewPassword,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#OldPassword(*args) ⇒ Object
32801 32802 32803 32804 32805 32806 32807 32808 32809 32810 32811 32812 32813 32814 32815 32816 32817 32818 32819 32820 32821 32822 32823 32824 32825 32826 32827 32828 |
# File 'ext/ctp/ctp.cxx', line 32801
SWIGINTERN VALUE
_wrap_CThostFtdcUserPasswordUpdateField_OldPassword_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","OldPassword", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1);
result = (char *) ((arg1)->OldPassword);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#OldPassword=(*args) ⇒ Object
32771 32772 32773 32774 32775 32776 32777 32778 32779 32780 32781 32782 32783 32784 32785 32786 32787 32788 32789 32790 32791 32792 32793 32794 32795 32796 32797 32798 |
# File 'ext/ctp/ctp.cxx', line 32771
SWIGINTERN VALUE
_wrap_CThostFtdcUserPasswordUpdateField_OldPassword_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","OldPassword", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","OldPassword", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->OldPassword,arg2,41*sizeof(char));
else memset(arg1->OldPassword,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
32741 32742 32743 32744 32745 32746 32747 32748 32749 32750 32751 32752 32753 32754 32755 32756 32757 32758 32759 32760 32761 32762 32763 32764 32765 32766 32767 32768 |
# File 'ext/ctp/ctp.cxx', line 32741
SWIGINTERN VALUE
_wrap_CThostFtdcUserPasswordUpdateField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(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
32711 32712 32713 32714 32715 32716 32717 32718 32719 32720 32721 32722 32723 32724 32725 32726 32727 32728 32729 32730 32731 32732 32733 32734 32735 32736 32737 32738 |
# File 'ext/ctp/ctp.cxx', line 32711
SWIGINTERN VALUE
_wrap_CThostFtdcUserPasswordUpdateField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserPasswordUpdateField *arg1 = (CThostFtdcUserPasswordUpdateField *) 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_CThostFtdcUserPasswordUpdateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(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;
}
|