Class: Ctp::CThostFtdcCFMMCTradingAccountKeyField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcCFMMCTradingAccountKeyField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #AccountID(*args) ⇒ Object
- #AccountID=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CurrentKey(*args) ⇒ Object
- #CurrentKey=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #KeyID(*args) ⇒ Object
- #KeyID=(*args) ⇒ Object
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
129743 129744 129745 129746 129747 129748 129749 129750 129751 129752 129753 129754 129755 129756 |
# File 'ext/ctp/ctp.cxx', line 129743 SWIGINTERN VALUE _wrap_new_CThostFtdcCFMMCTradingAccountKeyField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcCFMMCTradingAccountKeyField"; CThostFtdcCFMMCTradingAccountKeyField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcCFMMCTradingAccountKeyField *)new CThostFtdcCFMMCTradingAccountKeyField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#AccountID(*args) ⇒ Object
129585 129586 129587 129588 129589 129590 129591 129592 129593 129594 129595 129596 129597 129598 129599 129600 129601 129602 129603 129604 129605 129606 129607 129608 129609 129610 129611 129612 |
# File 'ext/ctp/ctp.cxx', line 129585 SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_AccountID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); result = (char *) ((arg1)->AccountID); { size_t size = SWIG_strnlen(result, 13); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#AccountID=(*args) ⇒ Object
129555 129556 129557 129558 129559 129560 129561 129562 129563 129564 129565 129566 129567 129568 129569 129570 129571 129572 129573 129574 129575 129576 129577 129578 129579 129580 129581 129582 |
# File 'ext/ctp/ctp.cxx', line 129555 SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_AccountID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","AccountID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 13); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char)); else memset(arg1->AccountID,0,13*sizeof(char)); return Qnil; fail: return Qnil; } |
#BrokerID(*args) ⇒ Object
129465 129466 129467 129468 129469 129470 129471 129472 129473 129474 129475 129476 129477 129478 129479 129480 129481 129482 129483 129484 129485 129486 129487 129488 129489 129490 129491 129492 |
# File 'ext/ctp/ctp.cxx', line 129465 SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(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
129435 129436 129437 129438 129439 129440 129441 129442 129443 129444 129445 129446 129447 129448 129449 129450 129451 129452 129453 129454 129455 129456 129457 129458 129459 129460 129461 129462 |
# File 'ext/ctp/ctp.cxx', line 129435 SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(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; } |
#CurrentKey(*args) ⇒ Object
129698 129699 129700 129701 129702 129703 129704 129705 129706 129707 129708 129709 129710 129711 129712 129713 129714 129715 129716 129717 129718 129719 129720 129721 129722 129723 129724 129725 |
# File 'ext/ctp/ctp.cxx', line 129698 SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_CurrentKey_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","CurrentKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); result = (char *) ((arg1)->CurrentKey); { size_t size = SWIG_strnlen(result, 21); vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } |
#CurrentKey=(*args) ⇒ Object
129668 129669 129670 129671 129672 129673 129674 129675 129676 129677 129678 129679 129680 129681 129682 129683 129684 129685 129686 129687 129688 129689 129690 129691 129692 129693 129694 129695 |
# File 'ext/ctp/ctp.cxx', line 129668 SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_CurrentKey_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","CurrentKey", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 21); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CurrentKey", 2, argv[0] )); } arg2 = reinterpret_cast< char * >(temp2); if (arg2) memcpy(arg1->CurrentKey,arg2,21*sizeof(char)); else memset(arg1->CurrentKey,0,21*sizeof(char)); return Qnil; fail: return Qnil; } |
#KeyID(*args) ⇒ Object
129644 129645 129646 129647 129648 129649 129650 129651 129652 129653 129654 129655 129656 129657 129658 129659 129660 129661 129662 129663 129664 129665 |
# File 'ext/ctp/ctp.cxx', line 129644 SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_KeyID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","KeyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); result = (TThostFtdcSequenceNoType) ((arg1)->KeyID); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#KeyID=(*args) ⇒ Object
129615 129616 129617 129618 129619 129620 129621 129622 129623 129624 129625 129626 129627 129628 129629 129630 129631 129632 129633 129634 129635 129636 129637 129638 129639 129640 129641 |
# File 'ext/ctp/ctp.cxx', line 129615 SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_KeyID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","KeyID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","KeyID", 2, argv[0] )); } arg2 = static_cast< TThostFtdcSequenceNoType >(val2); if (arg1) (arg1)->KeyID = arg2; return Qnil; fail: return Qnil; } |
#ParticipantID(*args) ⇒ Object
129525 129526 129527 129528 129529 129530 129531 129532 129533 129534 129535 129536 129537 129538 129539 129540 129541 129542 129543 129544 129545 129546 129547 129548 129549 129550 129551 129552 |
# File 'ext/ctp/ctp.cxx', line 129525 SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_ParticipantID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(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
129495 129496 129497 129498 129499 129500 129501 129502 129503 129504 129505 129506 129507 129508 129509 129510 129511 129512 129513 129514 129515 129516 129517 129518 129519 129520 129521 129522 |
# File 'ext/ctp/ctp.cxx', line 129495 SWIGINTERN VALUE _wrap_CThostFtdcCFMMCTradingAccountKeyField_ParticipantID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcCFMMCTradingAccountKeyField *arg1 = (CThostFtdcCFMMCTradingAccountKeyField *) 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_CThostFtdcCFMMCTradingAccountKeyField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCTradingAccountKeyField *","ParticipantID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcCFMMCTradingAccountKeyField * >(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; } |