Class: Ctp::CThostFtdcUserRightsAssignField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcUserRightsAssignField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #DRIdentityID(*args) ⇒ Object
- #DRIdentityID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
189950 189951 189952 189953 189954 189955 189956 189957 189958 189959 189960 189961 189962 189963 |
# File 'ext/ctp/ctp.cxx', line 189950
SWIGINTERN VALUE
_wrap_new_CThostFtdcUserRightsAssignField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcUserRightsAssignField";
CThostFtdcUserRightsAssignField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcUserRightsAssignField *)new CThostFtdcUserRightsAssignField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
189792 189793 189794 189795 189796 189797 189798 189799 189800 189801 189802 189803 189804 189805 189806 189807 189808 189809 189810 189811 189812 189813 189814 189815 189816 189817 189818 189819 |
# File 'ext/ctp/ctp.cxx', line 189792
SWIGINTERN VALUE
_wrap_CThostFtdcUserRightsAssignField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 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_CThostFtdcUserRightsAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(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
189762 189763 189764 189765 189766 189767 189768 189769 189770 189771 189772 189773 189774 189775 189776 189777 189778 189779 189780 189781 189782 189783 189784 189785 189786 189787 189788 189789 |
# File 'ext/ctp/ctp.cxx', line 189762
SWIGINTERN VALUE
_wrap_CThostFtdcUserRightsAssignField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 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_CThostFtdcUserRightsAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(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;
}
|
#DRIdentityID(*args) ⇒ Object
189911 189912 189913 189914 189915 189916 189917 189918 189919 189920 189921 189922 189923 189924 189925 189926 189927 189928 189929 189930 189931 189932 |
# File 'ext/ctp/ctp.cxx', line 189911
SWIGINTERN VALUE
_wrap_CThostFtdcUserRightsAssignField_DRIdentityID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcDRIdentityIDType 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_CThostFtdcUserRightsAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","DRIdentityID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(argp1);
result = (TThostFtdcDRIdentityIDType) ((arg1)->DRIdentityID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#DRIdentityID=(*args) ⇒ Object
189882 189883 189884 189885 189886 189887 189888 189889 189890 189891 189892 189893 189894 189895 189896 189897 189898 189899 189900 189901 189902 189903 189904 189905 189906 189907 189908 |
# File 'ext/ctp/ctp.cxx', line 189882
SWIGINTERN VALUE
_wrap_CThostFtdcUserRightsAssignField_DRIdentityID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 0 ;
TThostFtdcDRIdentityIDType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int 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_CThostFtdcUserRightsAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","DRIdentityID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDRIdentityIDType","DRIdentityID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcDRIdentityIDType >(val2);
if (arg1) (arg1)->DRIdentityID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
189852 189853 189854 189855 189856 189857 189858 189859 189860 189861 189862 189863 189864 189865 189866 189867 189868 189869 189870 189871 189872 189873 189874 189875 189876 189877 189878 189879 |
# File 'ext/ctp/ctp.cxx', line 189852
SWIGINTERN VALUE
_wrap_CThostFtdcUserRightsAssignField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 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_CThostFtdcUserRightsAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(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
189822 189823 189824 189825 189826 189827 189828 189829 189830 189831 189832 189833 189834 189835 189836 189837 189838 189839 189840 189841 189842 189843 189844 189845 189846 189847 189848 189849 |
# File 'ext/ctp/ctp.cxx', line 189822
SWIGINTERN VALUE
_wrap_CThostFtdcUserRightsAssignField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserRightsAssignField *arg1 = (CThostFtdcUserRightsAssignField *) 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_CThostFtdcUserRightsAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserRightsAssignField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserRightsAssignField * >(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;
}
|