Class: Ctp::CThostFtdcQryOptionInstrTradeCostField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryOptionInstrTradeCostField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #HedgeFlag(*args) ⇒ Object
- #HedgeFlag=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InputPrice(*args) ⇒ Object
- #InputPrice=(*args) ⇒ Object
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #UnderlyingPrice(*args) ⇒ Object
- #UnderlyingPrice=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
67383 67384 67385 67386 67387 67388 67389 67390 67391 67392 67393 67394 67395 67396 |
# File 'ext/ctp/ctp.cxx', line 67383 SWIGINTERN VALUE _wrap_new_CThostFtdcQryOptionInstrTradeCostField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryOptionInstrTradeCostField"; CThostFtdcQryOptionInstrTradeCostField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryOptionInstrTradeCostField *)new CThostFtdcQryOptionInstrTradeCostField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
67059 67060 67061 67062 67063 67064 67065 67066 67067 67068 67069 67070 67071 67072 67073 67074 67075 67076 67077 67078 67079 67080 67081 67082 67083 67084 67085 67086 |
# File 'ext/ctp/ctp.cxx', line 67059 SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(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
67029 67030 67031 67032 67033 67034 67035 67036 67037 67038 67039 67040 67041 67042 67043 67044 67045 67046 67047 67048 67049 67050 67051 67052 67053 67054 67055 67056 |
# File 'ext/ctp/ctp.cxx', line 67029 SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(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; } |
#HedgeFlag(*args) ⇒ Object
67238 67239 67240 67241 67242 67243 67244 67245 67246 67247 67248 67249 67250 67251 67252 67253 67254 67255 67256 67257 67258 67259 |
# File 'ext/ctp/ctp.cxx', line 67238 SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcHedgeFlagType 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#HedgeFlag=(*args) ⇒ Object
67209 67210 67211 67212 67213 67214 67215 67216 67217 67218 67219 67220 67221 67222 67223 67224 67225 67226 67227 67228 67229 67230 67231 67232 67233 67234 67235 |
# File 'ext/ctp/ctp.cxx', line 67209 SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; TThostFtdcHedgeFlagType arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcHedgeFlagType >(val2); if (arg1) (arg1)->HedgeFlag = arg2; return Qnil; fail: return Qnil; } |
#InputPrice(*args) ⇒ Object
67291 67292 67293 67294 67295 67296 67297 67298 67299 67300 67301 67302 67303 67304 67305 67306 67307 67308 67309 67310 67311 67312 |
# File 'ext/ctp/ctp.cxx', line 67291 SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InputPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InputPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->InputPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } |
#InputPrice=(*args) ⇒ Object
67262 67263 67264 67265 67266 67267 67268 67269 67270 67271 67272 67273 67274 67275 67276 67277 67278 67279 67280 67281 67282 67283 67284 67285 67286 67287 67288 |
# File 'ext/ctp/ctp.cxx', line 67262 SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InputPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InputPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","InputPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->InputPrice = arg2; return Qnil; fail: return Qnil; } |
#InstrumentID(*args) ⇒ Object
67179 67180 67181 67182 67183 67184 67185 67186 67187 67188 67189 67190 67191 67192 67193 67194 67195 67196 67197 67198 67199 67200 67201 67202 67203 67204 67205 67206 |
# File 'ext/ctp/ctp.cxx', line 67179 SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); result = (char *) ((arg1)->InstrumentID); { size_t size = SWIG_strnlen(result, 31); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#InstrumentID=(*args) ⇒ Object
67149 67150 67151 67152 67153 67154 67155 67156 67157 67158 67159 67160 67161 67162 67163 67164 67165 67166 67167 67168 67169 67170 67171 67172 67173 67174 67175 67176 |
# File 'ext/ctp/ctp.cxx', line 67149 SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 31); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char)); else memset(arg1->InstrumentID,0,31*sizeof(char)); return Qnil; fail: return Qnil; } |
#InvestorID(*args) ⇒ Object
67119 67120 67121 67122 67123 67124 67125 67126 67127 67128 67129 67130 67131 67132 67133 67134 67135 67136 67137 67138 67139 67140 67141 67142 67143 67144 67145 67146 |
# File 'ext/ctp/ctp.cxx', line 67119 SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(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
67089 67090 67091 67092 67093 67094 67095 67096 67097 67098 67099 67100 67101 67102 67103 67104 67105 67106 67107 67108 67109 67110 67111 67112 67113 67114 67115 67116 |
# File 'ext/ctp/ctp.cxx', line 67089 SWIGINTERN VALUE _wrap_CThostFtdcQryOptionInstrTradeCostField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(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; } |
#UnderlyingPrice(*args) ⇒ Object
67344 67345 67346 67347 67348 67349 67350 67351 67352 67353 67354 67355 67356 67357 67358 67359 67360 67361 67362 67363 67364 67365 |
# File 'ext/ctp/ctp.cxx', line 67344 SWIGINTERN VALUE (int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","UnderlyingPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } |
#UnderlyingPrice=(*args) ⇒ Object
67315 67316 67317 67318 67319 67320 67321 67322 67323 67324 67325 67326 67327 67328 67329 67330 67331 67332 67333 67334 67335 67336 67337 67338 67339 67340 67341 |
# File 'ext/ctp/ctp.cxx', line 67315 SWIGINTERN VALUE (int argc, VALUE *argv, VALUE self) { CThostFtdcQryOptionInstrTradeCostField *arg1 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double 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_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","UnderlyingPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","UnderlyingPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)-> = arg2; return Qnil; fail: return Qnil; } |