Class: Ctp::CThostFtdcReqTransferField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcReqTransferField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #AccountID(*args) ⇒ Object
- #AccountID=(*args) ⇒ Object
- #BankAccount(*args) ⇒ Object
- #BankAccount=(*args) ⇒ Object
- #BankAccType(*args) ⇒ Object
- #BankAccType=(*args) ⇒ Object
- #BankBranchID(*args) ⇒ Object
- #BankBranchID=(*args) ⇒ Object
- #BankID(*args) ⇒ Object
- #BankID=(*args) ⇒ Object
- #BankPassWord(*args) ⇒ Object
- #BankPassWord=(*args) ⇒ Object
- #BankPwdFlag(*args) ⇒ Object
- #BankPwdFlag=(*args) ⇒ Object
- #BankSecuAcc(*args) ⇒ Object
- #BankSecuAcc=(*args) ⇒ Object
- #BankSecuAccType(*args) ⇒ Object
- #BankSecuAccType=(*args) ⇒ Object
- #BankSerial(*args) ⇒ Object
- #BankSerial=(*args) ⇒ Object
- #BrokerBranchID(*args) ⇒ Object
- #BrokerBranchID=(*args) ⇒ Object
- #BrokerFee(*args) ⇒ Object
- #BrokerFee=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #BrokerIDByBank(*args) ⇒ Object
- #BrokerIDByBank=(*args) ⇒ Object
- #CurrencyID(*args) ⇒ Object
- #CurrencyID=(*args) ⇒ Object
- #CustFee(*args) ⇒ Object
- #CustFee=(*args) ⇒ Object
- #CustomerName(*args) ⇒ Object
- #CustomerName=(*args) ⇒ Object
- #CustType(*args) ⇒ Object
- #CustType=(*args) ⇒ Object
- #DeviceID(*args) ⇒ Object
- #DeviceID=(*args) ⇒ Object
- #Digest(*args) ⇒ Object
- #Digest=(*args) ⇒ Object
- #FeePayFlag(*args) ⇒ Object
- #FeePayFlag=(*args) ⇒ Object
- #FutureFetchAmount(*args) ⇒ Object
- #FutureFetchAmount=(*args) ⇒ Object
- #FutureSerial(*args) ⇒ Object
- #FutureSerial=(*args) ⇒ Object
- #IdCardType(*args) ⇒ Object
- #IdCardType=(*args) ⇒ Object
- #IdentifiedCardNo(*args) ⇒ Object
- #IdentifiedCardNo=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstallID(*args) ⇒ Object
- #InstallID=(*args) ⇒ Object
- #LastFragment(*args) ⇒ Object
- #LastFragment=(*args) ⇒ Object
- #Message(*args) ⇒ Object
- #Message=(*args) ⇒ Object
- #OperNo(*args) ⇒ Object
- #OperNo=(*args) ⇒ Object
- #Password(*args) ⇒ Object
- #Password=(*args) ⇒ Object
- #PlateSerial(*args) ⇒ Object
- #PlateSerial=(*args) ⇒ Object
- #RequestID(*args) ⇒ Object
- #RequestID=(*args) ⇒ Object
- #SecuPwdFlag(*args) ⇒ Object
- #SecuPwdFlag=(*args) ⇒ Object
- #SessionID(*args) ⇒ Object
- #SessionID=(*args) ⇒ Object
- #TID(*args) ⇒ Object
- #TID=(*args) ⇒ Object
- #TradeAmount(*args) ⇒ Object
- #TradeAmount=(*args) ⇒ Object
- #TradeCode(*args) ⇒ Object
- #TradeCode=(*args) ⇒ Object
- #TradeDate(*args) ⇒ Object
- #TradeDate=(*args) ⇒ Object
- #TradeTime(*args) ⇒ Object
- #TradeTime=(*args) ⇒ Object
- #TradingDay(*args) ⇒ Object
- #TradingDay=(*args) ⇒ Object
- #TransferStatus(*args) ⇒ Object
- #TransferStatus=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
- #VerifyCertNoFlag(*args) ⇒ Object
- #VerifyCertNoFlag=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
144501 144502 144503 144504 144505 144506 144507 144508 144509 144510 144511 144512 144513 144514 |
# File 'ext/ctp/ctp.cxx', line 144501
SWIGINTERN VALUE
_wrap_new_CThostFtdcReqTransferField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqTransferField";
CThostFtdcReqTransferField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcReqTransferField *)new CThostFtdcReqTransferField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#AccountID(*args) ⇒ Object
143121 143122 143123 143124 143125 143126 143127 143128 143129 143130 143131 143132 143133 143134 143135 143136 143137 143138 143139 143140 143141 143142 143143 143144 143145 143146 143147 143148 |
# File 'ext/ctp/ctp.cxx', line 143121
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_AccountID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","AccountID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->AccountID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#AccountID=(*args) ⇒ Object
143091 143092 143093 143094 143095 143096 143097 143098 143099 143100 143101 143102 143103 143104 143105 143106 143107 143108 143109 143110 143111 143112 143113 143114 143115 143116 143117 143118 |
# File 'ext/ctp/ctp.cxx', line 143091
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_AccountID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","AccountID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char));
else memset(arg1->AccountID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankAccount(*args) ⇒ Object
143001 143002 143003 143004 143005 143006 143007 143008 143009 143010 143011 143012 143013 143014 143015 143016 143017 143018 143019 143020 143021 143022 143023 143024 143025 143026 143027 143028 |
# File 'ext/ctp/ctp.cxx', line 143001
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankAccount_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankAccount", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->BankAccount);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankAccount=(*args) ⇒ Object
142971 142972 142973 142974 142975 142976 142977 142978 142979 142980 142981 142982 142983 142984 142985 142986 142987 142988 142989 142990 142991 142992 142993 142994 142995 142996 142997 142998 |
# File 'ext/ctp/ctp.cxx', line 142971
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankAccount_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[41] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankAccount", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankAccount", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankAccount,arg2,41*sizeof(char));
else memset(arg1->BankAccount,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankAccType(*args) ⇒ Object
143904 143905 143906 143907 143908 143909 143910 143911 143912 143913 143914 143915 143916 143917 143918 143919 143920 143921 143922 143923 143924 143925 |
# File 'ext/ctp/ctp.cxx', line 143904
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankAccType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcBankAccTypeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankAccType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcBankAccTypeType) ((arg1)->BankAccType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#BankAccType=(*args) ⇒ Object
143875 143876 143877 143878 143879 143880 143881 143882 143883 143884 143885 143886 143887 143888 143889 143890 143891 143892 143893 143894 143895 143896 143897 143898 143899 143900 143901 |
# File 'ext/ctp/ctp.cxx', line 143875
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankAccType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcBankAccTypeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankAccType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankAccType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBankAccTypeType >(val2);
if (arg1) (arg1)->BankAccType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BankBranchID(*args) ⇒ Object
142196 142197 142198 142199 142200 142201 142202 142203 142204 142205 142206 142207 142208 142209 142210 142211 142212 142213 142214 142215 142216 142217 142218 142219 142220 142221 142222 142223 |
# File 'ext/ctp/ctp.cxx', line 142196
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankBranchID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankBranchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->BankBranchID);
{
size_t size = SWIG_strnlen(result, 5);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankBranchID=(*args) ⇒ Object
142166 142167 142168 142169 142170 142171 142172 142173 142174 142175 142176 142177 142178 142179 142180 142181 142182 142183 142184 142185 142186 142187 142188 142189 142190 142191 142192 142193 |
# File 'ext/ctp/ctp.cxx', line 142166
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankBranchID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankBranchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 5);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char));
else memset(arg1->BankBranchID,0,5*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankID(*args) ⇒ Object
142136 142137 142138 142139 142140 142141 142142 142143 142144 142145 142146 142147 142148 142149 142150 142151 142152 142153 142154 142155 142156 142157 142158 142159 142160 142161 142162 142163 |
# File 'ext/ctp/ctp.cxx', line 142136
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->BankID);
{
size_t size = SWIG_strnlen(result, 4);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankID=(*args) ⇒ Object
142106 142107 142108 142109 142110 142111 142112 142113 142114 142115 142116 142117 142118 142119 142120 142121 142122 142123 142124 142125 142126 142127 142128 142129 142130 142131 142132 142133 |
# File 'ext/ctp/ctp.cxx', line 142106
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char));
else memset(arg1->BankID,0,4*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankPassWord(*args) ⇒ Object
143061 143062 143063 143064 143065 143066 143067 143068 143069 143070 143071 143072 143073 143074 143075 143076 143077 143078 143079 143080 143081 143082 143083 143084 143085 143086 143087 143088 |
# File 'ext/ctp/ctp.cxx', line 143061
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankPassWord_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankPassWord", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->BankPassWord);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankPassWord=(*args) ⇒ Object
143031 143032 143033 143034 143035 143036 143037 143038 143039 143040 143041 143042 143043 143044 143045 143046 143047 143048 143049 143050 143051 143052 143053 143054 143055 143056 143057 143058 |
# File 'ext/ctp/ctp.cxx', line 143031
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankPassWord_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[41] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankPassWord", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankPassWord", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankPassWord,arg2,41*sizeof(char));
else memset(arg1->BankPassWord,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankPwdFlag(*args) ⇒ Object
144190 144191 144192 144193 144194 144195 144196 144197 144198 144199 144200 144201 144202 144203 144204 144205 144206 144207 144208 144209 144210 144211 |
# File 'ext/ctp/ctp.cxx', line 144190
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankPwdFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPwdFlagType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankPwdFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcPwdFlagType) ((arg1)->BankPwdFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#BankPwdFlag=(*args) ⇒ Object
144161 144162 144163 144164 144165 144166 144167 144168 144169 144170 144171 144172 144173 144174 144175 144176 144177 144178 144179 144180 144181 144182 144183 144184 144185 144186 144187 |
# File 'ext/ctp/ctp.cxx', line 144161
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankPwdFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcPwdFlagType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankPwdFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","BankPwdFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPwdFlagType >(val2);
if (arg1) (arg1)->BankPwdFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BankSecuAcc(*args) ⇒ Object
144131 144132 144133 144134 144135 144136 144137 144138 144139 144140 144141 144142 144143 144144 144145 144146 144147 144148 144149 144150 144151 144152 144153 144154 144155 144156 144157 144158 |
# File 'ext/ctp/ctp.cxx', line 144131
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankSecuAcc_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSecuAcc", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->BankSecuAcc);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankSecuAcc=(*args) ⇒ Object
144101 144102 144103 144104 144105 144106 144107 144108 144109 144110 144111 144112 144113 144114 144115 144116 144117 144118 144119 144120 144121 144122 144123 144124 144125 144126 144127 144128 |
# File 'ext/ctp/ctp.cxx', line 144101
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankSecuAcc_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[41] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSecuAcc", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","BankSecuAcc", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankSecuAcc,arg2,41*sizeof(char));
else memset(arg1->BankSecuAcc,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankSecuAccType(*args) ⇒ Object
144017 144018 144019 144020 144021 144022 144023 144024 144025 144026 144027 144028 144029 144030 144031 144032 144033 144034 144035 144036 144037 144038 |
# File 'ext/ctp/ctp.cxx', line 144017
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankSecuAccType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcBankAccTypeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSecuAccType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcBankAccTypeType) ((arg1)->BankSecuAccType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#BankSecuAccType=(*args) ⇒ Object
143988 143989 143990 143991 143992 143993 143994 143995 143996 143997 143998 143999 144000 144001 144002 144003 144004 144005 144006 144007 144008 144009 144010 144011 144012 144013 144014 |
# File 'ext/ctp/ctp.cxx', line 143988
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankSecuAccType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcBankAccTypeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSecuAccType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBankAccTypeType","BankSecuAccType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBankAccTypeType >(val2);
if (arg1) (arg1)->BankSecuAccType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BankSerial(*args) ⇒ Object
142496 142497 142498 142499 142500 142501 142502 142503 142504 142505 142506 142507 142508 142509 142510 142511 142512 142513 142514 142515 142516 142517 142518 142519 142520 142521 142522 142523 |
# File 'ext/ctp/ctp.cxx', line 142496
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankSerial_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->BankSerial);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankSerial=(*args) ⇒ Object
142466 142467 142468 142469 142470 142471 142472 142473 142474 142475 142476 142477 142478 142479 142480 142481 142482 142483 142484 142485 142486 142487 142488 142489 142490 142491 142492 142493 |
# File 'ext/ctp/ctp.cxx', line 142466
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BankSerial_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BankSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char));
else memset(arg1->BankSerial,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BrokerBranchID(*args) ⇒ Object
142316 142317 142318 142319 142320 142321 142322 142323 142324 142325 142326 142327 142328 142329 142330 142331 142332 142333 142334 142335 142336 142337 142338 142339 142340 142341 142342 142343 |
# File 'ext/ctp/ctp.cxx', line 142316
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerBranchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->BrokerBranchID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BrokerBranchID=(*args) ⇒ Object
142286 142287 142288 142289 142290 142291 142292 142293 142294 142295 142296 142297 142298 142299 142300 142301 142302 142303 142304 142305 142306 142307 142308 142309 142310 142311 142312 142313 |
# File 'ext/ctp/ctp.cxx', line 142286
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerBranchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char));
else memset(arg1->BrokerBranchID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BrokerFee(*args) ⇒ Object
143731 143732 143733 143734 143735 143736 143737 143738 143739 143740 143741 143742 143743 143744 143745 143746 143747 143748 143749 143750 143751 143752 |
# File 'ext/ctp/ctp.cxx', line 143731
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BrokerFee_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcFutureFeeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerFee", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcFutureFeeType) ((arg1)->BrokerFee);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#BrokerFee=(*args) ⇒ Object
143702 143703 143704 143705 143706 143707 143708 143709 143710 143711 143712 143713 143714 143715 143716 143717 143718 143719 143720 143721 143722 143723 143724 143725 143726 143727 143728 |
# File 'ext/ctp/ctp.cxx', line 143702
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BrokerFee_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcFutureFeeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerFee", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureFeeType","BrokerFee", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcFutureFeeType >(val2);
if (arg1) (arg1)->BrokerFee = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BrokerID(*args) ⇒ Object
142256 142257 142258 142259 142260 142261 142262 142263 142264 142265 142266 142267 142268 142269 142270 142271 142272 142273 142274 142275 142276 142277 142278 142279 142280 142281 142282 142283 |
# File 'ext/ctp/ctp.cxx', line 142256
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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
142226 142227 142228 142229 142230 142231 142232 142233 142234 142235 142236 142237 142238 142239 142240 142241 142242 142243 142244 142245 142246 142247 142248 142249 142250 142251 142252 142253 |
# File 'ext/ctp/ctp.cxx', line 142226
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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;
}
|
#BrokerIDByBank(*args) ⇒ Object
144071 144072 144073 144074 144075 144076 144077 144078 144079 144080 144081 144082 144083 144084 144085 144086 144087 144088 144089 144090 144091 144092 144093 144094 144095 144096 144097 144098 |
# File 'ext/ctp/ctp.cxx', line 144071
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerIDByBank", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->BrokerIDByBank);
{
size_t size = SWIG_strnlen(result, 33);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BrokerIDByBank=(*args) ⇒ Object
144041 144042 144043 144044 144045 144046 144047 144048 144049 144050 144051 144052 144053 144054 144055 144056 144057 144058 144059 144060 144061 144062 144063 144064 144065 144066 144067 144068 |
# File 'ext/ctp/ctp.cxx', line 144041
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[33] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","BrokerIDByBank", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 33);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char));
else memset(arg1->BrokerIDByBank,0,33*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CurrencyID(*args) ⇒ Object
143460 143461 143462 143463 143464 143465 143466 143467 143468 143469 143470 143471 143472 143473 143474 143475 143476 143477 143478 143479 143480 143481 143482 143483 143484 143485 143486 143487 |
# File 'ext/ctp/ctp.cxx', line 143460
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_CurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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
143430 143431 143432 143433 143434 143435 143436 143437 143438 143439 143440 143441 143442 143443 143444 143445 143446 143447 143448 143449 143450 143451 143452 143453 143454 143455 143456 143457 |
# File 'ext/ctp/ctp.cxx', line 143430
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_CurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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;
}
|
#CustFee(*args) ⇒ Object
143678 143679 143680 143681 143682 143683 143684 143685 143686 143687 143688 143689 143690 143691 143692 143693 143694 143695 143696 143697 143698 143699 |
# File 'ext/ctp/ctp.cxx', line 143678
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_CustFee_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcCustFeeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustFee", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcCustFeeType) ((arg1)->CustFee);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#CustFee=(*args) ⇒ Object
143649 143650 143651 143652 143653 143654 143655 143656 143657 143658 143659 143660 143661 143662 143663 143664 143665 143666 143667 143668 143669 143670 143671 143672 143673 143674 143675 |
# File 'ext/ctp/ctp.cxx', line 143649
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_CustFee_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcCustFeeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustFee", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustFeeType","CustFee", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcCustFeeType >(val2);
if (arg1) (arg1)->CustFee = arg2;
return Qnil;
fail:
return Qnil;
}
|
#CustomerName(*args) ⇒ Object
142775 142776 142777 142778 142779 142780 142781 142782 142783 142784 142785 142786 142787 142788 142789 142790 142791 142792 142793 142794 142795 142796 142797 142798 142799 142800 142801 142802 |
# File 'ext/ctp/ctp.cxx', line 142775
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_CustomerName_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustomerName", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->CustomerName);
{
size_t size = SWIG_strnlen(result, 51);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CustomerName=(*args) ⇒ Object
142745 142746 142747 142748 142749 142750 142751 142752 142753 142754 142755 142756 142757 142758 142759 142760 142761 142762 142763 142764 142765 142766 142767 142768 142769 142770 142771 142772 |
# File 'ext/ctp/ctp.cxx', line 142745
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_CustomerName_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[51] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustomerName", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 51);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","CustomerName", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CustomerName,arg2,51*sizeof(char));
else memset(arg1->CustomerName,0,51*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CustType(*args) ⇒ Object
142947 142948 142949 142950 142951 142952 142953 142954 142955 142956 142957 142958 142959 142960 142961 142962 142963 142964 142965 142966 142967 142968 |
# File 'ext/ctp/ctp.cxx', line 142947
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_CustType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcCustTypeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcCustTypeType) ((arg1)->CustType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#CustType=(*args) ⇒ Object
142918 142919 142920 142921 142922 142923 142924 142925 142926 142927 142928 142929 142930 142931 142932 142933 142934 142935 142936 142937 142938 142939 142940 142941 142942 142943 142944 |
# File 'ext/ctp/ctp.cxx', line 142918
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_CustType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcCustTypeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","CustType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCustTypeType","CustType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcCustTypeType >(val2);
if (arg1) (arg1)->CustType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#DeviceID(*args) ⇒ Object
143958 143959 143960 143961 143962 143963 143964 143965 143966 143967 143968 143969 143970 143971 143972 143973 143974 143975 143976 143977 143978 143979 143980 143981 143982 143983 143984 143985 |
# File 'ext/ctp/ctp.cxx', line 143958
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_DeviceID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","DeviceID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->DeviceID);
{
size_t size = SWIG_strnlen(result, 3);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#DeviceID=(*args) ⇒ Object
143928 143929 143930 143931 143932 143933 143934 143935 143936 143937 143938 143939 143940 143941 143942 143943 143944 143945 143946 143947 143948 143949 143950 143951 143952 143953 143954 143955 |
# File 'ext/ctp/ctp.cxx', line 143928
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_DeviceID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[3] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","DeviceID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 3);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char));
else memset(arg1->DeviceID,0,3*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#Digest(*args) ⇒ Object
143845 143846 143847 143848 143849 143850 143851 143852 143853 143854 143855 143856 143857 143858 143859 143860 143861 143862 143863 143864 143865 143866 143867 143868 143869 143870 143871 143872 |
# File 'ext/ctp/ctp.cxx', line 143845
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_Digest_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Digest", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->Digest);
{
size_t size = SWIG_strnlen(result, 36);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#Digest=(*args) ⇒ Object
143815 143816 143817 143818 143819 143820 143821 143822 143823 143824 143825 143826 143827 143828 143829 143830 143831 143832 143833 143834 143835 143836 143837 143838 143839 143840 143841 143842 |
# File 'ext/ctp/ctp.cxx', line 143815
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_Digest_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[36] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Digest", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 36);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [36]","Digest", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->Digest,arg2,36*sizeof(char));
else memset(arg1->Digest,0,36*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#FeePayFlag(*args) ⇒ Object
143625 143626 143627 143628 143629 143630 143631 143632 143633 143634 143635 143636 143637 143638 143639 143640 143641 143642 143643 143644 143645 143646 |
# File 'ext/ctp/ctp.cxx', line 143625
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_FeePayFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcFeePayFlagType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FeePayFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcFeePayFlagType) ((arg1)->FeePayFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#FeePayFlag=(*args) ⇒ Object
143596 143597 143598 143599 143600 143601 143602 143603 143604 143605 143606 143607 143608 143609 143610 143611 143612 143613 143614 143615 143616 143617 143618 143619 143620 143621 143622 |
# File 'ext/ctp/ctp.cxx', line 143596
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_FeePayFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcFeePayFlagType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FeePayFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFeePayFlagType","FeePayFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcFeePayFlagType >(val2);
if (arg1) (arg1)->FeePayFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#FutureFetchAmount(*args) ⇒ Object
143572 143573 143574 143575 143576 143577 143578 143579 143580 143581 143582 143583 143584 143585 143586 143587 143588 143589 143590 143591 143592 143593 |
# File 'ext/ctp/ctp.cxx', line 143572
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_FutureFetchAmount_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTradeAmountType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FutureFetchAmount", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcTradeAmountType) ((arg1)->FutureFetchAmount);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#FutureFetchAmount=(*args) ⇒ Object
143543 143544 143545 143546 143547 143548 143549 143550 143551 143552 143553 143554 143555 143556 143557 143558 143559 143560 143561 143562 143563 143564 143565 143566 143567 143568 143569 |
# File 'ext/ctp/ctp.cxx', line 143543
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_FutureFetchAmount_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcTradeAmountType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FutureFetchAmount", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","FutureFetchAmount", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTradeAmountType >(val2);
if (arg1) (arg1)->FutureFetchAmount = arg2;
return Qnil;
fail:
return Qnil;
}
|
#FutureSerial(*args) ⇒ Object
143293 143294 143295 143296 143297 143298 143299 143300 143301 143302 143303 143304 143305 143306 143307 143308 143309 143310 143311 143312 143313 143314 |
# File 'ext/ctp/ctp.cxx', line 143293
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_FutureSerial_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcFutureSerialType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FutureSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcFutureSerialType) ((arg1)->FutureSerial);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#FutureSerial=(*args) ⇒ Object
143264 143265 143266 143267 143268 143269 143270 143271 143272 143273 143274 143275 143276 143277 143278 143279 143280 143281 143282 143283 143284 143285 143286 143287 143288 143289 143290 |
# File 'ext/ctp/ctp.cxx', line 143264
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_FutureSerial_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcFutureSerialType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","FutureSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFutureSerialType","FutureSerial", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcFutureSerialType >(val2);
if (arg1) (arg1)->FutureSerial = arg2;
return Qnil;
fail:
return Qnil;
}
|
#IdCardType(*args) ⇒ Object
142834 142835 142836 142837 142838 142839 142840 142841 142842 142843 142844 142845 142846 142847 142848 142849 142850 142851 142852 142853 142854 142855 |
# File 'ext/ctp/ctp.cxx', line 142834
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_IdCardType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcIdCardTypeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","IdCardType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcIdCardTypeType) ((arg1)->IdCardType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#IdCardType=(*args) ⇒ Object
142805 142806 142807 142808 142809 142810 142811 142812 142813 142814 142815 142816 142817 142818 142819 142820 142821 142822 142823 142824 142825 142826 142827 142828 142829 142830 142831 |
# File 'ext/ctp/ctp.cxx', line 142805
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_IdCardType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcIdCardTypeType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","IdCardType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcIdCardTypeType","IdCardType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcIdCardTypeType >(val2);
if (arg1) (arg1)->IdCardType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#IdentifiedCardNo(*args) ⇒ Object
142888 142889 142890 142891 142892 142893 142894 142895 142896 142897 142898 142899 142900 142901 142902 142903 142904 142905 142906 142907 142908 142909 142910 142911 142912 142913 142914 142915 |
# File 'ext/ctp/ctp.cxx', line 142888
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_IdentifiedCardNo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","IdentifiedCardNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->IdentifiedCardNo);
{
size_t size = SWIG_strnlen(result, 51);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#IdentifiedCardNo=(*args) ⇒ Object
142858 142859 142860 142861 142862 142863 142864 142865 142866 142867 142868 142869 142870 142871 142872 142873 142874 142875 142876 142877 142878 142879 142880 142881 142882 142883 142884 142885 |
# File 'ext/ctp/ctp.cxx', line 142858
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_IdentifiedCardNo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[51] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","IdentifiedCardNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 51);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [51]","IdentifiedCardNo", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->IdentifiedCardNo,arg2,51*sizeof(char));
else memset(arg1->IdentifiedCardNo,0,51*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InstallID(*args) ⇒ Object
143240 143241 143242 143243 143244 143245 143246 143247 143248 143249 143250 143251 143252 143253 143254 143255 143256 143257 143258 143259 143260 143261 |
# File 'ext/ctp/ctp.cxx', line 143240
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_InstallID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","InstallID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcInstallIDType) ((arg1)->InstallID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#InstallID=(*args) ⇒ Object
143211 143212 143213 143214 143215 143216 143217 143218 143219 143220 143221 143222 143223 143224 143225 143226 143227 143228 143229 143230 143231 143232 143233 143234 143235 143236 143237 |
# File 'ext/ctp/ctp.cxx', line 143211
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_InstallID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","InstallID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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;
}
|
#LastFragment(*args) ⇒ Object
142668 142669 142670 142671 142672 142673 142674 142675 142676 142677 142678 142679 142680 142681 142682 142683 142684 142685 142686 142687 142688 142689 |
# File 'ext/ctp/ctp.cxx', line 142668
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_LastFragment_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcLastFragmentType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","LastFragment", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#LastFragment=(*args) ⇒ Object
142639 142640 142641 142642 142643 142644 142645 142646 142647 142648 142649 142650 142651 142652 142653 142654 142655 142656 142657 142658 142659 142660 142661 142662 142663 142664 142665 |
# File 'ext/ctp/ctp.cxx', line 142639
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_LastFragment_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcLastFragmentType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","LastFragment", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcLastFragmentType >(val2);
if (arg1) (arg1)->LastFragment = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Message(*args) ⇒ Object
143785 143786 143787 143788 143789 143790 143791 143792 143793 143794 143795 143796 143797 143798 143799 143800 143801 143802 143803 143804 143805 143806 143807 143808 143809 143810 143811 143812 |
# File 'ext/ctp/ctp.cxx', line 143785
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_Message_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Message", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->Message);
{
size_t size = SWIG_strnlen(result, 129);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#Message=(*args) ⇒ Object
143755 143756 143757 143758 143759 143760 143761 143762 143763 143764 143765 143766 143767 143768 143769 143770 143771 143772 143773 143774 143775 143776 143777 143778 143779 143780 143781 143782 |
# File 'ext/ctp/ctp.cxx', line 143755
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_Message_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[129] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Message", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 129);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","Message", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->Message,arg2,129*sizeof(char));
else memset(arg1->Message,0,129*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#OperNo(*args) ⇒ Object
144297 144298 144299 144300 144301 144302 144303 144304 144305 144306 144307 144308 144309 144310 144311 144312 144313 144314 144315 144316 144317 144318 144319 144320 144321 144322 144323 144324 |
# File 'ext/ctp/ctp.cxx', line 144297
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_OperNo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","OperNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->OperNo);
{
size_t size = SWIG_strnlen(result, 17);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#OperNo=(*args) ⇒ Object
144267 144268 144269 144270 144271 144272 144273 144274 144275 144276 144277 144278 144279 144280 144281 144282 144283 144284 144285 144286 144287 144288 144289 144290 144291 144292 144293 144294 |
# File 'ext/ctp/ctp.cxx', line 144267
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_OperNo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[17] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","OperNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 17);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char));
else memset(arg1->OperNo,0,17*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#Password(*args) ⇒ Object
143181 143182 143183 143184 143185 143186 143187 143188 143189 143190 143191 143192 143193 143194 143195 143196 143197 143198 143199 143200 143201 143202 143203 143204 143205 143206 143207 143208 |
# File 'ext/ctp/ctp.cxx', line 143181
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_Password_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Password", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->Password);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#Password=(*args) ⇒ Object
143151 143152 143153 143154 143155 143156 143157 143158 143159 143160 143161 143162 143163 143164 143165 143166 143167 143168 143169 143170 143171 143172 143173 143174 143175 143176 143177 143178 |
# File 'ext/ctp/ctp.cxx', line 143151
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_Password_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[41] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","Password", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","Password", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->Password,arg2,41*sizeof(char));
else memset(arg1->Password,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#PlateSerial(*args) ⇒ Object
142615 142616 142617 142618 142619 142620 142621 142622 142623 142624 142625 142626 142627 142628 142629 142630 142631 142632 142633 142634 142635 142636 |
# File 'ext/ctp/ctp.cxx', line 142615
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_PlateSerial_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSerialType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","PlateSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcSerialType) ((arg1)->PlateSerial);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#PlateSerial=(*args) ⇒ Object
142586 142587 142588 142589 142590 142591 142592 142593 142594 142595 142596 142597 142598 142599 142600 142601 142602 142603 142604 142605 142606 142607 142608 142609 142610 142611 142612 |
# File 'ext/ctp/ctp.cxx', line 142586
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_PlateSerial_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcSerialType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","PlateSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSerialType >(val2);
if (arg1) (arg1)->PlateSerial = arg2;
return Qnil;
fail:
return Qnil;
}
|
#RequestID(*args) ⇒ Object
144356 144357 144358 144359 144360 144361 144362 144363 144364 144365 144366 144367 144368 144369 144370 144371 144372 144373 144374 144375 144376 144377 |
# File 'ext/ctp/ctp.cxx', line 144356
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_RequestID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","RequestID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcRequestIDType) ((arg1)->RequestID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#RequestID=(*args) ⇒ Object
144327 144328 144329 144330 144331 144332 144333 144334 144335 144336 144337 144338 144339 144340 144341 144342 144343 144344 144345 144346 144347 144348 144349 144350 144351 144352 144353 |
# File 'ext/ctp/ctp.cxx', line 144327
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_RequestID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","RequestID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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;
}
|
#SecuPwdFlag(*args) ⇒ Object
144243 144244 144245 144246 144247 144248 144249 144250 144251 144252 144253 144254 144255 144256 144257 144258 144259 144260 144261 144262 144263 144264 |
# File 'ext/ctp/ctp.cxx', line 144243
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_SecuPwdFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPwdFlagType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","SecuPwdFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcPwdFlagType) ((arg1)->SecuPwdFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#SecuPwdFlag=(*args) ⇒ Object
144214 144215 144216 144217 144218 144219 144220 144221 144222 144223 144224 144225 144226 144227 144228 144229 144230 144231 144232 144233 144234 144235 144236 144237 144238 144239 144240 |
# File 'ext/ctp/ctp.cxx', line 144214
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_SecuPwdFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcPwdFlagType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","SecuPwdFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPwdFlagType","SecuPwdFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPwdFlagType >(val2);
if (arg1) (arg1)->SecuPwdFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SessionID(*args) ⇒ Object
142721 142722 142723 142724 142725 142726 142727 142728 142729 142730 142731 142732 142733 142734 142735 142736 142737 142738 142739 142740 142741 142742 |
# File 'ext/ctp/ctp.cxx', line 142721
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_SessionID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","SessionID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcSessionIDType) ((arg1)->SessionID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SessionID=(*args) ⇒ Object
142692 142693 142694 142695 142696 142697 142698 142699 142700 142701 142702 142703 142704 142705 142706 142707 142708 142709 142710 142711 142712 142713 142714 142715 142716 142717 142718 |
# File 'ext/ctp/ctp.cxx', line 142692
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_SessionID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","SessionID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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;
}
|
#TID(*args) ⇒ Object
144409 144410 144411 144412 144413 144414 144415 144416 144417 144418 144419 144420 144421 144422 144423 144424 144425 144426 144427 144428 144429 144430 |
# File 'ext/ctp/ctp.cxx', line 144409
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTIDType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcTIDType) ((arg1)->TID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#TID=(*args) ⇒ Object
144380 144381 144382 144383 144384 144385 144386 144387 144388 144389 144390 144391 144392 144393 144394 144395 144396 144397 144398 144399 144400 144401 144402 144403 144404 144405 144406 |
# File 'ext/ctp/ctp.cxx', line 144380
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcTIDType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTIDType >(val2);
if (arg1) (arg1)->TID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TradeAmount(*args) ⇒ Object
143519 143520 143521 143522 143523 143524 143525 143526 143527 143528 143529 143530 143531 143532 143533 143534 143535 143536 143537 143538 143539 143540 |
# File 'ext/ctp/ctp.cxx', line 143519
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TradeAmount_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTradeAmountType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeAmount", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcTradeAmountType) ((arg1)->TradeAmount);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#TradeAmount=(*args) ⇒ Object
143490 143491 143492 143493 143494 143495 143496 143497 143498 143499 143500 143501 143502 143503 143504 143505 143506 143507 143508 143509 143510 143511 143512 143513 143514 143515 143516 |
# File 'ext/ctp/ctp.cxx', line 143490
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TradeAmount_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcTradeAmountType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeAmount", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeAmountType","TradeAmount", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTradeAmountType >(val2);
if (arg1) (arg1)->TradeAmount = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TradeCode(*args) ⇒ Object
142076 142077 142078 142079 142080 142081 142082 142083 142084 142085 142086 142087 142088 142089 142090 142091 142092 142093 142094 142095 142096 142097 142098 142099 142100 142101 142102 142103 |
# File 'ext/ctp/ctp.cxx', line 142076
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TradeCode_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->TradeCode);
{
size_t size = SWIG_strnlen(result, 7);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradeCode=(*args) ⇒ Object
142046 142047 142048 142049 142050 142051 142052 142053 142054 142055 142056 142057 142058 142059 142060 142061 142062 142063 142064 142065 142066 142067 142068 142069 142070 142071 142072 142073 |
# File 'ext/ctp/ctp.cxx', line 142046
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TradeCode_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[7] ;
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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 7);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char));
else memset(arg1->TradeCode,0,7*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradeDate(*args) ⇒ Object
142376 142377 142378 142379 142380 142381 142382 142383 142384 142385 142386 142387 142388 142389 142390 142391 142392 142393 142394 142395 142396 142397 142398 142399 142400 142401 142402 142403 |
# File 'ext/ctp/ctp.cxx', line 142376
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TradeDate_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->TradeDate);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradeDate=(*args) ⇒ Object
142346 142347 142348 142349 142350 142351 142352 142353 142354 142355 142356 142357 142358 142359 142360 142361 142362 142363 142364 142365 142366 142367 142368 142369 142370 142371 142372 142373 |
# File 'ext/ctp/ctp.cxx', line 142346
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TradeDate_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char));
else memset(arg1->TradeDate,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradeTime(*args) ⇒ Object
142436 142437 142438 142439 142440 142441 142442 142443 142444 142445 142446 142447 142448 142449 142450 142451 142452 142453 142454 142455 142456 142457 142458 142459 142460 142461 142462 142463 |
# File 'ext/ctp/ctp.cxx', line 142436
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TradeTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (char *) ((arg1)->TradeTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradeTime=(*args) ⇒ Object
142406 142407 142408 142409 142410 142411 142412 142413 142414 142415 142416 142417 142418 142419 142420 142421 142422 142423 142424 142425 142426 142427 142428 142429 142430 142431 142432 142433 |
# File 'ext/ctp/ctp.cxx', line 142406
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TradeTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradeTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char));
else memset(arg1->TradeTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradingDay(*args) ⇒ Object
142556 142557 142558 142559 142560 142561 142562 142563 142564 142565 142566 142567 142568 142569 142570 142571 142572 142573 142574 142575 142576 142577 142578 142579 142580 142581 142582 142583 |
# File 'ext/ctp/ctp.cxx', line 142556
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TradingDay_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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
142526 142527 142528 142529 142530 142531 142532 142533 142534 142535 142536 142537 142538 142539 142540 142541 142542 142543 142544 142545 142546 142547 142548 142549 142550 142551 142552 142553 |
# File 'ext/ctp/ctp.cxx', line 142526
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TradingDay_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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;
}
|
#TransferStatus(*args) ⇒ Object
144462 144463 144464 144465 144466 144467 144468 144469 144470 144471 144472 144473 144474 144475 144476 144477 144478 144479 144480 144481 144482 144483 |
# File 'ext/ctp/ctp.cxx', line 144462
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TransferStatus_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTransferStatusType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TransferStatus", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcTransferStatusType) ((arg1)->TransferStatus);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#TransferStatus=(*args) ⇒ Object
144433 144434 144435 144436 144437 144438 144439 144440 144441 144442 144443 144444 144445 144446 144447 144448 144449 144450 144451 144452 144453 144454 144455 144456 144457 144458 144459 |
# File 'ext/ctp/ctp.cxx', line 144433
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_TransferStatus_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcTransferStatusType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","TransferStatus", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTransferStatusType","TransferStatus", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTransferStatusType >(val2);
if (arg1) (arg1)->TransferStatus = arg2;
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
143347 143348 143349 143350 143351 143352 143353 143354 143355 143356 143357 143358 143359 143360 143361 143362 143363 143364 143365 143366 143367 143368 143369 143370 143371 143372 143373 143374 |
# File 'ext/ctp/ctp.cxx', line 143347
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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
143317 143318 143319 143320 143321 143322 143323 143324 143325 143326 143327 143328 143329 143330 143331 143332 143333 143334 143335 143336 143337 143338 143339 143340 143341 143342 143343 143344 |
# File 'ext/ctp/ctp.cxx', line 143317
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(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;
}
|
#VerifyCertNoFlag(*args) ⇒ Object
143406 143407 143408 143409 143410 143411 143412 143413 143414 143415 143416 143417 143418 143419 143420 143421 143422 143423 143424 143425 143426 143427 |
# File 'ext/ctp/ctp.cxx', line 143406
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_VerifyCertNoFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcYesNoIndicatorType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","VerifyCertNoFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
result = (TThostFtdcYesNoIndicatorType) ((arg1)->VerifyCertNoFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#VerifyCertNoFlag=(*args) ⇒ Object
143377 143378 143379 143380 143381 143382 143383 143384 143385 143386 143387 143388 143389 143390 143391 143392 143393 143394 143395 143396 143397 143398 143399 143400 143401 143402 143403 |
# File 'ext/ctp/ctp.cxx', line 143377
SWIGINTERN VALUE
_wrap_CThostFtdcReqTransferField_VerifyCertNoFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqTransferField *arg1 = (CThostFtdcReqTransferField *) 0 ;
TThostFtdcYesNoIndicatorType 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_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","VerifyCertNoFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqTransferField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcYesNoIndicatorType","VerifyCertNoFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcYesNoIndicatorType >(val2);
if (arg1) (arg1)->VerifyCertNoFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|