Class: Ctp::CThostFtdcQryExchangeMarginRateField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryExchangeMarginRateField
- 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
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
63536 63537 63538 63539 63540 63541 63542 63543 63544 63545 63546 63547 63548 63549 |
# File 'ext/ctp/ctp.cxx', line 63536 SWIGINTERN VALUE _wrap_new_CThostFtdcQryExchangeMarginRateField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeMarginRateField"; CThostFtdcQryExchangeMarginRateField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQryExchangeMarginRateField *)new CThostFtdcQryExchangeMarginRateField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
63378 63379 63380 63381 63382 63383 63384 63385 63386 63387 63388 63389 63390 63391 63392 63393 63394 63395 63396 63397 63398 63399 63400 63401 63402 63403 63404 63405 |
# File 'ext/ctp/ctp.cxx', line 63378 SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(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
63348 63349 63350 63351 63352 63353 63354 63355 63356 63357 63358 63359 63360 63361 63362 63363 63364 63365 63366 63367 63368 63369 63370 63371 63372 63373 63374 63375 |
# File 'ext/ctp/ctp.cxx', line 63348 SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(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
63497 63498 63499 63500 63501 63502 63503 63504 63505 63506 63507 63508 63509 63510 63511 63512 63513 63514 63515 63516 63517 63518 |
# File 'ext/ctp/ctp.cxx', line 63497 SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#HedgeFlag=(*args) ⇒ Object
63468 63469 63470 63471 63472 63473 63474 63475 63476 63477 63478 63479 63480 63481 63482 63483 63484 63485 63486 63487 63488 63489 63490 63491 63492 63493 63494 |
# File 'ext/ctp/ctp.cxx', line 63468 SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(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; } |
#InstrumentID(*args) ⇒ Object
63438 63439 63440 63441 63442 63443 63444 63445 63446 63447 63448 63449 63450 63451 63452 63453 63454 63455 63456 63457 63458 63459 63460 63461 63462 63463 63464 63465 |
# File 'ext/ctp/ctp.cxx', line 63438 SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(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
63408 63409 63410 63411 63412 63413 63414 63415 63416 63417 63418 63419 63420 63421 63422 63423 63424 63425 63426 63427 63428 63429 63430 63431 63432 63433 63434 63435 |
# File 'ext/ctp/ctp.cxx', line 63408 SWIGINTERN VALUE _wrap_CThostFtdcQryExchangeMarginRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQryExchangeMarginRateField *arg1 = (CThostFtdcQryExchangeMarginRateField *) 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_CThostFtdcQryExchangeMarginRateField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(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; } |