Class: Ctp::CThostFtdcLoadSettlementInfoField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcLoadSettlementInfoField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
107777 107778 107779 107780 107781 107782 107783 107784 107785 107786 107787 107788 107789 107790 |
# File 'ext/ctp/ctp.cxx', line 107777
SWIGINTERN VALUE
_wrap_new_CThostFtdcLoadSettlementInfoField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcLoadSettlementInfoField";
CThostFtdcLoadSettlementInfoField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcLoadSettlementInfoField *)new CThostFtdcLoadSettlementInfoField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
107732 107733 107734 107735 107736 107737 107738 107739 107740 107741 107742 107743 107744 107745 107746 107747 107748 107749 107750 107751 107752 107753 107754 107755 107756 107757 107758 107759 |
# File 'ext/ctp/ctp.cxx', line 107732
SWIGINTERN VALUE
_wrap_CThostFtdcLoadSettlementInfoField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcLoadSettlementInfoField *arg1 = (CThostFtdcLoadSettlementInfoField *) 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_CThostFtdcLoadSettlementInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoadSettlementInfoField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcLoadSettlementInfoField * >(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
107702 107703 107704 107705 107706 107707 107708 107709 107710 107711 107712 107713 107714 107715 107716 107717 107718 107719 107720 107721 107722 107723 107724 107725 107726 107727 107728 107729 |
# File 'ext/ctp/ctp.cxx', line 107702
SWIGINTERN VALUE
_wrap_CThostFtdcLoadSettlementInfoField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcLoadSettlementInfoField *arg1 = (CThostFtdcLoadSettlementInfoField *) 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_CThostFtdcLoadSettlementInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcLoadSettlementInfoField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcLoadSettlementInfoField * >(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;
}
|