Class: Ctp::CThostFtdcRspAuthenticateField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcRspAuthenticateField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
- #UserProductInfo(*args) ⇒ Object
- #UserProductInfo=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 |
# File 'ext/ctp/ctp.cxx', line 6791
SWIGINTERN VALUE
_wrap_new_CThostFtdcRspAuthenticateField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspAuthenticateField";
CThostFtdcRspAuthenticateField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcRspAuthenticateField *)new CThostFtdcRspAuthenticateField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 |
# File 'ext/ctp/ctp.cxx', line 6626
SWIGINTERN VALUE
_wrap_CThostFtdcRspAuthenticateField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(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
6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 |
# File 'ext/ctp/ctp.cxx', line 6596
SWIGINTERN VALUE
_wrap_CThostFtdcRspAuthenticateField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(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;
}
|
#UserID(*args) ⇒ Object
6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 |
# File 'ext/ctp/ctp.cxx', line 6686
SWIGINTERN VALUE
_wrap_CThostFtdcRspAuthenticateField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(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
6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 |
# File 'ext/ctp/ctp.cxx', line 6656
SWIGINTERN VALUE
_wrap_CThostFtdcRspAuthenticateField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(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;
}
|
#UserProductInfo(*args) ⇒ Object
6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 |
# File 'ext/ctp/ctp.cxx', line 6746
SWIGINTERN VALUE
_wrap_CThostFtdcRspAuthenticateField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","UserProductInfo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(argp1);
result = (char *) ((arg1)->UserProductInfo);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#UserProductInfo=(*args) ⇒ Object
6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 |
# File 'ext/ctp/ctp.cxx', line 6716
SWIGINTERN VALUE
_wrap_CThostFtdcRspAuthenticateField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspAuthenticateField *arg1 = (CThostFtdcRspAuthenticateField *) 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_CThostFtdcRspAuthenticateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspAuthenticateField *","UserProductInfo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspAuthenticateField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char));
else memset(arg1->UserProductInfo,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|