Class: Ctp::CThostFtdcNoticeField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcNoticeField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #Content(*args) ⇒ Object
- #Content=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #SequenceLabel(*args) ⇒ Object
- #SequenceLabel=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
107254 107255 107256 107257 107258 107259 107260 107261 107262 107263 107264 107265 107266 107267 |
# File 'ext/ctp/ctp.cxx', line 107254 SWIGINTERN VALUE _wrap_new_CThostFtdcNoticeField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcNoticeField"; CThostFtdcNoticeField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcNoticeField *)new CThostFtdcNoticeField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
107089 107090 107091 107092 107093 107094 107095 107096 107097 107098 107099 107100 107101 107102 107103 107104 107105 107106 107107 107108 107109 107110 107111 107112 107113 107114 107115 107116 |
# File 'ext/ctp/ctp.cxx', line 107089 SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(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
107059 107060 107061 107062 107063 107064 107065 107066 107067 107068 107069 107070 107071 107072 107073 107074 107075 107076 107077 107078 107079 107080 107081 107082 107083 107084 107085 107086 |
# File 'ext/ctp/ctp.cxx', line 107059 SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(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; } |
#Content(*args) ⇒ Object
107149 107150 107151 107152 107153 107154 107155 107156 107157 107158 107159 107160 107161 107162 107163 107164 107165 107166 107167 107168 107169 107170 107171 107172 107173 107174 107175 107176 |
# File 'ext/ctp/ctp.cxx', line 107149 SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_Content_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","Content", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(argp1); result = (char *) ((arg1)->Content); { size_t size = SWIG_strnlen(result, 501); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#Content=(*args) ⇒ Object
107119 107120 107121 107122 107123 107124 107125 107126 107127 107128 107129 107130 107131 107132 107133 107134 107135 107136 107137 107138 107139 107140 107141 107142 107143 107144 107145 107146 |
# File 'ext/ctp/ctp.cxx', line 107119 SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_Content_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[501] ; 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","Content", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 501); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [501]","Content", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->Content,arg2,501*sizeof(char)); else memset(arg1->Content,0,501*sizeof(char)); return Qnil; fail: return Qnil; } |
#SequenceLabel(*args) ⇒ Object
107209 107210 107211 107212 107213 107214 107215 107216 107217 107218 107219 107220 107221 107222 107223 107224 107225 107226 107227 107228 107229 107230 107231 107232 107233 107234 107235 107236 |
# File 'ext/ctp/ctp.cxx', line 107209 SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_SequenceLabel_get(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","SequenceLabel", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(argp1); result = (char *) ((arg1)->SequenceLabel); { size_t size = SWIG_strnlen(result, 2); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#SequenceLabel=(*args) ⇒ Object
107179 107180 107181 107182 107183 107184 107185 107186 107187 107188 107189 107190 107191 107192 107193 107194 107195 107196 107197 107198 107199 107200 107201 107202 107203 107204 107205 107206 |
# File 'ext/ctp/ctp.cxx', line 107179 SWIGINTERN VALUE _wrap_CThostFtdcNoticeField_SequenceLabel_set(int argc, VALUE *argv, VALUE self) { CThostFtdcNoticeField *arg1 = (CThostFtdcNoticeField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[2] ; 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_CThostFtdcNoticeField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcNoticeField *","SequenceLabel", 1, self )); } arg1 = reinterpret_cast< CThostFtdcNoticeField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [2]","SequenceLabel", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->SequenceLabel,arg2,2*sizeof(char)); else memset(arg1->SequenceLabel,0,2*sizeof(char)); return Qnil; fail: return Qnil; } |