Class: Ctp::CThostFtdcQrySuperUserField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQrySuperUserField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
61780 61781 61782 61783 61784 61785 61786 61787 61788 61789 61790 61791 61792 61793 |
# File 'ext/ctp/ctp.cxx', line 61780
SWIGINTERN VALUE
_wrap_new_CThostFtdcQrySuperUserField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySuperUserField";
CThostFtdcQrySuperUserField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQrySuperUserField *)new CThostFtdcQrySuperUserField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#UserID(*args) ⇒ Object
61735 61736 61737 61738 61739 61740 61741 61742 61743 61744 61745 61746 61747 61748 61749 61750 61751 61752 61753 61754 61755 61756 61757 61758 61759 61760 61761 61762 |
# File 'ext/ctp/ctp.cxx', line 61735
SWIGINTERN VALUE
_wrap_CThostFtdcQrySuperUserField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQrySuperUserField *arg1 = (CThostFtdcQrySuperUserField *) 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_CThostFtdcQrySuperUserField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySuperUserField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQrySuperUserField * >(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
61705 61706 61707 61708 61709 61710 61711 61712 61713 61714 61715 61716 61717 61718 61719 61720 61721 61722 61723 61724 61725 61726 61727 61728 61729 61730 61731 61732 |
# File 'ext/ctp/ctp.cxx', line 61705
SWIGINTERN VALUE
_wrap_CThostFtdcQrySuperUserField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQrySuperUserField *arg1 = (CThostFtdcQrySuperUserField *) 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_CThostFtdcQrySuperUserField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySuperUserField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQrySuperUserField * >(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;
}
|