Class: Ctp::CThostFtdcOptionInstrTradingRightField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcOptionInstrTradingRightField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #Direction(*args) ⇒ Object
- #Direction=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #InvestorRange(*args) ⇒ Object
- #InvestorRange=(*args) ⇒ Object
- #TradingRight(*args) ⇒ Object
- #TradingRight=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
79221 79222 79223 79224 79225 79226 79227 79228 79229 79230 79231 79232 79233 79234 |
# File 'ext/ctp/ctp.cxx', line 79221
SWIGINTERN VALUE
_wrap_new_CThostFtdcOptionInstrTradingRightField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcOptionInstrTradingRightField";
CThostFtdcOptionInstrTradingRightField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcOptionInstrTradingRightField *)new CThostFtdcOptionInstrTradingRightField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
79010 79011 79012 79013 79014 79015 79016 79017 79018 79019 79020 79021 79022 79023 79024 79025 79026 79027 79028 79029 79030 79031 79032 79033 79034 79035 79036 79037 |
# File 'ext/ctp/ctp.cxx', line 79010
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(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
78980 78981 78982 78983 78984 78985 78986 78987 78988 78989 78990 78991 78992 78993 78994 78995 78996 78997 78998 78999 79000 79001 79002 79003 79004 79005 79006 79007 |
# File 'ext/ctp/ctp.cxx', line 78980
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(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;
}
|
#Direction(*args) ⇒ Object
79129 79130 79131 79132 79133 79134 79135 79136 79137 79138 79139 79140 79141 79142 79143 79144 79145 79146 79147 79148 79149 79150 |
# File 'ext/ctp/ctp.cxx', line 79129
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_Direction_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","Direction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1);
result = (TThostFtdcDirectionType) ((arg1)->Direction);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#Direction=(*args) ⇒ Object
79100 79101 79102 79103 79104 79105 79106 79107 79108 79109 79110 79111 79112 79113 79114 79115 79116 79117 79118 79119 79120 79121 79122 79123 79124 79125 79126 |
# File 'ext/ctp/ctp.cxx', line 79100
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_Direction_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","Direction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(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;
}
|
#InstrumentID(*args) ⇒ Object
78897 78898 78899 78900 78901 78902 78903 78904 78905 78906 78907 78908 78909 78910 78911 78912 78913 78914 78915 78916 78917 78918 78919 78920 78921 78922 78923 78924 |
# File 'ext/ctp/ctp.cxx', line 78897
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(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
78867 78868 78869 78870 78871 78872 78873 78874 78875 78876 78877 78878 78879 78880 78881 78882 78883 78884 78885 78886 78887 78888 78889 78890 78891 78892 78893 78894 |
# File 'ext/ctp/ctp.cxx', line 78867
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(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
79070 79071 79072 79073 79074 79075 79076 79077 79078 79079 79080 79081 79082 79083 79084 79085 79086 79087 79088 79089 79090 79091 79092 79093 79094 79095 79096 79097 |
# File 'ext/ctp/ctp.cxx', line 79070
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(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
79040 79041 79042 79043 79044 79045 79046 79047 79048 79049 79050 79051 79052 79053 79054 79055 79056 79057 79058 79059 79060 79061 79062 79063 79064 79065 79066 79067 |
# File 'ext/ctp/ctp.cxx', line 79040
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char));
else memset(arg1->InvestorID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorRange(*args) ⇒ Object
78956 78957 78958 78959 78960 78961 78962 78963 78964 78965 78966 78967 78968 78969 78970 78971 78972 78973 78974 78975 78976 78977 |
# File 'ext/ctp/ctp.cxx', line 78956
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_InvestorRange_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcInvestorRangeType result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InvestorRange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1);
result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#InvestorRange=(*args) ⇒ Object
78927 78928 78929 78930 78931 78932 78933 78934 78935 78936 78937 78938 78939 78940 78941 78942 78943 78944 78945 78946 78947 78948 78949 78950 78951 78952 78953 |
# File 'ext/ctp/ctp.cxx', line 78927
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_InvestorRange_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 0 ;
TThostFtdcInvestorRangeType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","InvestorRange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcInvestorRangeType >(val2);
if (arg1) (arg1)->InvestorRange = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TradingRight(*args) ⇒ Object
79182 79183 79184 79185 79186 79187 79188 79189 79190 79191 79192 79193 79194 79195 79196 79197 79198 79199 79200 79201 79202 79203 |
# File 'ext/ctp/ctp.cxx', line 79182
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_TradingRight_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTradingRightType 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","TradingRight", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1);
result = (TThostFtdcTradingRightType) ((arg1)->TradingRight);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#TradingRight=(*args) ⇒ Object
79153 79154 79155 79156 79157 79158 79159 79160 79161 79162 79163 79164 79165 79166 79167 79168 79169 79170 79171 79172 79173 79174 79175 79176 79177 79178 79179 |
# File 'ext/ctp/ctp.cxx', line 79153
SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrTradingRightField_TradingRight_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcOptionInstrTradingRightField *arg1 = (CThostFtdcOptionInstrTradingRightField *) 0 ;
TThostFtdcTradingRightType 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_CThostFtdcOptionInstrTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrTradingRightField *","TradingRight", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcOptionInstrTradingRightField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradingRightType","TradingRight", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTradingRightType >(val2);
if (arg1) (arg1)->TradingRight = arg2;
return Qnil;
fail:
return Qnil;
}
|