Class: Ctp::CThostFtdcReturnResultField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcReturnResultField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #DescrInfoForReturnCode(*args) ⇒ Object
- #DescrInfoForReturnCode=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #ReturnCode(*args) ⇒ Object
- #ReturnCode=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
166705 166706 166707 166708 166709 166710 166711 166712 166713 166714 166715 166716 166717 166718 |
# File 'ext/ctp/ctp.cxx', line 166705
SWIGINTERN VALUE
_wrap_new_CThostFtdcReturnResultField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcReturnResultField";
CThostFtdcReturnResultField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcReturnResultField *)new CThostFtdcReturnResultField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#DescrInfoForReturnCode(*args) ⇒ Object
166660 166661 166662 166663 166664 166665 166666 166667 166668 166669 166670 166671 166672 166673 166674 166675 166676 166677 166678 166679 166680 166681 166682 166683 166684 166685 166686 166687 |
# File 'ext/ctp/ctp.cxx', line 166660
SWIGINTERN VALUE
_wrap_CThostFtdcReturnResultField_DescrInfoForReturnCode_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReturnResultField *arg1 = (CThostFtdcReturnResultField *) 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_CThostFtdcReturnResultField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReturnResultField *","DescrInfoForReturnCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReturnResultField * >(argp1);
result = (char *) ((arg1)->DescrInfoForReturnCode);
{
size_t size = SWIG_strnlen(result, 129);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#DescrInfoForReturnCode=(*args) ⇒ Object
166630 166631 166632 166633 166634 166635 166636 166637 166638 166639 166640 166641 166642 166643 166644 166645 166646 166647 166648 166649 166650 166651 166652 166653 166654 166655 166656 166657 |
# File 'ext/ctp/ctp.cxx', line 166630
SWIGINTERN VALUE
_wrap_CThostFtdcReturnResultField_DescrInfoForReturnCode_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReturnResultField *arg1 = (CThostFtdcReturnResultField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[129] ;
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_CThostFtdcReturnResultField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReturnResultField *","DescrInfoForReturnCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReturnResultField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 129);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","DescrInfoForReturnCode", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->DescrInfoForReturnCode,arg2,129*sizeof(char));
else memset(arg1->DescrInfoForReturnCode,0,129*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ReturnCode(*args) ⇒ Object
166600 166601 166602 166603 166604 166605 166606 166607 166608 166609 166610 166611 166612 166613 166614 166615 166616 166617 166618 166619 166620 166621 166622 166623 166624 166625 166626 166627 |
# File 'ext/ctp/ctp.cxx', line 166600
SWIGINTERN VALUE
_wrap_CThostFtdcReturnResultField_ReturnCode_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReturnResultField *arg1 = (CThostFtdcReturnResultField *) 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_CThostFtdcReturnResultField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReturnResultField *","ReturnCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReturnResultField * >(argp1);
result = (char *) ((arg1)->ReturnCode);
{
size_t size = SWIG_strnlen(result, 7);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ReturnCode=(*args) ⇒ Object
166570 166571 166572 166573 166574 166575 166576 166577 166578 166579 166580 166581 166582 166583 166584 166585 166586 166587 166588 166589 166590 166591 166592 166593 166594 166595 166596 166597 |
# File 'ext/ctp/ctp.cxx', line 166570
SWIGINTERN VALUE
_wrap_CThostFtdcReturnResultField_ReturnCode_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReturnResultField *arg1 = (CThostFtdcReturnResultField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[7] ;
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_CThostFtdcReturnResultField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReturnResultField *","ReturnCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReturnResultField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 7);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","ReturnCode", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ReturnCode,arg2,7*sizeof(char));
else memset(arg1->ReturnCode,0,7*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|