Class: Ctp::CThostFtdcExecOrderField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcExecOrderField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ActionType(*args) ⇒ Object
- #ActionType=(*args) ⇒ Object
- #ActiveUserID(*args) ⇒ Object
- #ActiveUserID=(*args) ⇒ Object
- #BrokerExecOrderSeq(*args) ⇒ Object
- #BrokerExecOrderSeq=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #BusinessUnit(*args) ⇒ Object
- #BusinessUnit=(*args) ⇒ Object
- #CancelTime(*args) ⇒ Object
- #CancelTime=(*args) ⇒ Object
- #ClearingPartID(*args) ⇒ Object
- #ClearingPartID=(*args) ⇒ Object
- #ClientID(*args) ⇒ Object
- #ClientID=(*args) ⇒ Object
- #CloseFlag(*args) ⇒ Object
- #CloseFlag=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #ExchangeInstID(*args) ⇒ Object
- #ExchangeInstID=(*args) ⇒ Object
- #ExecOrderLocalID(*args) ⇒ Object
- #ExecOrderLocalID=(*args) ⇒ Object
- #ExecOrderRef(*args) ⇒ Object
- #ExecOrderRef=(*args) ⇒ Object
- #ExecOrderSysID(*args) ⇒ Object
- #ExecOrderSysID=(*args) ⇒ Object
- #ExecResult(*args) ⇒ Object
- #ExecResult=(*args) ⇒ Object
- #FrontID(*args) ⇒ Object
- #FrontID=(*args) ⇒ Object
- #HedgeFlag(*args) ⇒ Object
- #HedgeFlag=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InsertDate(*args) ⇒ Object
- #InsertDate=(*args) ⇒ Object
- #InsertTime(*args) ⇒ Object
- #InsertTime=(*args) ⇒ Object
- #InstallID(*args) ⇒ Object
- #InstallID=(*args) ⇒ Object
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #NotifySequence(*args) ⇒ Object
- #NotifySequence=(*args) ⇒ Object
- #OffsetFlag(*args) ⇒ Object
- #OffsetFlag=(*args) ⇒ Object
- #OrderSubmitStatus(*args) ⇒ Object
- #OrderSubmitStatus=(*args) ⇒ Object
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
- #PosiDirection(*args) ⇒ Object
- #PosiDirection=(*args) ⇒ Object
- #RequestID(*args) ⇒ Object
- #RequestID=(*args) ⇒ Object
- #ReservePositionFlag(*args) ⇒ Object
- #ReservePositionFlag=(*args) ⇒ Object
- #SequenceNo(*args) ⇒ Object
- #SequenceNo=(*args) ⇒ Object
- #SessionID(*args) ⇒ Object
- #SessionID=(*args) ⇒ Object
- #SettlementID(*args) ⇒ Object
- #SettlementID=(*args) ⇒ Object
- #StatusMsg(*args) ⇒ Object
- #StatusMsg=(*args) ⇒ Object
- #TraderID(*args) ⇒ Object
- #TraderID=(*args) ⇒ Object
- #TradingDay(*args) ⇒ Object
- #TradingDay=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
- #UserProductInfo(*args) ⇒ Object
- #UserProductInfo=(*args) ⇒ Object
- #Volume(*args) ⇒ Object
- #Volume=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
71561 71562 71563 71564 71565 71566 71567 71568 71569 71570 71571 71572 71573 71574 |
# File 'ext/ctp/ctp.cxx', line 71561 SWIGINTERN VALUE _wrap_new_CThostFtdcExecOrderField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcExecOrderField"; CThostFtdcExecOrderField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcExecOrderField *)new CThostFtdcExecOrderField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#ActionType(*args) ⇒ Object
69986 69987 69988 69989 69990 69991 69992 69993 69994 69995 69996 69997 69998 69999 70000 70001 70002 70003 70004 70005 70006 70007 |
# File 'ext/ctp/ctp.cxx', line 69986 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ActionType_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcActionTypeType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcActionTypeType) ((arg1)->ActionType); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#ActionType=(*args) ⇒ Object
69957 69958 69959 69960 69961 69962 69963 69964 69965 69966 69967 69968 69969 69970 69971 69972 69973 69974 69975 69976 69977 69978 69979 69980 69981 69982 69983 |
# File 'ext/ctp/ctp.cxx', line 69957 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ActionType_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcActionTypeType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ActionType", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionTypeType","ActionType", 2, argv[0] )); } arg2 = static_cast< TThostFtdcActionTypeType >(val2); if (arg1) (arg1)->ActionType = arg2; return Qnil; fail: return Qnil; } |
#ActiveUserID(*args) ⇒ Object
71463 71464 71465 71466 71467 71468 71469 71470 71471 71472 71473 71474 71475 71476 71477 71478 71479 71480 71481 71482 71483 71484 71485 71486 71487 71488 71489 71490 |
# File 'ext/ctp/ctp.cxx', line 71463 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ActiveUserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ActiveUserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ActiveUserID=(*args) ⇒ Object
71433 71434 71435 71436 71437 71438 71439 71440 71441 71442 71443 71444 71445 71446 71447 71448 71449 71450 71451 71452 71453 71454 71455 71456 71457 71458 71459 71460 |
# File 'ext/ctp/ctp.cxx', line 71433 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ActiveUserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ActiveUserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","ActiveUserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ActiveUserID,arg2,16*sizeof(char)); else memset(arg1->ActiveUserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } |
#BrokerExecOrderSeq(*args) ⇒ Object
71522 71523 71524 71525 71526 71527 71528 71529 71530 71531 71532 71533 71534 71535 71536 71537 71538 71539 71540 71541 71542 71543 |
# File 'ext/ctp/ctp.cxx', line 71522 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BrokerExecOrderSeq_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BrokerExecOrderSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->BrokerExecOrderSeq); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#BrokerExecOrderSeq=(*args) ⇒ Object
71493 71494 71495 71496 71497 71498 71499 71500 71501 71502 71503 71504 71505 71506 71507 71508 71509 71510 71511 71512 71513 71514 71515 71516 71517 71518 71519 |
# File 'ext/ctp/ctp.cxx', line 71493 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BrokerExecOrderSeq_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcSequenceNoType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BrokerExecOrderSeq", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","BrokerExecOrderSeq", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->BrokerExecOrderSeq = arg2; return Qnil; fail: return Qnil; } |
#BrokerID(*args) ⇒ Object
69415 69416 69417 69418 69419 69420 69421 69422 69423 69424 69425 69426 69427 69428 69429 69430 69431 69432 69433 69434 69435 69436 69437 69438 69439 69440 69441 69442 |
# File 'ext/ctp/ctp.cxx', line 69415 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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
69385 69386 69387 69388 69389 69390 69391 69392 69393 69394 69395 69396 69397 69398 69399 69400 69401 69402 69403 69404 69405 69406 69407 69408 69409 69410 69411 69412 |
# File 'ext/ctp/ctp.cxx', line 69385 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } |
#BusinessUnit(*args) ⇒ Object
69821 69822 69823 69824 69825 69826 69827 69828 69829 69830 69831 69832 69833 69834 69835 69836 69837 69838 69839 69840 69841 69842 69843 69844 69845 69846 69847 69848 |
# File 'ext/ctp/ctp.cxx', line 69821 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->BusinessUnit); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#BusinessUnit=(*args) ⇒ Object
69791 69792 69793 69794 69795 69796 69797 69798 69799 69800 69801 69802 69803 69804 69805 69806 69807 69808 69809 69810 69811 69812 69813 69814 69815 69816 69817 69818 |
# File 'ext/ctp/ctp.cxx', line 69791 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[21] ; 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","BusinessUnit", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char)); else memset(arg1->BusinessUnit,0,21*sizeof(char)); return Qnil; fail: return Qnil; } |
#CancelTime(*args) ⇒ Object
71011 71012 71013 71014 71015 71016 71017 71018 71019 71020 71021 71022 71023 71024 71025 71026 71027 71028 71029 71030 71031 71032 71033 71034 71035 71036 71037 71038 |
# File 'ext/ctp/ctp.cxx', line 71011 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_CancelTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->CancelTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#CancelTime=(*args) ⇒ Object
70981 70982 70983 70984 70985 70986 70987 70988 70989 70990 70991 70992 70993 70994 70995 70996 70997 70998 70999 71000 71001 71002 71003 71004 71005 71006 71007 71008 |
# File 'ext/ctp/ctp.cxx', line 70981 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_CancelTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","CancelTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CancelTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CancelTime,arg2,9*sizeof(char)); else memset(arg1->CancelTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } |
#ClearingPartID(*args) ⇒ Object
71124 71125 71126 71127 71128 71129 71130 71131 71132 71133 71134 71135 71136 71137 71138 71139 71140 71141 71142 71143 71144 71145 71146 71147 71148 71149 71150 71151 |
# File 'ext/ctp/ctp.cxx', line 71124 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ClearingPartID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ClearingPartID=(*args) ⇒ Object
71094 71095 71096 71097 71098 71099 71100 71101 71102 71103 71104 71105 71106 71107 71108 71109 71110 71111 71112 71113 71114 71115 71116 71117 71118 71119 71120 71121 |
# File 'ext/ctp/ctp.cxx', line 71094 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ClearingPartID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char)); else memset(arg1->ClearingPartID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } |
#ClientID(*args) ⇒ Object
70379 70380 70381 70382 70383 70384 70385 70386 70387 70388 70389 70390 70391 70392 70393 70394 70395 70396 70397 70398 70399 70400 70401 70402 70403 70404 70405 70406 |
# File 'ext/ctp/ctp.cxx', line 70379 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ClientID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ClientID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ClientID=(*args) ⇒ Object
70349 70350 70351 70352 70353 70354 70355 70356 70357 70358 70359 70360 70361 70362 70363 70364 70365 70366 70367 70368 70369 70370 70371 70372 70373 70374 70375 70376 |
# File 'ext/ctp/ctp.cxx', line 70349 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ClientID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ClientID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClientID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ClientID,arg2,11*sizeof(char)); else memset(arg1->ClientID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } |
#CloseFlag(*args) ⇒ Object
70145 70146 70147 70148 70149 70150 70151 70152 70153 70154 70155 70156 70157 70158 70159 70160 70161 70162 70163 70164 70165 70166 |
# File 'ext/ctp/ctp.cxx', line 70145 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_CloseFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecOrderCloseFlagType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","CloseFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcExecOrderCloseFlagType) ((arg1)->CloseFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#CloseFlag=(*args) ⇒ Object
70116 70117 70118 70119 70120 70121 70122 70123 70124 70125 70126 70127 70128 70129 70130 70131 70132 70133 70134 70135 70136 70137 70138 70139 70140 70141 70142 |
# File 'ext/ctp/ctp.cxx', line 70116 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_CloseFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcExecOrderCloseFlagType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","CloseFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderCloseFlagType","CloseFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecOrderCloseFlagType >(val2); if (arg1) (arg1)->CloseFlag = arg2; return Qnil; fail: return Qnil; } |
#ExchangeID(*args) ⇒ Object
70259 70260 70261 70262 70263 70264 70265 70266 70267 70268 70269 70270 70271 70272 70273 70274 70275 70276 70277 70278 70279 70280 70281 70282 70283 70284 70285 70286 |
# File 'ext/ctp/ctp.cxx', line 70259 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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
70229 70230 70231 70232 70233 70234 70235 70236 70237 70238 70239 70240 70241 70242 70243 70244 70245 70246 70247 70248 70249 70250 70251 70252 70253 70254 70255 70256 |
# File 'ext/ctp/ctp.cxx', line 70229 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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
70439 70440 70441 70442 70443 70444 70445 70446 70447 70448 70449 70450 70451 70452 70453 70454 70455 70456 70457 70458 70459 70460 70461 70462 70463 70464 70465 70466 |
# File 'ext/ctp/ctp.cxx', line 70439 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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
70409 70410 70411 70412 70413 70414 70415 70416 70417 70418 70419 70420 70421 70422 70423 70424 70425 70426 70427 70428 70429 70430 70431 70432 70433 70434 70435 70436 |
# File 'ext/ctp/ctp.cxx', line 70409 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExchangeInstID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } |
#ExecOrderLocalID(*args) ⇒ Object
70199 70200 70201 70202 70203 70204 70205 70206 70207 70208 70209 70210 70211 70212 70213 70214 70215 70216 70217 70218 70219 70220 70221 70222 70223 70224 70225 70226 |
# File 'ext/ctp/ctp.cxx', line 70199 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderLocalID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderLocalID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ExecOrderLocalID=(*args) ⇒ Object
70169 70170 70171 70172 70173 70174 70175 70176 70177 70178 70179 70180 70181 70182 70183 70184 70185 70186 70187 70188 70189 70190 70191 70192 70193 70194 70195 70196 |
# File 'ext/ctp/ctp.cxx', line 70169 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderLocalID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderLocalID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderLocalID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderLocalID,arg2,13*sizeof(char)); else memset(arg1->ExecOrderLocalID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } |
#ExecOrderRef(*args) ⇒ Object
69595 69596 69597 69598 69599 69600 69601 69602 69603 69604 69605 69606 69607 69608 69609 69610 69611 69612 69613 69614 69615 69616 69617 69618 69619 69620 69621 69622 |
# File 'ext/ctp/ctp.cxx', line 69595 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderRef_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderRef); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ExecOrderRef=(*args) ⇒ Object
69565 69566 69567 69568 69569 69570 69571 69572 69573 69574 69575 69576 69577 69578 69579 69580 69581 69582 69583 69584 69585 69586 69587 69588 69589 69590 69591 69592 |
# File 'ext/ctp/ctp.cxx', line 69565 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderRef_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderRef", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderRef", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderRef,arg2,13*sizeof(char)); else memset(arg1->ExecOrderRef,0,13*sizeof(char)); return Qnil; fail: return Qnil; } |
#ExecOrderSysID(*args) ⇒ Object
70831 70832 70833 70834 70835 70836 70837 70838 70839 70840 70841 70842 70843 70844 70845 70846 70847 70848 70849 70850 70851 70852 70853 70854 70855 70856 70857 70858 |
# File 'ext/ctp/ctp.cxx', line 70831 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderSysID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ExecOrderSysID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ExecOrderSysID=(*args) ⇒ Object
70801 70802 70803 70804 70805 70806 70807 70808 70809 70810 70811 70812 70813 70814 70815 70816 70817 70818 70819 70820 70821 70822 70823 70824 70825 70826 70827 70828 |
# File 'ext/ctp/ctp.cxx', line 70801 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecOrderSysID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[21] ; 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecOrderSysID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ExecOrderSysID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ExecOrderSysID,arg2,21*sizeof(char)); else memset(arg1->ExecOrderSysID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } |
#ExecResult(*args) ⇒ Object
71070 71071 71072 71073 71074 71075 71076 71077 71078 71079 71080 71081 71082 71083 71084 71085 71086 71087 71088 71089 71090 71091 |
# File 'ext/ctp/ctp.cxx', line 71070 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecResult_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecResultType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecResult", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcExecResultType) ((arg1)->ExecResult); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#ExecResult=(*args) ⇒ Object
71041 71042 71043 71044 71045 71046 71047 71048 71049 71050 71051 71052 71053 71054 71055 71056 71057 71058 71059 71060 71061 71062 71063 71064 71065 71066 71067 |
# File 'ext/ctp/ctp.cxx', line 71041 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ExecResult_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcExecResultType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ExecResult", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecResultType","ExecResult", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecResultType >(val2); if (arg1) (arg1)->ExecResult = arg2; return Qnil; fail: return Qnil; } |
#FrontID(*args) ⇒ Object
71236 71237 71238 71239 71240 71241 71242 71243 71244 71245 71246 71247 71248 71249 71250 71251 71252 71253 71254 71255 71256 71257 |
# File 'ext/ctp/ctp.cxx', line 71236 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_FrontID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFrontIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcFrontIDType) ((arg1)->FrontID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#FrontID=(*args) ⇒ Object
71207 71208 71209 71210 71211 71212 71213 71214 71215 71216 71217 71218 71219 71220 71221 71222 71223 71224 71225 71226 71227 71228 71229 71230 71231 71232 71233 |
# File 'ext/ctp/ctp.cxx', line 71207 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_FrontID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcFrontIDType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","FrontID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFrontIDType >(val2); if (arg1) (arg1)->FrontID = arg2; return Qnil; fail: return Qnil; } |
#HedgeFlag(*args) ⇒ Object
69933 69934 69935 69936 69937 69938 69939 69940 69941 69942 69943 69944 69945 69946 69947 69948 69949 69950 69951 69952 69953 69954 |
# File 'ext/ctp/ctp.cxx', line 69933 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#HedgeFlag=(*args) ⇒ Object
69904 69905 69906 69907 69908 69909 69910 69911 69912 69913 69914 69915 69916 69917 69918 69919 69920 69921 69922 69923 69924 69925 69926 69927 69928 69929 69930 |
# File 'ext/ctp/ctp.cxx', line 69904 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","HedgeFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } |
#InsertDate(*args) ⇒ Object
70891 70892 70893 70894 70895 70896 70897 70898 70899 70900 70901 70902 70903 70904 70905 70906 70907 70908 70909 70910 70911 70912 70913 70914 70915 70916 70917 70918 |
# File 'ext/ctp/ctp.cxx', line 70891 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InsertDate_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->InsertDate); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#InsertDate=(*args) ⇒ Object
70861 70862 70863 70864 70865 70866 70867 70868 70869 70870 70871 70872 70873 70874 70875 70876 70877 70878 70879 70880 70881 70882 70883 70884 70885 70886 70887 70888 |
# File 'ext/ctp/ctp.cxx', line 70861 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InsertDate_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InsertDate", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char)); else memset(arg1->InsertDate,0,9*sizeof(char)); return Qnil; fail: return Qnil; } |
#InsertTime(*args) ⇒ Object
70951 70952 70953 70954 70955 70956 70957 70958 70959 70960 70961 70962 70963 70964 70965 70966 70967 70968 70969 70970 70971 70972 70973 70974 70975 70976 70977 70978 |
# File 'ext/ctp/ctp.cxx', line 70951 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InsertTime_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->InsertTime); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#InsertTime=(*args) ⇒ Object
70921 70922 70923 70924 70925 70926 70927 70928 70929 70930 70931 70932 70933 70934 70935 70936 70937 70938 70939 70940 70941 70942 70943 70944 70945 70946 70947 70948 |
# File 'ext/ctp/ctp.cxx', line 70921 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InsertTime_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InsertTime", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char)); else memset(arg1->InsertTime,0,9*sizeof(char)); return Qnil; fail: return Qnil; } |
#InstallID(*args) ⇒ Object
70558 70559 70560 70561 70562 70563 70564 70565 70566 70567 70568 70569 70570 70571 70572 70573 70574 70575 70576 70577 70578 70579 |
# File 'ext/ctp/ctp.cxx', line 70558 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InstallID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcInstallIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcInstallIDType) ((arg1)->InstallID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#InstallID=(*args) ⇒ Object
70529 70530 70531 70532 70533 70534 70535 70536 70537 70538 70539 70540 70541 70542 70543 70544 70545 70546 70547 70548 70549 70550 70551 70552 70553 70554 70555 |
# File 'ext/ctp/ctp.cxx', line 70529 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InstallID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcInstallIDType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InstallID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstallIDType","InstallID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcInstallIDType >(val2); if (arg1) (arg1)->InstallID = arg2; return Qnil; fail: return Qnil; } |
#InstrumentID(*args) ⇒ Object
69535 69536 69537 69538 69539 69540 69541 69542 69543 69544 69545 69546 69547 69548 69549 69550 69551 69552 69553 69554 69555 69556 69557 69558 69559 69560 69561 69562 |
# File 'ext/ctp/ctp.cxx', line 69535 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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
69505 69506 69507 69508 69509 69510 69511 69512 69513 69514 69515 69516 69517 69518 69519 69520 69521 69522 69523 69524 69525 69526 69527 69528 69529 69530 69531 69532 |
# File 'ext/ctp/ctp.cxx', line 69505 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InstrumentID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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
69475 69476 69477 69478 69479 69480 69481 69482 69483 69484 69485 69486 69487 69488 69489 69490 69491 69492 69493 69494 69495 69496 69497 69498 69499 69500 69501 69502 |
# File 'ext/ctp/ctp.cxx', line 69475 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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
69445 69446 69447 69448 69449 69450 69451 69452 69453 69454 69455 69456 69457 69458 69459 69460 69461 69462 69463 69464 69465 69466 69467 69468 69469 69470 69471 69472 |
# File 'ext/ctp/ctp.cxx', line 69445 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(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; } |
#NotifySequence(*args) ⇒ Object
70664 70665 70666 70667 70668 70669 70670 70671 70672 70673 70674 70675 70676 70677 70678 70679 70680 70681 70682 70683 70684 70685 |
# File 'ext/ctp/ctp.cxx', line 70664 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_NotifySequence_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#NotifySequence=(*args) ⇒ Object
70635 70636 70637 70638 70639 70640 70641 70642 70643 70644 70645 70646 70647 70648 70649 70650 70651 70652 70653 70654 70655 70656 70657 70658 70659 70660 70661 |
# File 'ext/ctp/ctp.cxx', line 70635 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_NotifySequence_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcSequenceNoType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","NotifySequence", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->NotifySequence = arg2; return Qnil; fail: return Qnil; } |
#OffsetFlag(*args) ⇒ Object
69880 69881 69882 69883 69884 69885 69886 69887 69888 69889 69890 69891 69892 69893 69894 69895 69896 69897 69898 69899 69900 69901 |
# File 'ext/ctp/ctp.cxx', line 69880 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#OffsetFlag=(*args) ⇒ Object
69851 69852 69853 69854 69855 69856 69857 69858 69859 69860 69861 69862 69863 69864 69865 69866 69867 69868 69869 69870 69871 69872 69873 69874 69875 69876 69877 |
# File 'ext/ctp/ctp.cxx', line 69851 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcOffsetFlagType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","OffsetFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOffsetFlagType >(val2); if (arg1) (arg1)->OffsetFlag = arg2; return Qnil; fail: return Qnil; } |
#OrderSubmitStatus(*args) ⇒ Object
70611 70612 70613 70614 70615 70616 70617 70618 70619 70620 70621 70622 70623 70624 70625 70626 70627 70628 70629 70630 70631 70632 |
# File 'ext/ctp/ctp.cxx', line 70611 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_OrderSubmitStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcOrderSubmitStatusType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcOrderSubmitStatusType) ((arg1)->OrderSubmitStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#OrderSubmitStatus=(*args) ⇒ Object
70582 70583 70584 70585 70586 70587 70588 70589 70590 70591 70592 70593 70594 70595 70596 70597 70598 70599 70600 70601 70602 70603 70604 70605 70606 70607 70608 |
# File 'ext/ctp/ctp.cxx', line 70582 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_OrderSubmitStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcOrderSubmitStatusType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","OrderSubmitStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSubmitStatusType","OrderSubmitStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcOrderSubmitStatusType >(val2); if (arg1) (arg1)->OrderSubmitStatus = arg2; return Qnil; fail: return Qnil; } |
#ParticipantID(*args) ⇒ Object
70319 70320 70321 70322 70323 70324 70325 70326 70327 70328 70329 70330 70331 70332 70333 70334 70335 70336 70337 70338 70339 70340 70341 70342 70343 70344 70345 70346 |
# File 'ext/ctp/ctp.cxx', line 70319 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->ParticipantID); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#ParticipantID=(*args) ⇒ Object
70289 70290 70291 70292 70293 70294 70295 70296 70297 70298 70299 70300 70301 70302 70303 70304 70305 70306 70307 70308 70309 70310 70311 70312 70313 70314 70315 70316 |
# File 'ext/ctp/ctp.cxx', line 70289 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ParticipantID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->ParticipantID,arg2,11*sizeof(char)); else memset(arg1->ParticipantID,0,11*sizeof(char)); return Qnil; fail: return Qnil; } |
#PosiDirection(*args) ⇒ Object
70039 70040 70041 70042 70043 70044 70045 70046 70047 70048 70049 70050 70051 70052 70053 70054 70055 70056 70057 70058 70059 70060 |
# File 'ext/ctp/ctp.cxx', line 70039 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_PosiDirection_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPosiDirectionType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcPosiDirectionType) ((arg1)->PosiDirection); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#PosiDirection=(*args) ⇒ Object
70010 70011 70012 70013 70014 70015 70016 70017 70018 70019 70020 70021 70022 70023 70024 70025 70026 70027 70028 70029 70030 70031 70032 70033 70034 70035 70036 |
# File 'ext/ctp/ctp.cxx', line 70010 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_PosiDirection_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcPosiDirectionType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","PosiDirection", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPosiDirectionType","PosiDirection", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPosiDirectionType >(val2); if (arg1) (arg1)->PosiDirection = arg2; return Qnil; fail: return Qnil; } |
#RequestID(*args) ⇒ Object
69767 69768 69769 69770 69771 69772 69773 69774 69775 69776 69777 69778 69779 69780 69781 69782 69783 69784 69785 69786 69787 69788 |
# File 'ext/ctp/ctp.cxx', line 69767 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcRequestIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcRequestIDType) ((arg1)->RequestID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#RequestID=(*args) ⇒ Object
69738 69739 69740 69741 69742 69743 69744 69745 69746 69747 69748 69749 69750 69751 69752 69753 69754 69755 69756 69757 69758 69759 69760 69761 69762 69763 69764 |
# File 'ext/ctp/ctp.cxx', line 69738 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcRequestIDType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","RequestID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcRequestIDType >(val2); if (arg1) (arg1)->RequestID = arg2; return Qnil; fail: return Qnil; } |
#ReservePositionFlag(*args) ⇒ Object
70092 70093 70094 70095 70096 70097 70098 70099 70100 70101 70102 70103 70104 70105 70106 70107 70108 70109 70110 70111 70112 70113 |
# File 'ext/ctp/ctp.cxx', line 70092 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ReservePositionFlag_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcExecOrderPositionFlagType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ReservePositionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcExecOrderPositionFlagType) ((arg1)->ReservePositionFlag); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#ReservePositionFlag=(*args) ⇒ Object
70063 70064 70065 70066 70067 70068 70069 70070 70071 70072 70073 70074 70075 70076 70077 70078 70079 70080 70081 70082 70083 70084 70085 70086 70087 70088 70089 |
# File 'ext/ctp/ctp.cxx', line 70063 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_ReservePositionFlag_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcExecOrderPositionFlagType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","ReservePositionFlag", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderPositionFlagType","ReservePositionFlag", 2, argv[0] )); } arg2 = static_cast< TThostFtdcExecOrderPositionFlagType >(val2); if (arg1) (arg1)->ReservePositionFlag = arg2; return Qnil; fail: return Qnil; } |
#SequenceNo(*args) ⇒ Object
71183 71184 71185 71186 71187 71188 71189 71190 71191 71192 71193 71194 71195 71196 71197 71198 71199 71200 71201 71202 71203 71204 |
# File 'ext/ctp/ctp.cxx', line 71183 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SequenceNo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSequenceNoType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#SequenceNo=(*args) ⇒ Object
71154 71155 71156 71157 71158 71159 71160 71161 71162 71163 71164 71165 71166 71167 71168 71169 71170 71171 71172 71173 71174 71175 71176 71177 71178 71179 71180 |
# File 'ext/ctp/ctp.cxx', line 71154 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SequenceNo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcSequenceNoType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SequenceNo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->SequenceNo = arg2; return Qnil; fail: return Qnil; } |
#SessionID(*args) ⇒ Object
71289 71290 71291 71292 71293 71294 71295 71296 71297 71298 71299 71300 71301 71302 71303 71304 71305 71306 71307 71308 71309 71310 |
# File 'ext/ctp/ctp.cxx', line 71289 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SessionID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSessionIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcSessionIDType) ((arg1)->SessionID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#SessionID=(*args) ⇒ Object
71260 71261 71262 71263 71264 71265 71266 71267 71268 71269 71270 71271 71272 71273 71274 71275 71276 71277 71278 71279 71280 71281 71282 71283 71284 71285 71286 |
# File 'ext/ctp/ctp.cxx', line 71260 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SessionID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcSessionIDType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SessionID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSessionIDType >(val2); if (arg1) (arg1)->SessionID = arg2; return Qnil; fail: return Qnil; } |
#SettlementID(*args) ⇒ Object
70777 70778 70779 70780 70781 70782 70783 70784 70785 70786 70787 70788 70789 70790 70791 70792 70793 70794 70795 70796 70797 70798 |
# File 'ext/ctp/ctp.cxx', line 70777 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SettlementID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcSettlementIDType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#SettlementID=(*args) ⇒ Object
70748 70749 70750 70751 70752 70753 70754 70755 70756 70757 70758 70759 70760 70761 70762 70763 70764 70765 70766 70767 70768 70769 70770 70771 70772 70773 70774 |
# File 'ext/ctp/ctp.cxx', line 70748 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_SettlementID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcSettlementIDType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","SettlementID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSettlementIDType >(val2); if (arg1) (arg1)->SettlementID = arg2; return Qnil; fail: return Qnil; } |
#StatusMsg(*args) ⇒ Object
71403 71404 71405 71406 71407 71408 71409 71410 71411 71412 71413 71414 71415 71416 71417 71418 71419 71420 71421 71422 71423 71424 71425 71426 71427 71428 71429 71430 |
# File 'ext/ctp/ctp.cxx', line 71403 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_StatusMsg_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->StatusMsg); { size_t size = SWIG_strnlen(result, 81); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#StatusMsg=(*args) ⇒ Object
71373 71374 71375 71376 71377 71378 71379 71380 71381 71382 71383 71384 71385 71386 71387 71388 71389 71390 71391 71392 71393 71394 71395 71396 71397 71398 71399 71400 |
# File 'ext/ctp/ctp.cxx', line 71373 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_StatusMsg_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[81] ; 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","StatusMsg", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 81); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","StatusMsg", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->StatusMsg,arg2,81*sizeof(char)); else memset(arg1->StatusMsg,0,81*sizeof(char)); return Qnil; fail: return Qnil; } |
#TraderID(*args) ⇒ Object
70499 70500 70501 70502 70503 70504 70505 70506 70507 70508 70509 70510 70511 70512 70513 70514 70515 70516 70517 70518 70519 70520 70521 70522 70523 70524 70525 70526 |
# File 'ext/ctp/ctp.cxx', line 70499 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_TraderID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->TraderID); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#TraderID=(*args) ⇒ Object
70469 70470 70471 70472 70473 70474 70475 70476 70477 70478 70479 70480 70481 70482 70483 70484 70485 70486 70487 70488 70489 70490 70491 70492 70493 70494 70495 70496 |
# File 'ext/ctp/ctp.cxx', line 70469 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_TraderID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[21] ; 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","TraderID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TraderID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TraderID,arg2,21*sizeof(char)); else memset(arg1->TraderID,0,21*sizeof(char)); return Qnil; fail: return Qnil; } |
#TradingDay(*args) ⇒ Object
70718 70719 70720 70721 70722 70723 70724 70725 70726 70727 70728 70729 70730 70731 70732 70733 70734 70735 70736 70737 70738 70739 70740 70741 70742 70743 70744 70745 |
# File 'ext/ctp/ctp.cxx', line 70718 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->TradingDay); { size_t size = SWIG_strnlen(result, 9); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#TradingDay=(*args) ⇒ Object
70688 70689 70690 70691 70692 70693 70694 70695 70696 70697 70698 70699 70700 70701 70702 70703 70704 70705 70706 70707 70708 70709 70710 70711 70712 70713 70714 70715 |
# File 'ext/ctp/ctp.cxx', line 70688 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 9); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char)); else memset(arg1->TradingDay,0,9*sizeof(char)); return Qnil; fail: return Qnil; } |
#UserID(*args) ⇒ Object
69655 69656 69657 69658 69659 69660 69661 69662 69663 69664 69665 69666 69667 69668 69669 69670 69671 69672 69673 69674 69675 69676 69677 69678 69679 69680 69681 69682 |
# File 'ext/ctp/ctp.cxx', line 69655 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->UserID); { size_t size = SWIG_strnlen(result, 16); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#UserID=(*args) ⇒ Object
69625 69626 69627 69628 69629 69630 69631 69632 69633 69634 69635 69636 69637 69638 69639 69640 69641 69642 69643 69644 69645 69646 69647 69648 69649 69650 69651 69652 |
# File 'ext/ctp/ctp.cxx', line 69625 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[16] ; 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 16); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char)); else memset(arg1->UserID,0,16*sizeof(char)); return Qnil; fail: return Qnil; } |
#UserProductInfo(*args) ⇒ Object
71343 71344 71345 71346 71347 71348 71349 71350 71351 71352 71353 71354 71355 71356 71357 71358 71359 71360 71361 71362 71363 71364 71365 71366 71367 71368 71369 71370 |
# File 'ext/ctp/ctp.cxx', line 71343 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_UserProductInfo_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (char *) ((arg1)->UserProductInfo); { size_t size = SWIG_strnlen(result, 11); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#UserProductInfo=(*args) ⇒ Object
71313 71314 71315 71316 71317 71318 71319 71320 71321 71322 71323 71324 71325 71326 71327 71328 71329 71330 71331 71332 71333 71334 71335 71336 71337 71338 71339 71340 |
# File 'ext/ctp/ctp.cxx', line 71313 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_UserProductInfo_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","UserProductInfo", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 11); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","UserProductInfo", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->UserProductInfo,arg2,11*sizeof(char)); else memset(arg1->UserProductInfo,0,11*sizeof(char)); return Qnil; fail: return Qnil; } |
#Volume(*args) ⇒ Object
69714 69715 69716 69717 69718 69719 69720 69721 69722 69723 69724 69725 69726 69727 69728 69729 69730 69731 69732 69733 69734 69735 |
# File 'ext/ctp/ctp.cxx', line 69714 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#Volume=(*args) ⇒ Object
69685 69686 69687 69688 69689 69690 69691 69692 69693 69694 69695 69696 69697 69698 69699 69700 69701 69702 69703 69704 69705 69706 69707 69708 69709 69710 69711 |
# File 'ext/ctp/ctp.cxx', line 69685 SWIGINTERN VALUE _wrap_CThostFtdcExecOrderField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcExecOrderField *arg1 = (CThostFtdcExecOrderField *) 0 ; TThostFtdcVolumeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int 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_CThostFtdcExecOrderField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExecOrderField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcExecOrderField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } |