Class: Ctp::CThostFtdcSuperUserFunctionField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcSuperUserFunctionField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #FunctionCode(*args) ⇒ Object
- #FunctionCode=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 |
# File 'ext/ctp/ctp.cxx', line 16762 SWIGINTERN VALUE _wrap_new_CThostFtdcSuperUserFunctionField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSuperUserFunctionField"; CThostFtdcSuperUserFunctionField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSuperUserFunctionField *)new CThostFtdcSuperUserFunctionField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#FunctionCode(*args) ⇒ Object
16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 |
# File 'ext/ctp/ctp.cxx', line 16723 SWIGINTERN VALUE _wrap_CThostFtdcSuperUserFunctionField_FunctionCode_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserFunctionField *arg1 = (CThostFtdcSuperUserFunctionField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcFunctionCodeType 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_CThostFtdcSuperUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserFunctionField *","FunctionCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserFunctionField * >(argp1); result = (TThostFtdcFunctionCodeType) ((arg1)->FunctionCode); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#FunctionCode=(*args) ⇒ Object
16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 |
# File 'ext/ctp/ctp.cxx', line 16694 SWIGINTERN VALUE _wrap_CThostFtdcSuperUserFunctionField_FunctionCode_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserFunctionField *arg1 = (CThostFtdcSuperUserFunctionField *) 0 ; TThostFtdcFunctionCodeType 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_CThostFtdcSuperUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserFunctionField *","FunctionCode", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserFunctionField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFunctionCodeType","FunctionCode", 2, argv[0] )); } arg2 = static_cast< TThostFtdcFunctionCodeType >(val2); if (arg1) (arg1)->FunctionCode = arg2; return Qnil; fail: return Qnil; } |
#UserID(*args) ⇒ Object
16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 |
# File 'ext/ctp/ctp.cxx', line 16664 SWIGINTERN VALUE _wrap_CThostFtdcSuperUserFunctionField_UserID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserFunctionField *arg1 = (CThostFtdcSuperUserFunctionField *) 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_CThostFtdcSuperUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserFunctionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserFunctionField * >(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
16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 |
# File 'ext/ctp/ctp.cxx', line 16634 SWIGINTERN VALUE _wrap_CThostFtdcSuperUserFunctionField_UserID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSuperUserFunctionField *arg1 = (CThostFtdcSuperUserFunctionField *) 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_CThostFtdcSuperUserFunctionField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSuperUserFunctionField *","UserID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSuperUserFunctionField * >(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; } |