Class: Ctp::CThostFtdcTradingAccountReserveField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcTradingAccountReserveField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #AccountID(*args) ⇒ Object
- #AccountID=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CurrencyID(*args) ⇒ Object
- #CurrencyID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #Reserve(*args) ⇒ Object
- #Reserve=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
191526 191527 191528 191529 191530 191531 191532 191533 191534 191535 191536 191537 191538 191539 |
# File 'ext/ctp/ctp.cxx', line 191526
SWIGINTERN VALUE
_wrap_new_CThostFtdcTradingAccountReserveField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingAccountReserveField";
CThostFtdcTradingAccountReserveField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcTradingAccountReserveField *)new CThostFtdcTradingAccountReserveField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#AccountID(*args) ⇒ Object
191368 191369 191370 191371 191372 191373 191374 191375 191376 191377 191378 191379 191380 191381 191382 191383 191384 191385 191386 191387 191388 191389 191390 191391 191392 191393 191394 191395 |
# File 'ext/ctp/ctp.cxx', line 191368
SWIGINTERN VALUE
_wrap_CThostFtdcTradingAccountReserveField_AccountID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","AccountID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(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
191338 191339 191340 191341 191342 191343 191344 191345 191346 191347 191348 191349 191350 191351 191352 191353 191354 191355 191356 191357 191358 191359 191360 191361 191362 191363 191364 191365 |
# File 'ext/ctp/ctp.cxx', line 191338
SWIGINTERN VALUE
_wrap_CThostFtdcTradingAccountReserveField_AccountID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","AccountID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(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;
}
|
#BrokerID(*args) ⇒ Object
191308 191309 191310 191311 191312 191313 191314 191315 191316 191317 191318 191319 191320 191321 191322 191323 191324 191325 191326 191327 191328 191329 191330 191331 191332 191333 191334 191335 |
# File 'ext/ctp/ctp.cxx', line 191308
SWIGINTERN VALUE
_wrap_CThostFtdcTradingAccountReserveField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(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
191278 191279 191280 191281 191282 191283 191284 191285 191286 191287 191288 191289 191290 191291 191292 191293 191294 191295 191296 191297 191298 191299 191300 191301 191302 191303 191304 191305 |
# File 'ext/ctp/ctp.cxx', line 191278
SWIGINTERN VALUE
_wrap_CThostFtdcTradingAccountReserveField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","BrokerID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BrokerID,arg2,11*sizeof(char));
else memset(arg1->BrokerID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CurrencyID(*args) ⇒ Object
191481 191482 191483 191484 191485 191486 191487 191488 191489 191490 191491 191492 191493 191494 191495 191496 191497 191498 191499 191500 191501 191502 191503 191504 191505 191506 191507 191508 |
# File 'ext/ctp/ctp.cxx', line 191481
SWIGINTERN VALUE
_wrap_CThostFtdcTradingAccountReserveField_CurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(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
191451 191452 191453 191454 191455 191456 191457 191458 191459 191460 191461 191462 191463 191464 191465 191466 191467 191468 191469 191470 191471 191472 191473 191474 191475 191476 191477 191478 |
# File 'ext/ctp/ctp.cxx', line 191451
SWIGINTERN VALUE
_wrap_CThostFtdcTradingAccountReserveField_CurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 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_CThostFtdcTradingAccountReserveField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(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;
}
|
#Reserve(*args) ⇒ Object
191427 191428 191429 191430 191431 191432 191433 191434 191435 191436 191437 191438 191439 191440 191441 191442 191443 191444 191445 191446 191447 191448 |
# File 'ext/ctp/ctp.cxx', line 191427
SWIGINTERN VALUE
_wrap_CThostFtdcTradingAccountReserveField_Reserve_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcMoneyType 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_CThostFtdcTradingAccountReserveField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","Reserve", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Reserve);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Reserve=(*args) ⇒ Object
191398 191399 191400 191401 191402 191403 191404 191405 191406 191407 191408 191409 191410 191411 191412 191413 191414 191415 191416 191417 191418 191419 191420 191421 191422 191423 191424 |
# File 'ext/ctp/ctp.cxx', line 191398
SWIGINTERN VALUE
_wrap_CThostFtdcTradingAccountReserveField_Reserve_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingAccountReserveField *arg1 = (CThostFtdcTradingAccountReserveField *) 0 ;
TThostFtdcMoneyType 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_CThostFtdcTradingAccountReserveField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountReserveField *","Reserve", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingAccountReserveField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Reserve", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Reserve = arg2;
return Qnil;
fail:
return Qnil;
}
|