Class: Ctp::CThostFtdcQryExchangeMarginRateAdjustField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryExchangeMarginRateAdjustField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #HedgeFlag(*args) ⇒ Object
- #HedgeFlag=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
63748 63749 63750 63751 63752 63753 63754 63755 63756 63757 63758 63759 63760 63761 |
# File 'ext/ctp/ctp.cxx', line 63748
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryExchangeMarginRateAdjustField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeMarginRateAdjustField";
CThostFtdcQryExchangeMarginRateAdjustField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryExchangeMarginRateAdjustField *)new CThostFtdcQryExchangeMarginRateAdjustField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
63590 63591 63592 63593 63594 63595 63596 63597 63598 63599 63600 63601 63602 63603 63604 63605 63606 63607 63608 63609 63610 63611 63612 63613 63614 63615 63616 63617 |
# File 'ext/ctp/ctp.cxx', line 63590
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeMarginRateAdjustField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(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
63560 63561 63562 63563 63564 63565 63566 63567 63568 63569 63570 63571 63572 63573 63574 63575 63576 63577 63578 63579 63580 63581 63582 63583 63584 63585 63586 63587 |
# File 'ext/ctp/ctp.cxx', line 63560
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeMarginRateAdjustField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(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;
}
|
#HedgeFlag(*args) ⇒ Object
63709 63710 63711 63712 63713 63714 63715 63716 63717 63718 63719 63720 63721 63722 63723 63724 63725 63726 63727 63728 63729 63730 |
# File 'ext/ctp/ctp.cxx', line 63709
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeMarginRateAdjustField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcHedgeFlagType 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","HedgeFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp1);
result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#HedgeFlag=(*args) ⇒ Object
63680 63681 63682 63683 63684 63685 63686 63687 63688 63689 63690 63691 63692 63693 63694 63695 63696 63697 63698 63699 63700 63701 63702 63703 63704 63705 63706 |
# File 'ext/ctp/ctp.cxx', line 63680
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeMarginRateAdjustField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 0 ;
TThostFtdcHedgeFlagType 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","HedgeFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcHedgeFlagType >(val2);
if (arg1) (arg1)->HedgeFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
63650 63651 63652 63653 63654 63655 63656 63657 63658 63659 63660 63661 63662 63663 63664 63665 63666 63667 63668 63669 63670 63671 63672 63673 63674 63675 63676 63677 |
# File 'ext/ctp/ctp.cxx', line 63650
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeMarginRateAdjustField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp1);
result = (char *) ((arg1)->InstrumentID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InstrumentID=(*args) ⇒ Object
63620 63621 63622 63623 63624 63625 63626 63627 63628 63629 63630 63631 63632 63633 63634 63635 63636 63637 63638 63639 63640 63641 63642 63643 63644 63645 63646 63647 |
# File 'ext/ctp/ctp.cxx', line 63620
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeMarginRateAdjustField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeMarginRateAdjustField *arg1 = (CThostFtdcQryExchangeMarginRateAdjustField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[31] ;
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_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char));
else memset(arg1->InstrumentID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|