Class: Ctp::CThostFtdcInputQuoteActionField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcInputQuoteActionField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ActionFlag(*args) ⇒ Object
- #ActionFlag=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #FrontID(*args) ⇒ Object
- #FrontID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #QuoteActionRef(*args) ⇒ Object
- #QuoteActionRef=(*args) ⇒ Object
- #QuoteRef(*args) ⇒ Object
- #QuoteRef=(*args) ⇒ Object
- #QuoteSysID(*args) ⇒ Object
- #QuoteSysID=(*args) ⇒ Object
- #RequestID(*args) ⇒ Object
- #RequestID=(*args) ⇒ Object
- #SessionID(*args) ⇒ Object
- #SessionID=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
84179 84180 84181 84182 84183 84184 84185 84186 84187 84188 84189 84190 84191 84192 |
# File 'ext/ctp/ctp.cxx', line 84179
SWIGINTERN VALUE
_wrap_new_CThostFtdcInputQuoteActionField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputQuoteActionField";
CThostFtdcInputQuoteActionField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcInputQuoteActionField *)new CThostFtdcInputQuoteActionField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#ActionFlag(*args) ⇒ Object
84020 84021 84022 84023 84024 84025 84026 84027 84028 84029 84030 84031 84032 84033 84034 84035 84036 84037 84038 84039 84040 84041 |
# File 'ext/ctp/ctp.cxx', line 84020
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_ActionFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcActionFlagType 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","ActionFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (TThostFtdcActionFlagType) ((arg1)->ActionFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#ActionFlag=(*args) ⇒ Object
83991 83992 83993 83994 83995 83996 83997 83998 83999 84000 84001 84002 84003 84004 84005 84006 84007 84008 84009 84010 84011 84012 84013 84014 84015 84016 84017 |
# File 'ext/ctp/ctp.cxx', line 83991
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_ActionFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ;
TThostFtdcActionFlagType 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","ActionFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionFlagType","ActionFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcActionFlagType >(val2);
if (arg1) (arg1)->ActionFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BrokerID(*args) ⇒ Object
83509 83510 83511 83512 83513 83514 83515 83516 83517 83518 83519 83520 83521 83522 83523 83524 83525 83526 83527 83528 83529 83530 83531 83532 83533 83534 83535 83536 |
# File 'ext/ctp/ctp.cxx', line 83509
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (char *) ((arg1)->BrokerID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BrokerID=(*args) ⇒ Object
83479 83480 83481 83482 83483 83484 83485 83486 83487 83488 83489 83490 83491 83492 83493 83494 83495 83496 83497 83498 83499 83500 83501 83502 83503 83504 83505 83506 |
# File 'ext/ctp/ctp.cxx', line 83479
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","BrokerID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BrokerID,arg2,11*sizeof(char));
else memset(arg1->BrokerID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ExchangeID(*args) ⇒ Object
83901 83902 83903 83904 83905 83906 83907 83908 83909 83910 83911 83912 83913 83914 83915 83916 83917 83918 83919 83920 83921 83922 83923 83924 83925 83926 83927 83928 |
# File 'ext/ctp/ctp.cxx', line 83901
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(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
83871 83872 83873 83874 83875 83876 83877 83878 83879 83880 83881 83882 83883 83884 83885 83886 83887 83888 83889 83890 83891 83892 83893 83894 83895 83896 83897 83898 |
# File 'ext/ctp/ctp.cxx', line 83871
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(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;
}
|
#FrontID(*args) ⇒ Object
83794 83795 83796 83797 83798 83799 83800 83801 83802 83803 83804 83805 83806 83807 83808 83809 83810 83811 83812 83813 83814 83815 |
# File 'ext/ctp/ctp.cxx', line 83794
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_FrontID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcFrontIDType 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","FrontID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (TThostFtdcFrontIDType) ((arg1)->FrontID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#FrontID=(*args) ⇒ Object
83765 83766 83767 83768 83769 83770 83771 83772 83773 83774 83775 83776 83777 83778 83779 83780 83781 83782 83783 83784 83785 83786 83787 83788 83789 83790 83791 |
# File 'ext/ctp/ctp.cxx', line 83765
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_FrontID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ;
TThostFtdcFrontIDType 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","FrontID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcFrontIDType >(val2);
if (arg1) (arg1)->FrontID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
84134 84135 84136 84137 84138 84139 84140 84141 84142 84143 84144 84145 84146 84147 84148 84149 84150 84151 84152 84153 84154 84155 84156 84157 84158 84159 84160 84161 |
# File 'ext/ctp/ctp.cxx', line 84134
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (char *) ((arg1)->InstrumentID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InstrumentID=(*args) ⇒ Object
84104 84105 84106 84107 84108 84109 84110 84111 84112 84113 84114 84115 84116 84117 84118 84119 84120 84121 84122 84123 84124 84125 84126 84127 84128 84129 84130 84131 |
# File 'ext/ctp/ctp.cxx', line 84104
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char));
else memset(arg1->InstrumentID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorID(*args) ⇒ Object
83569 83570 83571 83572 83573 83574 83575 83576 83577 83578 83579 83580 83581 83582 83583 83584 83585 83586 83587 83588 83589 83590 83591 83592 83593 83594 83595 83596 |
# File 'ext/ctp/ctp.cxx', line 83569
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (char *) ((arg1)->InvestorID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InvestorID=(*args) ⇒ Object
83539 83540 83541 83542 83543 83544 83545 83546 83547 83548 83549 83550 83551 83552 83553 83554 83555 83556 83557 83558 83559 83560 83561 83562 83563 83564 83565 83566 |
# File 'ext/ctp/ctp.cxx', line 83539
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char));
else memset(arg1->InvestorID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#QuoteActionRef(*args) ⇒ Object
83628 83629 83630 83631 83632 83633 83634 83635 83636 83637 83638 83639 83640 83641 83642 83643 83644 83645 83646 83647 83648 83649 |
# File 'ext/ctp/ctp.cxx', line 83628
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_QuoteActionRef_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcOrderActionRefType 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteActionRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (TThostFtdcOrderActionRefType) ((arg1)->QuoteActionRef);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#QuoteActionRef=(*args) ⇒ Object
83599 83600 83601 83602 83603 83604 83605 83606 83607 83608 83609 83610 83611 83612 83613 83614 83615 83616 83617 83618 83619 83620 83621 83622 83623 83624 83625 |
# File 'ext/ctp/ctp.cxx', line 83599
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_QuoteActionRef_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ;
TThostFtdcOrderActionRefType 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteActionRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOrderActionRefType","QuoteActionRef", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcOrderActionRefType >(val2);
if (arg1) (arg1)->QuoteActionRef = arg2;
return Qnil;
fail:
return Qnil;
}
|
#QuoteRef(*args) ⇒ Object
83682 83683 83684 83685 83686 83687 83688 83689 83690 83691 83692 83693 83694 83695 83696 83697 83698 83699 83700 83701 83702 83703 83704 83705 83706 83707 83708 83709 |
# File 'ext/ctp/ctp.cxx', line 83682
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_QuoteRef_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (char *) ((arg1)->QuoteRef);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#QuoteRef=(*args) ⇒ Object
83652 83653 83654 83655 83656 83657 83658 83659 83660 83661 83662 83663 83664 83665 83666 83667 83668 83669 83670 83671 83672 83673 83674 83675 83676 83677 83678 83679 |
# File 'ext/ctp/ctp.cxx', line 83652
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_QuoteRef_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","QuoteRef", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->QuoteRef,arg2,13*sizeof(char));
else memset(arg1->QuoteRef,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#QuoteSysID(*args) ⇒ Object
83961 83962 83963 83964 83965 83966 83967 83968 83969 83970 83971 83972 83973 83974 83975 83976 83977 83978 83979 83980 83981 83982 83983 83984 83985 83986 83987 83988 |
# File 'ext/ctp/ctp.cxx', line 83961
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_QuoteSysID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteSysID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (char *) ((arg1)->QuoteSysID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#QuoteSysID=(*args) ⇒ Object
83931 83932 83933 83934 83935 83936 83937 83938 83939 83940 83941 83942 83943 83944 83945 83946 83947 83948 83949 83950 83951 83952 83953 83954 83955 83956 83957 83958 |
# File 'ext/ctp/ctp.cxx', line 83931
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_QuoteSysID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","QuoteSysID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","QuoteSysID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->QuoteSysID,arg2,21*sizeof(char));
else memset(arg1->QuoteSysID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#RequestID(*args) ⇒ Object
83741 83742 83743 83744 83745 83746 83747 83748 83749 83750 83751 83752 83753 83754 83755 83756 83757 83758 83759 83760 83761 83762 |
# File 'ext/ctp/ctp.cxx', line 83741
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_RequestID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","RequestID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (TThostFtdcRequestIDType) ((arg1)->RequestID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#RequestID=(*args) ⇒ Object
83712 83713 83714 83715 83716 83717 83718 83719 83720 83721 83722 83723 83724 83725 83726 83727 83728 83729 83730 83731 83732 83733 83734 83735 83736 83737 83738 |
# File 'ext/ctp/ctp.cxx', line 83712
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_RequestID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","RequestID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(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;
}
|
#SessionID(*args) ⇒ Object
83847 83848 83849 83850 83851 83852 83853 83854 83855 83856 83857 83858 83859 83860 83861 83862 83863 83864 83865 83866 83867 83868 |
# File 'ext/ctp/ctp.cxx', line 83847
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_SessionID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSessionIDType 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","SessionID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (TThostFtdcSessionIDType) ((arg1)->SessionID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SessionID=(*args) ⇒ Object
83818 83819 83820 83821 83822 83823 83824 83825 83826 83827 83828 83829 83830 83831 83832 83833 83834 83835 83836 83837 83838 83839 83840 83841 83842 83843 83844 |
# File 'ext/ctp/ctp.cxx', line 83818
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_SessionID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ;
TThostFtdcSessionIDType 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","SessionID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSessionIDType >(val2);
if (arg1) (arg1)->SessionID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
84074 84075 84076 84077 84078 84079 84080 84081 84082 84083 84084 84085 84086 84087 84088 84089 84090 84091 84092 84093 84094 84095 84096 84097 84098 84099 84100 84101 |
# File 'ext/ctp/ctp.cxx', line 84074
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
result = (char *) ((arg1)->UserID);
{
size_t size = SWIG_strnlen(result, 16);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#UserID=(*args) ⇒ Object
84044 84045 84046 84047 84048 84049 84050 84051 84052 84053 84054 84055 84056 84057 84058 84059 84060 84061 84062 84063 84064 84065 84066 84067 84068 84069 84070 84071 |
# File 'ext/ctp/ctp.cxx', line 84044
SWIGINTERN VALUE
_wrap_CThostFtdcInputQuoteActionField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputQuoteActionField *arg1 = (CThostFtdcInputQuoteActionField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[16] ;
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_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 16);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char));
else memset(arg1->UserID,0,16*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|