Class: Ctp::CThostFtdcSyncingInstrumentCommissionRateField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcSyncingInstrumentCommissionRateField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CloseRatioByMoney(*args) ⇒ Object
- #CloseRatioByMoney=(*args) ⇒ Object
- #CloseRatioByVolume(*args) ⇒ Object
- #CloseRatioByVolume=(*args) ⇒ Object
- #CloseTodayRatioByMoney(*args) ⇒ Object
- #CloseTodayRatioByMoney=(*args) ⇒ Object
- #CloseTodayRatioByVolume(*args) ⇒ Object
- #CloseTodayRatioByVolume=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #InvestorRange(*args) ⇒ Object
- #InvestorRange=(*args) ⇒ Object
- #OpenRatioByMoney(*args) ⇒ Object
- #OpenRatioByMoney=(*args) ⇒ Object
- #OpenRatioByVolume(*args) ⇒ Object
- #OpenRatioByVolume=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
56870 56871 56872 56873 56874 56875 56876 56877 56878 56879 56880 56881 56882 56883 |
# File 'ext/ctp/ctp.cxx', line 56870
SWIGINTERN VALUE
_wrap_new_CThostFtdcSyncingInstrumentCommissionRateField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingInstrumentCommissionRateField";
CThostFtdcSyncingInstrumentCommissionRateField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcSyncingInstrumentCommissionRateField *)new CThostFtdcSyncingInstrumentCommissionRateField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
56447 56448 56449 56450 56451 56452 56453 56454 56455 56456 56457 56458 56459 56460 56461 56462 56463 56464 56465 56466 56467 56468 56469 56470 56471 56472 56473 56474 |
# File 'ext/ctp/ctp.cxx', line 56447
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(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
56417 56418 56419 56420 56421 56422 56423 56424 56425 56426 56427 56428 56429 56430 56431 56432 56433 56434 56435 56436 56437 56438 56439 56440 56441 56442 56443 56444 |
# File 'ext/ctp/ctp.cxx', line 56417
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(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;
}
|
#CloseRatioByMoney(*args) ⇒ Object
56672 56673 56674 56675 56676 56677 56678 56679 56680 56681 56682 56683 56684 56685 56686 56687 56688 56689 56690 56691 56692 56693 |
# File 'ext/ctp/ctp.cxx', line 56672
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByMoney_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseRatioByMoney", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->CloseRatioByMoney);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#CloseRatioByMoney=(*args) ⇒ Object
56643 56644 56645 56646 56647 56648 56649 56650 56651 56652 56653 56654 56655 56656 56657 56658 56659 56660 56661 56662 56663 56664 56665 56666 56667 56668 56669 |
# File 'ext/ctp/ctp.cxx', line 56643
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByMoney_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
TThostFtdcRatioType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseRatioByMoney", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseRatioByMoney", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->CloseRatioByMoney = arg2;
return Qnil;
fail:
return Qnil;
}
|
#CloseRatioByVolume(*args) ⇒ Object
56725 56726 56727 56728 56729 56730 56731 56732 56733 56734 56735 56736 56737 56738 56739 56740 56741 56742 56743 56744 56745 56746 |
# File 'ext/ctp/ctp.cxx', line 56725
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByVolume_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseRatioByVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->CloseRatioByVolume);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#CloseRatioByVolume=(*args) ⇒ Object
56696 56697 56698 56699 56700 56701 56702 56703 56704 56705 56706 56707 56708 56709 56710 56711 56712 56713 56714 56715 56716 56717 56718 56719 56720 56721 56722 |
# File 'ext/ctp/ctp.cxx', line 56696
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseRatioByVolume_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
TThostFtdcRatioType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseRatioByVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseRatioByVolume", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->CloseRatioByVolume = arg2;
return Qnil;
fail:
return Qnil;
}
|
#CloseTodayRatioByMoney(*args) ⇒ Object
56778 56779 56780 56781 56782 56783 56784 56785 56786 56787 56788 56789 56790 56791 56792 56793 56794 56795 56796 56797 56798 56799 |
# File 'ext/ctp/ctp.cxx', line 56778
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByMoney_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseTodayRatioByMoney", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->CloseTodayRatioByMoney);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#CloseTodayRatioByMoney=(*args) ⇒ Object
56749 56750 56751 56752 56753 56754 56755 56756 56757 56758 56759 56760 56761 56762 56763 56764 56765 56766 56767 56768 56769 56770 56771 56772 56773 56774 56775 |
# File 'ext/ctp/ctp.cxx', line 56749
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByMoney_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
TThostFtdcRatioType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseTodayRatioByMoney", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseTodayRatioByMoney", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->CloseTodayRatioByMoney = arg2;
return Qnil;
fail:
return Qnil;
}
|
#CloseTodayRatioByVolume(*args) ⇒ Object
56831 56832 56833 56834 56835 56836 56837 56838 56839 56840 56841 56842 56843 56844 56845 56846 56847 56848 56849 56850 56851 56852 |
# File 'ext/ctp/ctp.cxx', line 56831
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByVolume_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseTodayRatioByVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->CloseTodayRatioByVolume);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#CloseTodayRatioByVolume=(*args) ⇒ Object
56802 56803 56804 56805 56806 56807 56808 56809 56810 56811 56812 56813 56814 56815 56816 56817 56818 56819 56820 56821 56822 56823 56824 56825 56826 56827 56828 |
# File 'ext/ctp/ctp.cxx', line 56802
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_CloseTodayRatioByVolume_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
TThostFtdcRatioType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","CloseTodayRatioByVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseTodayRatioByVolume", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->CloseTodayRatioByVolume = arg2;
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
56334 56335 56336 56337 56338 56339 56340 56341 56342 56343 56344 56345 56346 56347 56348 56349 56350 56351 56352 56353 56354 56355 56356 56357 56358 56359 56360 56361 |
# File 'ext/ctp/ctp.cxx', line 56334
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(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
56304 56305 56306 56307 56308 56309 56310 56311 56312 56313 56314 56315 56316 56317 56318 56319 56320 56321 56322 56323 56324 56325 56326 56327 56328 56329 56330 56331 |
# File 'ext/ctp/ctp.cxx', line 56304
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(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;
}
|
#InvestorID(*args) ⇒ Object
56507 56508 56509 56510 56511 56512 56513 56514 56515 56516 56517 56518 56519 56520 56521 56522 56523 56524 56525 56526 56527 56528 56529 56530 56531 56532 56533 56534 |
# File 'ext/ctp/ctp.cxx', line 56507
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
result = (char *) ((arg1)->InvestorID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InvestorID=(*args) ⇒ Object
56477 56478 56479 56480 56481 56482 56483 56484 56485 56486 56487 56488 56489 56490 56491 56492 56493 56494 56495 56496 56497 56498 56499 56500 56501 56502 56503 56504 |
# File 'ext/ctp/ctp.cxx', line 56477
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[13] ;
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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char));
else memset(arg1->InvestorID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorRange(*args) ⇒ Object
56393 56394 56395 56396 56397 56398 56399 56400 56401 56402 56403 56404 56405 56406 56407 56408 56409 56410 56411 56412 56413 56414 |
# File 'ext/ctp/ctp.cxx', line 56393
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorRange_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcInvestorRangeType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InvestorRange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#InvestorRange=(*args) ⇒ Object
56364 56365 56366 56367 56368 56369 56370 56371 56372 56373 56374 56375 56376 56377 56378 56379 56380 56381 56382 56383 56384 56385 56386 56387 56388 56389 56390 |
# File 'ext/ctp/ctp.cxx', line 56364
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_InvestorRange_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
TThostFtdcInvestorRangeType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","InvestorRange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcInvestorRangeType >(val2);
if (arg1) (arg1)->InvestorRange = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OpenRatioByMoney(*args) ⇒ Object
56566 56567 56568 56569 56570 56571 56572 56573 56574 56575 56576 56577 56578 56579 56580 56581 56582 56583 56584 56585 56586 56587 |
# File 'ext/ctp/ctp.cxx', line 56566
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByMoney_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","OpenRatioByMoney", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->OpenRatioByMoney);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#OpenRatioByMoney=(*args) ⇒ Object
56537 56538 56539 56540 56541 56542 56543 56544 56545 56546 56547 56548 56549 56550 56551 56552 56553 56554 56555 56556 56557 56558 56559 56560 56561 56562 56563 |
# File 'ext/ctp/ctp.cxx', line 56537
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByMoney_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
TThostFtdcRatioType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","OpenRatioByMoney", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","OpenRatioByMoney", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->OpenRatioByMoney = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OpenRatioByVolume(*args) ⇒ Object
56619 56620 56621 56622 56623 56624 56625 56626 56627 56628 56629 56630 56631 56632 56633 56634 56635 56636 56637 56638 56639 56640 |
# File 'ext/ctp/ctp.cxx', line 56619
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByVolume_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRatioType 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","OpenRatioByVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->OpenRatioByVolume);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#OpenRatioByVolume=(*args) ⇒ Object
56590 56591 56592 56593 56594 56595 56596 56597 56598 56599 56600 56601 56602 56603 56604 56605 56606 56607 56608 56609 56610 56611 56612 56613 56614 56615 56616 |
# File 'ext/ctp/ctp.cxx', line 56590
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentCommissionRateField_OpenRatioByVolume_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentCommissionRateField *arg1 = (CThostFtdcSyncingInstrumentCommissionRateField *) 0 ;
TThostFtdcRatioType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double 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_CThostFtdcSyncingInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentCommissionRateField *","OpenRatioByVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentCommissionRateField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","OpenRatioByVolume", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->OpenRatioByVolume = arg2;
return Qnil;
fail:
return Qnil;
}
|