Class: Ctp::CThostFtdcCurrTransferIdentityField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcCurrTransferIdentityField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
190724 190725 190726 190727 190728 190729 190730 190731 190732 190733 190734 190735 190736 190737 |
# File 'ext/ctp/ctp.cxx', line 190724
SWIGINTERN VALUE
_wrap_new_CThostFtdcCurrTransferIdentityField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcCurrTransferIdentityField";
CThostFtdcCurrTransferIdentityField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcCurrTransferIdentityField *)new CThostFtdcCurrTransferIdentityField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#IdentityID(*args) ⇒ Object
190685 190686 190687 190688 190689 190690 190691 190692 190693 190694 190695 190696 190697 190698 190699 190700 190701 190702 190703 190704 190705 190706 |
# File 'ext/ctp/ctp.cxx', line 190685
SWIGINTERN VALUE
_wrap_CThostFtdcCurrTransferIdentityField_IdentityID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCurrTransferIdentityField *arg1 = (CThostFtdcCurrTransferIdentityField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcDRIdentityIDType 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_CThostFtdcCurrTransferIdentityField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrTransferIdentityField *","IdentityID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCurrTransferIdentityField * >(argp1);
result = (TThostFtdcDRIdentityIDType) ((arg1)->IdentityID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#IdentityID=(*args) ⇒ Object
190656 190657 190658 190659 190660 190661 190662 190663 190664 190665 190666 190667 190668 190669 190670 190671 190672 190673 190674 190675 190676 190677 190678 190679 190680 190681 190682 |
# File 'ext/ctp/ctp.cxx', line 190656
SWIGINTERN VALUE
_wrap_CThostFtdcCurrTransferIdentityField_IdentityID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCurrTransferIdentityField *arg1 = (CThostFtdcCurrTransferIdentityField *) 0 ;
TThostFtdcDRIdentityIDType 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_CThostFtdcCurrTransferIdentityField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCurrTransferIdentityField *","IdentityID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCurrTransferIdentityField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDRIdentityIDType","IdentityID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcDRIdentityIDType >(val2);
if (arg1) (arg1)->IdentityID = arg2;
return Qnil;
fail:
return Qnil;
}
|