Class: Ctp::CThostFtdcQryInstrumentStatusField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryInstrumentStatusField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #ExchangeInstID(*args) ⇒ Object
- #ExchangeInstID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
Constructor Details
#initialize(*args) ⇒ Object
102274 102275 102276 102277 102278 102279 102280 102281 102282 102283 102284 102285 102286 102287 |
# File 'ext/ctp/ctp.cxx', line 102274 SWIGINTERN VALUE _wrap_new_CThostFtdcQryInstrumentStatusField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInstrumentStatusField"; CThostFtdcQryInstrumentStatusField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryInstrumentStatusField *)new CThostFtdcQryInstrumentStatusField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#ExchangeID(*args) ⇒ Object
102169 102170 102171 102172 102173 102174 102175 102176 102177 102178 102179 102180 102181 102182 102183 102184 102185 102186 102187 102188 102189 102190 102191 102192 102193 102194 102195 102196 |
# File 'ext/ctp/ctp.cxx', line 102169 SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentStatusField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentStatusField *arg1 = (CThostFtdcQryInstrumentStatusField *) 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_CThostFtdcQryInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentStatusField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentStatusField * >(argp1); result = (char *) ((arg1)->ExchangeID); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ExchangeID=(*args) ⇒ Object
102139 102140 102141 102142 102143 102144 102145 102146 102147 102148 102149 102150 102151 102152 102153 102154 102155 102156 102157 102158 102159 102160 102161 102162 102163 102164 102165 102166 |
# File 'ext/ctp/ctp.cxx', line 102139 SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentStatusField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentStatusField *arg1 = (CThostFtdcQryInstrumentStatusField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[9] ; 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_CThostFtdcQryInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentStatusField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentStatusField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ExchangeID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExchangeID,arg2,9*sizeof(char)); else memset(arg1->ExchangeID,0,9*sizeof(char)); return Qnil; fail: return Qnil; } |
#ExchangeInstID(*args) ⇒ Object
102229 102230 102231 102232 102233 102234 102235 102236 102237 102238 102239 102240 102241 102242 102243 102244 102245 102246 102247 102248 102249 102250 102251 102252 102253 102254 102255 102256 |
# File 'ext/ctp/ctp.cxx', line 102229 SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentStatusField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentStatusField *arg1 = (CThostFtdcQryInstrumentStatusField *) 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_CThostFtdcQryInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentStatusField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentStatusField * >(argp1); result = (char *) ((arg1)->ExchangeInstID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ExchangeInstID=(*args) ⇒ Object
102199 102200 102201 102202 102203 102204 102205 102206 102207 102208 102209 102210 102211 102212 102213 102214 102215 102216 102217 102218 102219 102220 102221 102222 102223 102224 102225 102226 |
# File 'ext/ctp/ctp.cxx', line 102199 SWIGINTERN VALUE _wrap_CThostFtdcQryInstrumentStatusField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryInstrumentStatusField *arg1 = (CThostFtdcQryInstrumentStatusField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[31] ; 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_CThostFtdcQryInstrumentStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentStatusField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryInstrumentStatusField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ExchangeInstID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExchangeInstID,arg2,31*sizeof(char)); else memset(arg1->ExchangeInstID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } |