Class: Ctp::CThostFtdcQryErrOrderActionField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryErrOrderActionField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
124328 124329 124330 124331 124332 124333 124334 124335 124336 124337 124338 124339 124340 124341 |
# File 'ext/ctp/ctp.cxx', line 124328 SWIGINTERN VALUE _wrap_new_CThostFtdcQryErrOrderActionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryErrOrderActionField"; CThostFtdcQryErrOrderActionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryErrOrderActionField *)new CThostFtdcQryErrOrderActionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
124223 124224 124225 124226 124227 124228 124229 124230 124231 124232 124233 124234 124235 124236 124237 124238 124239 124240 124241 124242 124243 124244 124245 124246 124247 124248 124249 124250 |
# File 'ext/ctp/ctp.cxx', line 124223 SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderActionField *arg1 = (CThostFtdcQryErrOrderActionField *) 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_CThostFtdcQryErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderActionField * >(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
124193 124194 124195 124196 124197 124198 124199 124200 124201 124202 124203 124204 124205 124206 124207 124208 124209 124210 124211 124212 124213 124214 124215 124216 124217 124218 124219 124220 |
# File 'ext/ctp/ctp.cxx', line 124193 SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderActionField *arg1 = (CThostFtdcQryErrOrderActionField *) 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_CThostFtdcQryErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderActionField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderActionField * >(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; } |
#InvestorID(*args) ⇒ Object
124283 124284 124285 124286 124287 124288 124289 124290 124291 124292 124293 124294 124295 124296 124297 124298 124299 124300 124301 124302 124303 124304 124305 124306 124307 124308 124309 124310 |
# File 'ext/ctp/ctp.cxx', line 124283 SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderActionField *arg1 = (CThostFtdcQryErrOrderActionField *) 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_CThostFtdcQryErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderActionField * >(argp1); result = (char *) ((arg1)->InvestorID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#InvestorID=(*args) ⇒ Object
124253 124254 124255 124256 124257 124258 124259 124260 124261 124262 124263 124264 124265 124266 124267 124268 124269 124270 124271 124272 124273 124274 124275 124276 124277 124278 124279 124280 |
# File 'ext/ctp/ctp.cxx', line 124253 SWIGINTERN VALUE _wrap_CThostFtdcQryErrOrderActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryErrOrderActionField *arg1 = (CThostFtdcQryErrOrderActionField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[13] ; 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_CThostFtdcQryErrOrderActionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryErrOrderActionField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryErrOrderActionField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char)); else memset(arg1->InvestorID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } |