Class: Ctp::CThostFtdcBrokerTradingParamsField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcBrokerTradingParamsField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #Algorithm(*args) ⇒ Object
- #Algorithm=(*args) ⇒ Object
- #AvailIncludeCloseProfit(*args) ⇒ Object
- #AvailIncludeCloseProfit=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CurrencyID(*args) ⇒ Object
- #CurrencyID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #MarginPriceType(*args) ⇒ Object
- #MarginPriceType=(*args) ⇒ Object
- #OptionRoyaltyPriceType(*args) ⇒ Object
- #OptionRoyaltyPriceType=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
127355 127356 127357 127358 127359 127360 127361 127362 127363 127364 127365 127366 127367 127368 |
# File 'ext/ctp/ctp.cxx', line 127355
SWIGINTERN VALUE
_wrap_new_CThostFtdcBrokerTradingParamsField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerTradingParamsField";
CThostFtdcBrokerTradingParamsField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcBrokerTradingParamsField *)new CThostFtdcBrokerTradingParamsField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#Algorithm(*args) ⇒ Object
127150 127151 127152 127153 127154 127155 127156 127157 127158 127159 127160 127161 127162 127163 127164 127165 127166 127167 127168 127169 127170 127171 |
# File 'ext/ctp/ctp.cxx', line 127150
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_Algorithm_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcAlgorithmType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","Algorithm", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1);
result = (TThostFtdcAlgorithmType) ((arg1)->Algorithm);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#Algorithm=(*args) ⇒ Object
127121 127122 127123 127124 127125 127126 127127 127128 127129 127130 127131 127132 127133 127134 127135 127136 127137 127138 127139 127140 127141 127142 127143 127144 127145 127146 127147 |
# File 'ext/ctp/ctp.cxx', line 127121
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_Algorithm_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ;
TThostFtdcAlgorithmType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","Algorithm", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcAlgorithmType","Algorithm", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcAlgorithmType >(val2);
if (arg1) (arg1)->Algorithm = arg2;
return Qnil;
fail:
return Qnil;
}
|
#AvailIncludeCloseProfit(*args) ⇒ Object
127203 127204 127205 127206 127207 127208 127209 127210 127211 127212 127213 127214 127215 127216 127217 127218 127219 127220 127221 127222 127223 127224 |
# File 'ext/ctp/ctp.cxx', line 127203
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_AvailIncludeCloseProfit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcIncludeCloseProfitType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","AvailIncludeCloseProfit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1);
result = (TThostFtdcIncludeCloseProfitType) ((arg1)->AvailIncludeCloseProfit);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#AvailIncludeCloseProfit=(*args) ⇒ Object
127174 127175 127176 127177 127178 127179 127180 127181 127182 127183 127184 127185 127186 127187 127188 127189 127190 127191 127192 127193 127194 127195 127196 127197 127198 127199 127200 |
# File 'ext/ctp/ctp.cxx', line 127174
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_AvailIncludeCloseProfit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ;
TThostFtdcIncludeCloseProfitType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","AvailIncludeCloseProfit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIncludeCloseProfitType","AvailIncludeCloseProfit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcIncludeCloseProfitType >(val2);
if (arg1) (arg1)->AvailIncludeCloseProfit = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BrokerID(*args) ⇒ Object
126978 126979 126980 126981 126982 126983 126984 126985 126986 126987 126988 126989 126990 126991 126992 126993 126994 126995 126996 126997 126998 126999 127000 127001 127002 127003 127004 127005 |
# File 'ext/ctp/ctp.cxx', line 126978
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(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
126948 126949 126950 126951 126952 126953 126954 126955 126956 126957 126958 126959 126960 126961 126962 126963 126964 126965 126966 126967 126968 126969 126970 126971 126972 126973 126974 126975 |
# File 'ext/ctp/ctp.cxx', line 126948
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(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;
}
|
#CurrencyID(*args) ⇒ Object
127257 127258 127259 127260 127261 127262 127263 127264 127265 127266 127267 127268 127269 127270 127271 127272 127273 127274 127275 127276 127277 127278 127279 127280 127281 127282 127283 127284 |
# File 'ext/ctp/ctp.cxx', line 127257
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_CurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1);
result = (char *) ((arg1)->CurrencyID);
{
size_t size = SWIG_strnlen(result, 4);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CurrencyID=(*args) ⇒ Object
127227 127228 127229 127230 127231 127232 127233 127234 127235 127236 127237 127238 127239 127240 127241 127242 127243 127244 127245 127246 127247 127248 127249 127250 127251 127252 127253 127254 |
# File 'ext/ctp/ctp.cxx', line 127227
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_CurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[4] ;
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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char));
else memset(arg1->CurrencyID,0,4*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorID(*args) ⇒ Object
127038 127039 127040 127041 127042 127043 127044 127045 127046 127047 127048 127049 127050 127051 127052 127053 127054 127055 127056 127057 127058 127059 127060 127061 127062 127063 127064 127065 |
# File 'ext/ctp/ctp.cxx', line 127038
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(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
127008 127009 127010 127011 127012 127013 127014 127015 127016 127017 127018 127019 127020 127021 127022 127023 127024 127025 127026 127027 127028 127029 127030 127031 127032 127033 127034 127035 |
# File 'ext/ctp/ctp.cxx', line 127008
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(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;
}
|
#MarginPriceType(*args) ⇒ Object
127097 127098 127099 127100 127101 127102 127103 127104 127105 127106 127107 127108 127109 127110 127111 127112 127113 127114 127115 127116 127117 127118 |
# File 'ext/ctp/ctp.cxx', line 127097
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_MarginPriceType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcMarginPriceTypeType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","MarginPriceType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1);
result = (TThostFtdcMarginPriceTypeType) ((arg1)->MarginPriceType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#MarginPriceType=(*args) ⇒ Object
127068 127069 127070 127071 127072 127073 127074 127075 127076 127077 127078 127079 127080 127081 127082 127083 127084 127085 127086 127087 127088 127089 127090 127091 127092 127093 127094 |
# File 'ext/ctp/ctp.cxx', line 127068
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_MarginPriceType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ;
TThostFtdcMarginPriceTypeType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","MarginPriceType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMarginPriceTypeType","MarginPriceType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMarginPriceTypeType >(val2);
if (arg1) (arg1)->MarginPriceType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OptionRoyaltyPriceType(*args) ⇒ Object
127316 127317 127318 127319 127320 127321 127322 127323 127324 127325 127326 127327 127328 127329 127330 127331 127332 127333 127334 127335 127336 127337 |
# File 'ext/ctp/ctp.cxx', line 127316
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_OptionRoyaltyPriceType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcOptionRoyaltyPriceTypeType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","OptionRoyaltyPriceType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1);
result = (TThostFtdcOptionRoyaltyPriceTypeType) ((arg1)->OptionRoyaltyPriceType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#OptionRoyaltyPriceType=(*args) ⇒ Object
127287 127288 127289 127290 127291 127292 127293 127294 127295 127296 127297 127298 127299 127300 127301 127302 127303 127304 127305 127306 127307 127308 127309 127310 127311 127312 127313 |
# File 'ext/ctp/ctp.cxx', line 127287
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerTradingParamsField_OptionRoyaltyPriceType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerTradingParamsField *arg1 = (CThostFtdcBrokerTradingParamsField *) 0 ;
TThostFtdcOptionRoyaltyPriceTypeType 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_CThostFtdcBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerTradingParamsField *","OptionRoyaltyPriceType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerTradingParamsField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOptionRoyaltyPriceTypeType","OptionRoyaltyPriceType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcOptionRoyaltyPriceTypeType >(val2);
if (arg1) (arg1)->OptionRoyaltyPriceType = arg2;
return Qnil;
fail:
return Qnil;
}
|