Class: Ctp::CThostFtdcUserIPField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcUserIPField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #IPAddress(*args) ⇒ Object
- #IPAddress=(*args) ⇒ Object
- #IPMask(*args) ⇒ Object
- #IPMask=(*args) ⇒ Object
- #MacAddress(*args) ⇒ Object
- #MacAddress=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
118158 118159 118160 118161 118162 118163 118164 118165 118166 118167 118168 118169 118170 118171 |
# File 'ext/ctp/ctp.cxx', line 118158
SWIGINTERN VALUE
_wrap_new_CThostFtdcUserIPField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcUserIPField";
CThostFtdcUserIPField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcUserIPField *)new CThostFtdcUserIPField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
117873 117874 117875 117876 117877 117878 117879 117880 117881 117882 117883 117884 117885 117886 117887 117888 117889 117890 117891 117892 117893 117894 117895 117896 117897 117898 117899 117900 |
# File 'ext/ctp/ctp.cxx', line 117873
SWIGINTERN VALUE
_wrap_CThostFtdcUserIPField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserIPField * >(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
117843 117844 117845 117846 117847 117848 117849 117850 117851 117852 117853 117854 117855 117856 117857 117858 117859 117860 117861 117862 117863 117864 117865 117866 117867 117868 117869 117870 |
# File 'ext/ctp/ctp.cxx', line 117843
SWIGINTERN VALUE
_wrap_CThostFtdcUserIPField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserIPField * >(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;
}
|
#IPAddress(*args) ⇒ Object
117993 117994 117995 117996 117997 117998 117999 118000 118001 118002 118003 118004 118005 118006 118007 118008 118009 118010 118011 118012 118013 118014 118015 118016 118017 118018 118019 118020 |
# File 'ext/ctp/ctp.cxx', line 117993
SWIGINTERN VALUE
_wrap_CThostFtdcUserIPField_IPAddress_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","IPAddress", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1);
result = (char *) ((arg1)->IPAddress);
{
size_t size = SWIG_strnlen(result, 16);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#IPAddress=(*args) ⇒ Object
117963 117964 117965 117966 117967 117968 117969 117970 117971 117972 117973 117974 117975 117976 117977 117978 117979 117980 117981 117982 117983 117984 117985 117986 117987 117988 117989 117990 |
# File 'ext/ctp/ctp.cxx', line 117963
SWIGINTERN VALUE
_wrap_CThostFtdcUserIPField_IPAddress_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","IPAddress", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 16);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","IPAddress", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->IPAddress,arg2,16*sizeof(char));
else memset(arg1->IPAddress,0,16*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#IPMask(*args) ⇒ Object
118053 118054 118055 118056 118057 118058 118059 118060 118061 118062 118063 118064 118065 118066 118067 118068 118069 118070 118071 118072 118073 118074 118075 118076 118077 118078 118079 118080 |
# File 'ext/ctp/ctp.cxx', line 118053
SWIGINTERN VALUE
_wrap_CThostFtdcUserIPField_IPMask_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","IPMask", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1);
result = (char *) ((arg1)->IPMask);
{
size_t size = SWIG_strnlen(result, 16);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#IPMask=(*args) ⇒ Object
118023 118024 118025 118026 118027 118028 118029 118030 118031 118032 118033 118034 118035 118036 118037 118038 118039 118040 118041 118042 118043 118044 118045 118046 118047 118048 118049 118050 |
# File 'ext/ctp/ctp.cxx', line 118023
SWIGINTERN VALUE
_wrap_CThostFtdcUserIPField_IPMask_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","IPMask", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 16);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","IPMask", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->IPMask,arg2,16*sizeof(char));
else memset(arg1->IPMask,0,16*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#MacAddress(*args) ⇒ Object
118113 118114 118115 118116 118117 118118 118119 118120 118121 118122 118123 118124 118125 118126 118127 118128 118129 118130 118131 118132 118133 118134 118135 118136 118137 118138 118139 118140 |
# File 'ext/ctp/ctp.cxx', line 118113
SWIGINTERN VALUE
_wrap_CThostFtdcUserIPField_MacAddress_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","MacAddress", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1);
result = (char *) ((arg1)->MacAddress);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#MacAddress=(*args) ⇒ Object
118083 118084 118085 118086 118087 118088 118089 118090 118091 118092 118093 118094 118095 118096 118097 118098 118099 118100 118101 118102 118103 118104 118105 118106 118107 118108 118109 118110 |
# File 'ext/ctp/ctp.cxx', line 118083
SWIGINTERN VALUE
_wrap_CThostFtdcUserIPField_MacAddress_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[21] ;
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_CThostFtdcUserIPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","MacAddress", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserIPField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","MacAddress", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->MacAddress,arg2,21*sizeof(char));
else memset(arg1->MacAddress,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
117933 117934 117935 117936 117937 117938 117939 117940 117941 117942 117943 117944 117945 117946 117947 117948 117949 117950 117951 117952 117953 117954 117955 117956 117957 117958 117959 117960 |
# File 'ext/ctp/ctp.cxx', line 117933
SWIGINTERN VALUE
_wrap_CThostFtdcUserIPField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserIPField * >(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
117903 117904 117905 117906 117907 117908 117909 117910 117911 117912 117913 117914 117915 117916 117917 117918 117919 117920 117921 117922 117923 117924 117925 117926 117927 117928 117929 117930 |
# File 'ext/ctp/ctp.cxx', line 117903
SWIGINTERN VALUE
_wrap_CThostFtdcUserIPField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcUserIPField *arg1 = (CThostFtdcUserIPField *) 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_CThostFtdcUserIPField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcUserIPField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcUserIPField * >(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;
}
|