Class: Ctp::CThostFtdcInvestorWithdrawAlgorithmField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcInvestorWithdrawAlgorithmField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CurrencyID(*args) ⇒ Object
- #CurrencyID=(*args) ⇒ Object
- #FundMortgageRatio(*args) ⇒ Object
- #FundMortgageRatio=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #InvestorRange(*args) ⇒ Object
- #InvestorRange=(*args) ⇒ Object
- #UsingRatio(*args) ⇒ Object
- #UsingRatio=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
117289 117290 117291 117292 117293 117294 117295 117296 117297 117298 117299 117300 117301 117302 |
# File 'ext/ctp/ctp.cxx', line 117289
SWIGINTERN VALUE
_wrap_new_CThostFtdcInvestorWithdrawAlgorithmField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcInvestorWithdrawAlgorithmField";
CThostFtdcInvestorWithdrawAlgorithmField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcInvestorWithdrawAlgorithmField *)new CThostFtdcInvestorWithdrawAlgorithmField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
116965 116966 116967 116968 116969 116970 116971 116972 116973 116974 116975 116976 116977 116978 116979 116980 116981 116982 116983 116984 116985 116986 116987 116988 116989 116990 116991 116992 |
# File 'ext/ctp/ctp.cxx', line 116965
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(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
116935 116936 116937 116938 116939 116940 116941 116942 116943 116944 116945 116946 116947 116948 116949 116950 116951 116952 116953 116954 116955 116956 116957 116958 116959 116960 116961 116962 |
# File 'ext/ctp/ctp.cxx', line 116935
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(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
117191 117192 117193 117194 117195 117196 117197 117198 117199 117200 117201 117202 117203 117204 117205 117206 117207 117208 117209 117210 117211 117212 117213 117214 117215 117216 117217 117218 |
# File 'ext/ctp/ctp.cxx', line 117191
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_CurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(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
117161 117162 117163 117164 117165 117166 117167 117168 117169 117170 117171 117172 117173 117174 117175 117176 117177 117178 117179 117180 117181 117182 117183 117184 117185 117186 117187 117188 |
# File 'ext/ctp/ctp.cxx', line 117161
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_CurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(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;
}
|
#FundMortgageRatio(*args) ⇒ Object
117250 117251 117252 117253 117254 117255 117256 117257 117258 117259 117260 117261 117262 117263 117264 117265 117266 117267 117268 117269 117270 117271 |
# File 'ext/ctp/ctp.cxx', line 117250
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_FundMortgageRatio_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRatioType result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","FundMortgageRatio", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->FundMortgageRatio);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#FundMortgageRatio=(*args) ⇒ Object
117221 117222 117223 117224 117225 117226 117227 117228 117229 117230 117231 117232 117233 117234 117235 117236 117237 117238 117239 117240 117241 117242 117243 117244 117245 117246 117247 |
# File 'ext/ctp/ctp.cxx', line 117221
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_FundMortgageRatio_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ;
TThostFtdcRatioType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","FundMortgageRatio", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","FundMortgageRatio", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->FundMortgageRatio = arg2;
return Qnil;
fail:
return Qnil;
}
|
#InvestorID(*args) ⇒ Object
117078 117079 117080 117081 117082 117083 117084 117085 117086 117087 117088 117089 117090 117091 117092 117093 117094 117095 117096 117097 117098 117099 117100 117101 117102 117103 117104 117105 |
# File 'ext/ctp/ctp.cxx', line 117078
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(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
117048 117049 117050 117051 117052 117053 117054 117055 117056 117057 117058 117059 117060 117061 117062 117063 117064 117065 117066 117067 117068 117069 117070 117071 117072 117073 117074 117075 |
# File 'ext/ctp/ctp.cxx', line 117048
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(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
117024 117025 117026 117027 117028 117029 117030 117031 117032 117033 117034 117035 117036 117037 117038 117039 117040 117041 117042 117043 117044 117045 |
# File 'ext/ctp/ctp.cxx', line 117024
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorRange_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","InvestorRange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1);
result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#InvestorRange=(*args) ⇒ Object
116995 116996 116997 116998 116999 117000 117001 117002 117003 117004 117005 117006 117007 117008 117009 117010 117011 117012 117013 117014 117015 117016 117017 117018 117019 117020 117021 |
# File 'ext/ctp/ctp.cxx', line 116995
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_InvestorRange_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 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_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","InvestorRange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(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;
}
|
#UsingRatio(*args) ⇒ Object
117137 117138 117139 117140 117141 117142 117143 117144 117145 117146 117147 117148 117149 117150 117151 117152 117153 117154 117155 117156 117157 117158 |
# File 'ext/ctp/ctp.cxx', line 117137
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_UsingRatio_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRatioType result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","UsingRatio", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->UsingRatio);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#UsingRatio=(*args) ⇒ Object
117108 117109 117110 117111 117112 117113 117114 117115 117116 117117 117118 117119 117120 117121 117122 117123 117124 117125 117126 117127 117128 117129 117130 117131 117132 117133 117134 |
# File 'ext/ctp/ctp.cxx', line 117108
SWIGINTERN VALUE
_wrap_CThostFtdcInvestorWithdrawAlgorithmField_UsingRatio_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInvestorWithdrawAlgorithmField *arg1 = (CThostFtdcInvestorWithdrawAlgorithmField *) 0 ;
TThostFtdcRatioType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcInvestorWithdrawAlgorithmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorWithdrawAlgorithmField *","UsingRatio", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInvestorWithdrawAlgorithmField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","UsingRatio", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->UsingRatio = arg2;
return Qnil;
fail:
return Qnil;
}
|