Class: Ctp::CThostFtdcQryTransferBankField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryTransferBankField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BankBrchID(*args) ⇒ Object
- #BankBrchID=(*args) ⇒ Object
- #BankID(*args) ⇒ Object
- #BankID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
Constructor Details
#initialize(*args) ⇒ Object
103309 103310 103311 103312 103313 103314 103315 103316 103317 103318 103319 103320 103321 103322 |
# File 'ext/ctp/ctp.cxx', line 103309
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryTransferBankField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTransferBankField";
CThostFtdcQryTransferBankField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryTransferBankField *)new CThostFtdcQryTransferBankField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BankBrchID(*args) ⇒ Object
103264 103265 103266 103267 103268 103269 103270 103271 103272 103273 103274 103275 103276 103277 103278 103279 103280 103281 103282 103283 103284 103285 103286 103287 103288 103289 103290 103291 |
# File 'ext/ctp/ctp.cxx', line 103264
SWIGINTERN VALUE
_wrap_CThostFtdcQryTransferBankField_BankBrchID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryTransferBankField *arg1 = (CThostFtdcQryTransferBankField *) 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_CThostFtdcQryTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferBankField *","BankBrchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryTransferBankField * >(argp1);
result = (char *) ((arg1)->BankBrchID);
{
size_t size = SWIG_strnlen(result, 5);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankBrchID=(*args) ⇒ Object
103234 103235 103236 103237 103238 103239 103240 103241 103242 103243 103244 103245 103246 103247 103248 103249 103250 103251 103252 103253 103254 103255 103256 103257 103258 103259 103260 103261 |
# File 'ext/ctp/ctp.cxx', line 103234
SWIGINTERN VALUE
_wrap_CThostFtdcQryTransferBankField_BankBrchID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryTransferBankField *arg1 = (CThostFtdcQryTransferBankField *) 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_CThostFtdcQryTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferBankField *","BankBrchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryTransferBankField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 5);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBrchID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankBrchID,arg2,5*sizeof(char));
else memset(arg1->BankBrchID,0,5*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankID(*args) ⇒ Object
103204 103205 103206 103207 103208 103209 103210 103211 103212 103213 103214 103215 103216 103217 103218 103219 103220 103221 103222 103223 103224 103225 103226 103227 103228 103229 103230 103231 |
# File 'ext/ctp/ctp.cxx', line 103204
SWIGINTERN VALUE
_wrap_CThostFtdcQryTransferBankField_BankID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryTransferBankField *arg1 = (CThostFtdcQryTransferBankField *) 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_CThostFtdcQryTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferBankField *","BankID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryTransferBankField * >(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
103174 103175 103176 103177 103178 103179 103180 103181 103182 103183 103184 103185 103186 103187 103188 103189 103190 103191 103192 103193 103194 103195 103196 103197 103198 103199 103200 103201 |
# File 'ext/ctp/ctp.cxx', line 103174
SWIGINTERN VALUE
_wrap_CThostFtdcQryTransferBankField_BankID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryTransferBankField *arg1 = (CThostFtdcQryTransferBankField *) 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_CThostFtdcQryTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTransferBankField *","BankID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryTransferBankField * >(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;
}
|