Class: Ctp::CThostFtdcExchangeOrderField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcExchangeOrderField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ActiveTime(*args) ⇒ Object
- #ActiveTime=(*args) ⇒ Object
- #ActiveTraderID(*args) ⇒ Object
- #ActiveTraderID=(*args) ⇒ Object
- #BusinessUnit(*args) ⇒ Object
- #BusinessUnit=(*args) ⇒ Object
- #CancelTime(*args) ⇒ Object
- #CancelTime=(*args) ⇒ Object
- #ClearingPartID(*args) ⇒ Object
- #ClearingPartID=(*args) ⇒ Object
- #ClientID(*args) ⇒ Object
- #ClientID=(*args) ⇒ Object
- #CombHedgeFlag(*args) ⇒ Object
- #CombHedgeFlag=(*args) ⇒ Object
- #CombOffsetFlag(*args) ⇒ Object
- #CombOffsetFlag=(*args) ⇒ Object
- #ContingentCondition(*args) ⇒ Object
- #ContingentCondition=(*args) ⇒ Object
- #Direction(*args) ⇒ Object
- #Direction=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #ExchangeInstID(*args) ⇒ Object
- #ExchangeInstID=(*args) ⇒ Object
- #ForceCloseReason(*args) ⇒ Object
- #ForceCloseReason=(*args) ⇒ Object
- #GTDDate(*args) ⇒ Object
- #GTDDate=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InsertDate(*args) ⇒ Object
- #InsertDate=(*args) ⇒ Object
- #InsertTime(*args) ⇒ Object
- #InsertTime=(*args) ⇒ Object
- #InstallID(*args) ⇒ Object
- #InstallID=(*args) ⇒ Object
- #IsAutoSuspend(*args) ⇒ Object
- #IsAutoSuspend=(*args) ⇒ Object
- #LimitPrice(*args) ⇒ Object
- #LimitPrice=(*args) ⇒ Object
- #MinVolume(*args) ⇒ Object
- #MinVolume=(*args) ⇒ Object
- #NotifySequence(*args) ⇒ Object
- #NotifySequence=(*args) ⇒ Object
- #OrderLocalID(*args) ⇒ Object
- #OrderLocalID=(*args) ⇒ Object
- #OrderPriceType(*args) ⇒ Object
- #OrderPriceType=(*args) ⇒ Object
- #OrderSource(*args) ⇒ Object
- #OrderSource=(*args) ⇒ Object
- #OrderStatus(*args) ⇒ Object
- #OrderStatus=(*args) ⇒ Object
- #OrderSubmitStatus(*args) ⇒ Object
- #OrderSubmitStatus=(*args) ⇒ Object
- #OrderSysID(*args) ⇒ Object
- #OrderSysID=(*args) ⇒ Object
- #OrderType(*args) ⇒ Object
- #OrderType=(*args) ⇒ Object
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
- #RequestID(*args) ⇒ Object
- #RequestID=(*args) ⇒ Object
- #SequenceNo(*args) ⇒ Object
- #SequenceNo=(*args) ⇒ Object
- #SettlementID(*args) ⇒ Object
- #SettlementID=(*args) ⇒ Object
- #StopPrice(*args) ⇒ Object
- #StopPrice=(*args) ⇒ Object
- #SuspendTime(*args) ⇒ Object
- #SuspendTime=(*args) ⇒ Object
- #TimeCondition(*args) ⇒ Object
- #TimeCondition=(*args) ⇒ Object
- #TraderID(*args) ⇒ Object
- #TraderID=(*args) ⇒ Object
- #TradingDay(*args) ⇒ Object
- #TradingDay=(*args) ⇒ Object
- #UpdateTime(*args) ⇒ Object
- #UpdateTime=(*args) ⇒ Object
- #VolumeCondition(*args) ⇒ Object
- #VolumeCondition=(*args) ⇒ Object
- #VolumeTotal(*args) ⇒ Object
- #VolumeTotal=(*args) ⇒ Object
- #VolumeTotalOriginal(*args) ⇒ Object
- #VolumeTotalOriginal=(*args) ⇒ Object
- #VolumeTraded(*args) ⇒ Object
- #VolumeTraded=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
39895 39896 39897 39898 39899 39900 39901 39902 39903 39904 39905 39906 39907 39908 |
# File 'ext/ctp/ctp.cxx', line 39895
SWIGINTERN VALUE
_wrap_new_CThostFtdcExchangeOrderField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeOrderField";
CThostFtdcExchangeOrderField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcExchangeOrderField *)new CThostFtdcExchangeOrderField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#ActiveTime(*args) ⇒ Object
39497 39498 39499 39500 39501 39502 39503 39504 39505 39506 39507 39508 39509 39510 39511 39512 39513 39514 39515 39516 39517 39518 39519 39520 39521 39522 39523 39524 |
# File 'ext/ctp/ctp.cxx', line 39497
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ActiveTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ActiveTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->ActiveTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ActiveTime=(*args) ⇒ Object
39467 39468 39469 39470 39471 39472 39473 39474 39475 39476 39477 39478 39479 39480 39481 39482 39483 39484 39485 39486 39487 39488 39489 39490 39491 39492 39493 39494 |
# File 'ext/ctp/ctp.cxx', line 39467
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ActiveTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ActiveTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActiveTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ActiveTime,arg2,9*sizeof(char));
else memset(arg1->ActiveTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ActiveTraderID(*args) ⇒ Object
39737 39738 39739 39740 39741 39742 39743 39744 39745 39746 39747 39748 39749 39750 39751 39752 39753 39754 39755 39756 39757 39758 39759 39760 39761 39762 39763 39764 |
# File 'ext/ctp/ctp.cxx', line 39737
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ActiveTraderID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ActiveTraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->ActiveTraderID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ActiveTraderID=(*args) ⇒ Object
39707 39708 39709 39710 39711 39712 39713 39714 39715 39716 39717 39718 39719 39720 39721 39722 39723 39724 39725 39726 39727 39728 39729 39730 39731 39732 39733 39734 |
# File 'ext/ctp/ctp.cxx', line 39707
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ActiveTraderID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[21] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ActiveTraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ActiveTraderID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ActiveTraderID,arg2,21*sizeof(char));
else memset(arg1->ActiveTraderID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BusinessUnit(*args) ⇒ Object
38307 38308 38309 38310 38311 38312 38313 38314 38315 38316 38317 38318 38319 38320 38321 38322 38323 38324 38325 38326 38327 38328 38329 38330 38331 38332 38333 38334 |
# File 'ext/ctp/ctp.cxx', line 38307
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","BusinessUnit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->BusinessUnit);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BusinessUnit=(*args) ⇒ Object
38277 38278 38279 38280 38281 38282 38283 38284 38285 38286 38287 38288 38289 38290 38291 38292 38293 38294 38295 38296 38297 38298 38299 38300 38301 38302 38303 38304 |
# File 'ext/ctp/ctp.cxx', line 38277
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[21] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","BusinessUnit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char));
else memset(arg1->BusinessUnit,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CancelTime(*args) ⇒ Object
39677 39678 39679 39680 39681 39682 39683 39684 39685 39686 39687 39688 39689 39690 39691 39692 39693 39694 39695 39696 39697 39698 39699 39700 39701 39702 39703 39704 |
# File 'ext/ctp/ctp.cxx', line 39677
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_CancelTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CancelTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->CancelTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CancelTime=(*args) ⇒ Object
39647 39648 39649 39650 39651 39652 39653 39654 39655 39656 39657 39658 39659 39660 39661 39662 39663 39664 39665 39666 39667 39668 39669 39670 39671 39672 39673 39674 |
# File 'ext/ctp/ctp.cxx', line 39647
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_CancelTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CancelTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CancelTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CancelTime,arg2,9*sizeof(char));
else memset(arg1->CancelTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ClearingPartID(*args) ⇒ Object
39797 39798 39799 39800 39801 39802 39803 39804 39805 39806 39807 39808 39809 39810 39811 39812 39813 39814 39815 39816 39817 39818 39819 39820 39821 39822 39823 39824 |
# File 'ext/ctp/ctp.cxx', line 39797
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ClearingPartID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->ClearingPartID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ClearingPartID=(*args) ⇒ Object
39767 39768 39769 39770 39771 39772 39773 39774 39775 39776 39777 39778 39779 39780 39781 39782 39783 39784 39785 39786 39787 39788 39789 39790 39791 39792 39793 39794 |
# File 'ext/ctp/ctp.cxx', line 39767
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ClearingPartID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char));
else memset(arg1->ClearingPartID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ClientID(*args) ⇒ Object
38600 38601 38602 38603 38604 38605 38606 38607 38608 38609 38610 38611 38612 38613 38614 38615 38616 38617 38618 38619 38620 38621 38622 38623 38624 38625 38626 38627 |
# File 'ext/ctp/ctp.cxx', line 38600
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ClientID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ClientID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->ClientID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ClientID=(*args) ⇒ Object
38570 38571 38572 38573 38574 38575 38576 38577 38578 38579 38580 38581 38582 38583 38584 38585 38586 38587 38588 38589 38590 38591 38592 38593 38594 38595 38596 38597 |
# File 'ext/ctp/ctp.cxx', line 38570
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ClientID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ClientID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClientID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ClientID,arg2,11*sizeof(char));
else memset(arg1->ClientID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CombHedgeFlag(*args) ⇒ Object
37710 37711 37712 37713 37714 37715 37716 37717 37718 37719 37720 37721 37722 37723 37724 37725 37726 37727 37728 37729 37730 37731 37732 37733 37734 37735 37736 37737 |
# File 'ext/ctp/ctp.cxx', line 37710
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_CombHedgeFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CombHedgeFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->CombHedgeFlag);
{
size_t size = SWIG_strnlen(result, 5);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CombHedgeFlag=(*args) ⇒ Object
37680 37681 37682 37683 37684 37685 37686 37687 37688 37689 37690 37691 37692 37693 37694 37695 37696 37697 37698 37699 37700 37701 37702 37703 37704 37705 37706 37707 |
# File 'ext/ctp/ctp.cxx', line 37680
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_CombHedgeFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[5] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CombHedgeFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 5);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombHedgeFlag", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CombHedgeFlag,arg2,5*sizeof(char));
else memset(arg1->CombHedgeFlag,0,5*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CombOffsetFlag(*args) ⇒ Object
37650 37651 37652 37653 37654 37655 37656 37657 37658 37659 37660 37661 37662 37663 37664 37665 37666 37667 37668 37669 37670 37671 37672 37673 37674 37675 37676 37677 |
# File 'ext/ctp/ctp.cxx', line 37650
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_CombOffsetFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CombOffsetFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->CombOffsetFlag);
{
size_t size = SWIG_strnlen(result, 5);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CombOffsetFlag=(*args) ⇒ Object
37620 37621 37622 37623 37624 37625 37626 37627 37628 37629 37630 37631 37632 37633 37634 37635 37636 37637 37638 37639 37640 37641 37642 37643 37644 37645 37646 37647 |
# File 'ext/ctp/ctp.cxx', line 37620
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_CombOffsetFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[5] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","CombOffsetFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 5);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","CombOffsetFlag", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CombOffsetFlag,arg2,5*sizeof(char));
else memset(arg1->CombOffsetFlag,0,5*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ContingentCondition(*args) ⇒ Object
38094 38095 38096 38097 38098 38099 38100 38101 38102 38103 38104 38105 38106 38107 38108 38109 38110 38111 38112 38113 38114 38115 |
# File 'ext/ctp/ctp.cxx', line 38094
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ContingentCondition_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcContingentConditionType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ContingentCondition", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcContingentConditionType) ((arg1)->ContingentCondition);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#ContingentCondition=(*args) ⇒ Object
38065 38066 38067 38068 38069 38070 38071 38072 38073 38074 38075 38076 38077 38078 38079 38080 38081 38082 38083 38084 38085 38086 38087 38088 38089 38090 38091 |
# File 'ext/ctp/ctp.cxx', line 38065
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ContingentCondition_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcContingentConditionType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ContingentCondition", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcContingentConditionType","ContingentCondition", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcContingentConditionType >(val2);
if (arg1) (arg1)->ContingentCondition = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Direction(*args) ⇒ Object
37596 37597 37598 37599 37600 37601 37602 37603 37604 37605 37606 37607 37608 37609 37610 37611 37612 37613 37614 37615 37616 37617 |
# File 'ext/ctp/ctp.cxx', line 37596
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_Direction_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcDirectionType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","Direction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcDirectionType) ((arg1)->Direction);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#Direction=(*args) ⇒ Object
37567 37568 37569 37570 37571 37572 37573 37574 37575 37576 37577 37578 37579 37580 37581 37582 37583 37584 37585 37586 37587 37588 37589 37590 37591 37592 37593 |
# File 'ext/ctp/ctp.cxx', line 37567
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_Direction_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcDirectionType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","Direction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcDirectionType >(val2);
if (arg1) (arg1)->Direction = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ExchangeID(*args) ⇒ Object
38480 38481 38482 38483 38484 38485 38486 38487 38488 38489 38490 38491 38492 38493 38494 38495 38496 38497 38498 38499 38500 38501 38502 38503 38504 38505 38506 38507 |
# File 'ext/ctp/ctp.cxx', line 38480
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->ExchangeID);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ExchangeID=(*args) ⇒ Object
38450 38451 38452 38453 38454 38455 38456 38457 38458 38459 38460 38461 38462 38463 38464 38465 38466 38467 38468 38469 38470 38471 38472 38473 38474 38475 38476 38477 |
# File 'ext/ctp/ctp.cxx', line 38450
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ExchangeID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ExchangeID,arg2,9*sizeof(char));
else memset(arg1->ExchangeID,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ExchangeInstID(*args) ⇒ Object
38660 38661 38662 38663 38664 38665 38666 38667 38668 38669 38670 38671 38672 38673 38674 38675 38676 38677 38678 38679 38680 38681 38682 38683 38684 38685 38686 38687 |
# File 'ext/ctp/ctp.cxx', line 38660
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ExchangeInstID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->ExchangeInstID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ExchangeInstID=(*args) ⇒ Object
38630 38631 38632 38633 38634 38635 38636 38637 38638 38639 38640 38641 38642 38643 38644 38645 38646 38647 38648 38649 38650 38651 38652 38653 38654 38655 38656 38657 |
# File 'ext/ctp/ctp.cxx', line 38630
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ExchangeInstID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ExchangeInstID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ExchangeInstID,arg2,31*sizeof(char));
else memset(arg1->ExchangeInstID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ForceCloseReason(*args) ⇒ Object
38200 38201 38202 38203 38204 38205 38206 38207 38208 38209 38210 38211 38212 38213 38214 38215 38216 38217 38218 38219 38220 38221 |
# File 'ext/ctp/ctp.cxx', line 38200
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ForceCloseReason_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcForceCloseReasonType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ForceCloseReason", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcForceCloseReasonType) ((arg1)->ForceCloseReason);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#ForceCloseReason=(*args) ⇒ Object
38171 38172 38173 38174 38175 38176 38177 38178 38179 38180 38181 38182 38183 38184 38185 38186 38187 38188 38189 38190 38191 38192 38193 38194 38195 38196 38197 |
# File 'ext/ctp/ctp.cxx', line 38171
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ForceCloseReason_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcForceCloseReasonType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ForceCloseReason", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcForceCloseReasonType","ForceCloseReason", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcForceCloseReasonType >(val2);
if (arg1) (arg1)->ForceCloseReason = arg2;
return Qnil;
fail:
return Qnil;
}
|
#GTDDate(*args) ⇒ Object
37929 37930 37931 37932 37933 37934 37935 37936 37937 37938 37939 37940 37941 37942 37943 37944 37945 37946 37947 37948 37949 37950 37951 37952 37953 37954 37955 37956 |
# File 'ext/ctp/ctp.cxx', line 37929
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_GTDDate_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","GTDDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->GTDDate);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#GTDDate=(*args) ⇒ Object
37899 37900 37901 37902 37903 37904 37905 37906 37907 37908 37909 37910 37911 37912 37913 37914 37915 37916 37917 37918 37919 37920 37921 37922 37923 37924 37925 37926 |
# File 'ext/ctp/ctp.cxx', line 37899
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_GTDDate_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","GTDDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","GTDDate", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->GTDDate,arg2,9*sizeof(char));
else memset(arg1->GTDDate,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InsertDate(*args) ⇒ Object
39377 39378 39379 39380 39381 39382 39383 39384 39385 39386 39387 39388 39389 39390 39391 39392 39393 39394 39395 39396 39397 39398 39399 39400 39401 39402 39403 39404 |
# File 'ext/ctp/ctp.cxx', line 39377
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_InsertDate_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InsertDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->InsertDate);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InsertDate=(*args) ⇒ Object
39347 39348 39349 39350 39351 39352 39353 39354 39355 39356 39357 39358 39359 39360 39361 39362 39363 39364 39365 39366 39367 39368 39369 39370 39371 39372 39373 39374 |
# File 'ext/ctp/ctp.cxx', line 39347
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_InsertDate_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InsertDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertDate", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InsertDate,arg2,9*sizeof(char));
else memset(arg1->InsertDate,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InsertTime(*args) ⇒ Object
39437 39438 39439 39440 39441 39442 39443 39444 39445 39446 39447 39448 39449 39450 39451 39452 39453 39454 39455 39456 39457 39458 39459 39460 39461 39462 39463 39464 |
# File 'ext/ctp/ctp.cxx', line 39437
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_InsertTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InsertTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->InsertTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InsertTime=(*args) ⇒ Object
39407 39408 39409 39410 39411 39412 39413 39414 39415 39416 39417 39418 39419 39420 39421 39422 39423 39424 39425 39426 39427 39428 39429 39430 39431 39432 39433 39434 |
# File 'ext/ctp/ctp.cxx', line 39407
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_InsertTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InsertTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","InsertTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InsertTime,arg2,9*sizeof(char));
else memset(arg1->InsertTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InstallID(*args) ⇒ Object
38779 38780 38781 38782 38783 38784 38785 38786 38787 38788 38789 38790 38791 38792 38793 38794 38795 38796 38797 38798 38799 38800 |
# File 'ext/ctp/ctp.cxx', line 38779
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_InstallID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcInstallIDType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InstallID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcInstallIDType) ((arg1)->InstallID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#InstallID=(*args) ⇒ Object
38750 38751 38752 38753 38754 38755 38756 38757 38758 38759 38760 38761 38762 38763 38764 38765 38766 38767 38768 38769 38770 38771 38772 38773 38774 38775 38776 |
# File 'ext/ctp/ctp.cxx', line 38750
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_InstallID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcInstallIDType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","InstallID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstallIDType","InstallID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcInstallIDType >(val2);
if (arg1) (arg1)->InstallID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#IsAutoSuspend(*args) ⇒ Object
38253 38254 38255 38256 38257 38258 38259 38260 38261 38262 38263 38264 38265 38266 38267 38268 38269 38270 38271 38272 38273 38274 |
# File 'ext/ctp/ctp.cxx', line 38253
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_IsAutoSuspend_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcBoolType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","IsAutoSuspend", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcBoolType) ((arg1)->IsAutoSuspend);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#IsAutoSuspend=(*args) ⇒ Object
38224 38225 38226 38227 38228 38229 38230 38231 38232 38233 38234 38235 38236 38237 38238 38239 38240 38241 38242 38243 38244 38245 38246 38247 38248 38249 38250 |
# File 'ext/ctp/ctp.cxx', line 38224
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_IsAutoSuspend_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcBoolType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","IsAutoSuspend", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsAutoSuspend", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBoolType >(val2);
if (arg1) (arg1)->IsAutoSuspend = arg2;
return Qnil;
fail:
return Qnil;
}
|
#LimitPrice(*args) ⇒ Object
37769 37770 37771 37772 37773 37774 37775 37776 37777 37778 37779 37780 37781 37782 37783 37784 37785 37786 37787 37788 37789 37790 |
# File 'ext/ctp/ctp.cxx', line 37769
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_LimitPrice_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","LimitPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->LimitPrice);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#LimitPrice=(*args) ⇒ Object
37740 37741 37742 37743 37744 37745 37746 37747 37748 37749 37750 37751 37752 37753 37754 37755 37756 37757 37758 37759 37760 37761 37762 37763 37764 37765 37766 |
# File 'ext/ctp/ctp.cxx', line 37740
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_LimitPrice_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcPriceType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","LimitPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LimitPrice", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->LimitPrice = arg2;
return Qnil;
fail:
return Qnil;
}
|
#MinVolume(*args) ⇒ Object
38041 38042 38043 38044 38045 38046 38047 38048 38049 38050 38051 38052 38053 38054 38055 38056 38057 38058 38059 38060 38061 38062 |
# File 'ext/ctp/ctp.cxx', line 38041
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_MinVolume_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","MinVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcVolumeType) ((arg1)->MinVolume);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#MinVolume=(*args) ⇒ Object
38012 38013 38014 38015 38016 38017 38018 38019 38020 38021 38022 38023 38024 38025 38026 38027 38028 38029 38030 38031 38032 38033 38034 38035 38036 38037 38038 |
# File 'ext/ctp/ctp.cxx', line 38012
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_MinVolume_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","MinVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","MinVolume", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcVolumeType >(val2);
if (arg1) (arg1)->MinVolume = arg2;
return Qnil;
fail:
return Qnil;
}
|
#NotifySequence(*args) ⇒ Object
38885 38886 38887 38888 38889 38890 38891 38892 38893 38894 38895 38896 38897 38898 38899 38900 38901 38902 38903 38904 38905 38906 |
# File 'ext/ctp/ctp.cxx', line 38885
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_NotifySequence_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","NotifySequence", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcSequenceNoType) ((arg1)->NotifySequence);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#NotifySequence=(*args) ⇒ Object
38856 38857 38858 38859 38860 38861 38862 38863 38864 38865 38866 38867 38868 38869 38870 38871 38872 38873 38874 38875 38876 38877 38878 38879 38880 38881 38882 |
# File 'ext/ctp/ctp.cxx', line 38856
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_NotifySequence_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","NotifySequence", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","NotifySequence", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSequenceNoType >(val2);
if (arg1) (arg1)->NotifySequence = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OrderLocalID(*args) ⇒ Object
38420 38421 38422 38423 38424 38425 38426 38427 38428 38429 38430 38431 38432 38433 38434 38435 38436 38437 38438 38439 38440 38441 38442 38443 38444 38445 38446 38447 |
# File 'ext/ctp/ctp.cxx', line 38420
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderLocalID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->OrderLocalID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#OrderLocalID=(*args) ⇒ Object
38390 38391 38392 38393 38394 38395 38396 38397 38398 38399 38400 38401 38402 38403 38404 38405 38406 38407 38408 38409 38410 38411 38412 38413 38414 38415 38416 38417 |
# File 'ext/ctp/ctp.cxx', line 38390
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderLocalID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderLocalID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->OrderLocalID,arg2,13*sizeof(char));
else memset(arg1->OrderLocalID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#OrderPriceType(*args) ⇒ Object
37543 37544 37545 37546 37547 37548 37549 37550 37551 37552 37553 37554 37555 37556 37557 37558 37559 37560 37561 37562 37563 37564 |
# File 'ext/ctp/ctp.cxx', line 37543
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderPriceType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcOrderPriceTypeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderPriceType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcOrderPriceTypeType) ((arg1)->OrderPriceType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#OrderPriceType=(*args) ⇒ Object
37514 37515 37516 37517 37518 37519 37520 37521 37522 37523 37524 37525 37526 37527 37528 37529 37530 37531 37532 37533 37534 37535 37536 37537 37538 37539 37540 |
# File 'ext/ctp/ctp.cxx', line 37514
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderPriceType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcOrderPriceTypeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderPriceType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderPriceTypeType","OrderPriceType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcOrderPriceTypeType >(val2);
if (arg1) (arg1)->OrderPriceType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OrderSource(*args) ⇒ Object
39111 39112 39113 39114 39115 39116 39117 39118 39119 39120 39121 39122 39123 39124 39125 39126 39127 39128 39129 39130 39131 39132 |
# File 'ext/ctp/ctp.cxx', line 39111
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderSource_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcOrderSourceType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSource", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcOrderSourceType) ((arg1)->OrderSource);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#OrderSource=(*args) ⇒ Object
39082 39083 39084 39085 39086 39087 39088 39089 39090 39091 39092 39093 39094 39095 39096 39097 39098 39099 39100 39101 39102 39103 39104 39105 39106 39107 39108 |
# File 'ext/ctp/ctp.cxx', line 39082
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderSource_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcOrderSourceType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSource", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSourceType","OrderSource", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcOrderSourceType >(val2);
if (arg1) (arg1)->OrderSource = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OrderStatus(*args) ⇒ Object
39164 39165 39166 39167 39168 39169 39170 39171 39172 39173 39174 39175 39176 39177 39178 39179 39180 39181 39182 39183 39184 39185 |
# File 'ext/ctp/ctp.cxx', line 39164
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderStatus_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcOrderStatusType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderStatus", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcOrderStatusType) ((arg1)->OrderStatus);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#OrderStatus=(*args) ⇒ Object
39135 39136 39137 39138 39139 39140 39141 39142 39143 39144 39145 39146 39147 39148 39149 39150 39151 39152 39153 39154 39155 39156 39157 39158 39159 39160 39161 |
# File 'ext/ctp/ctp.cxx', line 39135
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderStatus_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcOrderStatusType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderStatus", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderStatusType","OrderStatus", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcOrderStatusType >(val2);
if (arg1) (arg1)->OrderStatus = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OrderSubmitStatus(*args) ⇒ Object
38832 38833 38834 38835 38836 38837 38838 38839 38840 38841 38842 38843 38844 38845 38846 38847 38848 38849 38850 38851 38852 38853 |
# File 'ext/ctp/ctp.cxx', line 38832
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderSubmitStatus_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcOrderSubmitStatusType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSubmitStatus", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcOrderSubmitStatusType) ((arg1)->OrderSubmitStatus);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#OrderSubmitStatus=(*args) ⇒ Object
38803 38804 38805 38806 38807 38808 38809 38810 38811 38812 38813 38814 38815 38816 38817 38818 38819 38820 38821 38822 38823 38824 38825 38826 38827 38828 38829 |
# File 'ext/ctp/ctp.cxx', line 38803
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderSubmitStatus_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcOrderSubmitStatusType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSubmitStatus", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderSubmitStatusType","OrderSubmitStatus", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcOrderSubmitStatusType >(val2);
if (arg1) (arg1)->OrderSubmitStatus = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OrderSysID(*args) ⇒ Object
39052 39053 39054 39055 39056 39057 39058 39059 39060 39061 39062 39063 39064 39065 39066 39067 39068 39069 39070 39071 39072 39073 39074 39075 39076 39077 39078 39079 |
# File 'ext/ctp/ctp.cxx', line 39052
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderSysID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSysID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->OrderSysID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#OrderSysID=(*args) ⇒ Object
39022 39023 39024 39025 39026 39027 39028 39029 39030 39031 39032 39033 39034 39035 39036 39037 39038 39039 39040 39041 39042 39043 39044 39045 39046 39047 39048 39049 |
# File 'ext/ctp/ctp.cxx', line 39022
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderSysID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[21] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderSysID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char));
else memset(arg1->OrderSysID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#OrderType(*args) ⇒ Object
39217 39218 39219 39220 39221 39222 39223 39224 39225 39226 39227 39228 39229 39230 39231 39232 39233 39234 39235 39236 39237 39238 |
# File 'ext/ctp/ctp.cxx', line 39217
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcOrderTypeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcOrderTypeType) ((arg1)->OrderType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#OrderType=(*args) ⇒ Object
39188 39189 39190 39191 39192 39193 39194 39195 39196 39197 39198 39199 39200 39201 39202 39203 39204 39205 39206 39207 39208 39209 39210 39211 39212 39213 39214 |
# File 'ext/ctp/ctp.cxx', line 39188
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_OrderType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcOrderTypeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","OrderType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderTypeType","OrderType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcOrderTypeType >(val2);
if (arg1) (arg1)->OrderType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ParticipantID(*args) ⇒ Object
38540 38541 38542 38543 38544 38545 38546 38547 38548 38549 38550 38551 38552 38553 38554 38555 38556 38557 38558 38559 38560 38561 38562 38563 38564 38565 38566 38567 |
# File 'ext/ctp/ctp.cxx', line 38540
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->ParticipantID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ParticipantID=(*args) ⇒ Object
38510 38511 38512 38513 38514 38515 38516 38517 38518 38519 38520 38521 38522 38523 38524 38525 38526 38527 38528 38529 38530 38531 38532 38533 38534 38535 38536 38537 |
# File 'ext/ctp/ctp.cxx', line 38510
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ParticipantID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ParticipantID,arg2,11*sizeof(char));
else memset(arg1->ParticipantID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#RequestID(*args) ⇒ Object
38366 38367 38368 38369 38370 38371 38372 38373 38374 38375 38376 38377 38378 38379 38380 38381 38382 38383 38384 38385 38386 38387 |
# File 'ext/ctp/ctp.cxx', line 38366
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRequestIDType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","RequestID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcRequestIDType) ((arg1)->RequestID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#RequestID=(*args) ⇒ Object
38337 38338 38339 38340 38341 38342 38343 38344 38345 38346 38347 38348 38349 38350 38351 38352 38353 38354 38355 38356 38357 38358 38359 38360 38361 38362 38363 |
# File 'ext/ctp/ctp.cxx', line 38337
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcRequestIDType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","RequestID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRequestIDType >(val2);
if (arg1) (arg1)->RequestID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SequenceNo(*args) ⇒ Object
39856 39857 39858 39859 39860 39861 39862 39863 39864 39865 39866 39867 39868 39869 39870 39871 39872 39873 39874 39875 39876 39877 |
# File 'ext/ctp/ctp.cxx', line 39856
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_SequenceNo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SequenceNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SequenceNo=(*args) ⇒ Object
39827 39828 39829 39830 39831 39832 39833 39834 39835 39836 39837 39838 39839 39840 39841 39842 39843 39844 39845 39846 39847 39848 39849 39850 39851 39852 39853 |
# File 'ext/ctp/ctp.cxx', line 39827
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_SequenceNo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SequenceNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSequenceNoType >(val2);
if (arg1) (arg1)->SequenceNo = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SettlementID(*args) ⇒ Object
38998 38999 39000 39001 39002 39003 39004 39005 39006 39007 39008 39009 39010 39011 39012 39013 39014 39015 39016 39017 39018 39019 |
# File 'ext/ctp/ctp.cxx', line 38998
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_SettlementID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSettlementIDType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SettlementID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SettlementID=(*args) ⇒ Object
38969 38970 38971 38972 38973 38974 38975 38976 38977 38978 38979 38980 38981 38982 38983 38984 38985 38986 38987 38988 38989 38990 38991 38992 38993 38994 38995 |
# File 'ext/ctp/ctp.cxx', line 38969
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_SettlementID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcSettlementIDType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SettlementID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSettlementIDType >(val2);
if (arg1) (arg1)->SettlementID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#StopPrice(*args) ⇒ Object
38147 38148 38149 38150 38151 38152 38153 38154 38155 38156 38157 38158 38159 38160 38161 38162 38163 38164 38165 38166 38167 38168 |
# File 'ext/ctp/ctp.cxx', line 38147
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_StopPrice_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","StopPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->StopPrice);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#StopPrice=(*args) ⇒ Object
38118 38119 38120 38121 38122 38123 38124 38125 38126 38127 38128 38129 38130 38131 38132 38133 38134 38135 38136 38137 38138 38139 38140 38141 38142 38143 38144 |
# File 'ext/ctp/ctp.cxx', line 38118
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_StopPrice_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcPriceType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","StopPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","StopPrice", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->StopPrice = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SuspendTime(*args) ⇒ Object
39557 39558 39559 39560 39561 39562 39563 39564 39565 39566 39567 39568 39569 39570 39571 39572 39573 39574 39575 39576 39577 39578 39579 39580 39581 39582 39583 39584 |
# File 'ext/ctp/ctp.cxx', line 39557
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_SuspendTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SuspendTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->SuspendTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#SuspendTime=(*args) ⇒ Object
39527 39528 39529 39530 39531 39532 39533 39534 39535 39536 39537 39538 39539 39540 39541 39542 39543 39544 39545 39546 39547 39548 39549 39550 39551 39552 39553 39554 |
# File 'ext/ctp/ctp.cxx', line 39527
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_SuspendTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","SuspendTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SuspendTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->SuspendTime,arg2,9*sizeof(char));
else memset(arg1->SuspendTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TimeCondition(*args) ⇒ Object
37875 37876 37877 37878 37879 37880 37881 37882 37883 37884 37885 37886 37887 37888 37889 37890 37891 37892 37893 37894 37895 37896 |
# File 'ext/ctp/ctp.cxx', line 37875
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_TimeCondition_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTimeConditionType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TimeCondition", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcTimeConditionType) ((arg1)->TimeCondition);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#TimeCondition=(*args) ⇒ Object
37846 37847 37848 37849 37850 37851 37852 37853 37854 37855 37856 37857 37858 37859 37860 37861 37862 37863 37864 37865 37866 37867 37868 37869 37870 37871 37872 |
# File 'ext/ctp/ctp.cxx', line 37846
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_TimeCondition_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcTimeConditionType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TimeCondition", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTimeConditionType","TimeCondition", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTimeConditionType >(val2);
if (arg1) (arg1)->TimeCondition = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TraderID(*args) ⇒ Object
38720 38721 38722 38723 38724 38725 38726 38727 38728 38729 38730 38731 38732 38733 38734 38735 38736 38737 38738 38739 38740 38741 38742 38743 38744 38745 38746 38747 |
# File 'ext/ctp/ctp.cxx', line 38720
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_TraderID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->TraderID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TraderID=(*args) ⇒ Object
38690 38691 38692 38693 38694 38695 38696 38697 38698 38699 38700 38701 38702 38703 38704 38705 38706 38707 38708 38709 38710 38711 38712 38713 38714 38715 38716 38717 |
# File 'ext/ctp/ctp.cxx', line 38690
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_TraderID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[21] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TraderID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TraderID,arg2,21*sizeof(char));
else memset(arg1->TraderID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradingDay(*args) ⇒ Object
38939 38940 38941 38942 38943 38944 38945 38946 38947 38948 38949 38950 38951 38952 38953 38954 38955 38956 38957 38958 38959 38960 38961 38962 38963 38964 38965 38966 |
# File 'ext/ctp/ctp.cxx', line 38939
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_TradingDay_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->TradingDay);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradingDay=(*args) ⇒ Object
38909 38910 38911 38912 38913 38914 38915 38916 38917 38918 38919 38920 38921 38922 38923 38924 38925 38926 38927 38928 38929 38930 38931 38932 38933 38934 38935 38936 |
# File 'ext/ctp/ctp.cxx', line 38909
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_TradingDay_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char));
else memset(arg1->TradingDay,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#UpdateTime(*args) ⇒ Object
39617 39618 39619 39620 39621 39622 39623 39624 39625 39626 39627 39628 39629 39630 39631 39632 39633 39634 39635 39636 39637 39638 39639 39640 39641 39642 39643 39644 |
# File 'ext/ctp/ctp.cxx', line 39617
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_UpdateTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","UpdateTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (char *) ((arg1)->UpdateTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#UpdateTime=(*args) ⇒ Object
39587 39588 39589 39590 39591 39592 39593 39594 39595 39596 39597 39598 39599 39600 39601 39602 39603 39604 39605 39606 39607 39608 39609 39610 39611 39612 39613 39614 |
# File 'ext/ctp/ctp.cxx', line 39587
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_UpdateTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","UpdateTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","UpdateTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->UpdateTime,arg2,9*sizeof(char));
else memset(arg1->UpdateTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#VolumeCondition(*args) ⇒ Object
37988 37989 37990 37991 37992 37993 37994 37995 37996 37997 37998 37999 38000 38001 38002 38003 38004 38005 38006 38007 38008 38009 |
# File 'ext/ctp/ctp.cxx', line 37988
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_VolumeCondition_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcVolumeConditionType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeCondition", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcVolumeConditionType) ((arg1)->VolumeCondition);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#VolumeCondition=(*args) ⇒ Object
37959 37960 37961 37962 37963 37964 37965 37966 37967 37968 37969 37970 37971 37972 37973 37974 37975 37976 37977 37978 37979 37980 37981 37982 37983 37984 37985 |
# File 'ext/ctp/ctp.cxx', line 37959
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_VolumeCondition_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcVolumeConditionType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeCondition", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeConditionType","VolumeCondition", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcVolumeConditionType >(val2);
if (arg1) (arg1)->VolumeCondition = arg2;
return Qnil;
fail:
return Qnil;
}
|
#VolumeTotal(*args) ⇒ Object
39323 39324 39325 39326 39327 39328 39329 39330 39331 39332 39333 39334 39335 39336 39337 39338 39339 39340 39341 39342 39343 39344 |
# File 'ext/ctp/ctp.cxx', line 39323
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_VolumeTotal_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTotal", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcVolumeType) ((arg1)->VolumeTotal);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#VolumeTotal=(*args) ⇒ Object
39294 39295 39296 39297 39298 39299 39300 39301 39302 39303 39304 39305 39306 39307 39308 39309 39310 39311 39312 39313 39314 39315 39316 39317 39318 39319 39320 |
# File 'ext/ctp/ctp.cxx', line 39294
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_VolumeTotal_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTotal", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotal", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcVolumeType >(val2);
if (arg1) (arg1)->VolumeTotal = arg2;
return Qnil;
fail:
return Qnil;
}
|
#VolumeTotalOriginal(*args) ⇒ Object
37822 37823 37824 37825 37826 37827 37828 37829 37830 37831 37832 37833 37834 37835 37836 37837 37838 37839 37840 37841 37842 37843 |
# File 'ext/ctp/ctp.cxx', line 37822
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_VolumeTotalOriginal_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTotalOriginal", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcVolumeType) ((arg1)->VolumeTotalOriginal);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#VolumeTotalOriginal=(*args) ⇒ Object
37793 37794 37795 37796 37797 37798 37799 37800 37801 37802 37803 37804 37805 37806 37807 37808 37809 37810 37811 37812 37813 37814 37815 37816 37817 37818 37819 |
# File 'ext/ctp/ctp.cxx', line 37793
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_VolumeTotalOriginal_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTotalOriginal", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTotalOriginal", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcVolumeType >(val2);
if (arg1) (arg1)->VolumeTotalOriginal = arg2;
return Qnil;
fail:
return Qnil;
}
|
#VolumeTraded(*args) ⇒ Object
39270 39271 39272 39273 39274 39275 39276 39277 39278 39279 39280 39281 39282 39283 39284 39285 39286 39287 39288 39289 39290 39291 |
# File 'ext/ctp/ctp.cxx', line 39270
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_VolumeTraded_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTraded", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
result = (TThostFtdcVolumeType) ((arg1)->VolumeTraded);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#VolumeTraded=(*args) ⇒ Object
39241 39242 39243 39244 39245 39246 39247 39248 39249 39250 39251 39252 39253 39254 39255 39256 39257 39258 39259 39260 39261 39262 39263 39264 39265 39266 39267 |
# File 'ext/ctp/ctp.cxx', line 39241
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderField_VolumeTraded_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderField *arg1 = (CThostFtdcExchangeOrderField *) 0 ;
TThostFtdcVolumeType 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_CThostFtdcExchangeOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderField *","VolumeTraded", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","VolumeTraded", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcVolumeType >(val2);
if (arg1) (arg1)->VolumeTraded = arg2;
return Qnil;
fail:
return Qnil;
}
|