Class: Ctp::CThostFtdcFrontStatusField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcFrontStatusField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #FrontID(*args) ⇒ Object
- #FrontID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #IsActive(*args) ⇒ Object
- #IsActive=(*args) ⇒ Object
- #LastReportDate(*args) ⇒ Object
- #LastReportDate=(*args) ⇒ Object
- #LastReportTime(*args) ⇒ Object
- #LastReportTime=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
32627 32628 32629 32630 32631 32632 32633 32634 32635 32636 32637 32638 32639 32640 |
# File 'ext/ctp/ctp.cxx', line 32627
SWIGINTERN VALUE
_wrap_new_CThostFtdcFrontStatusField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcFrontStatusField";
CThostFtdcFrontStatusField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcFrontStatusField *)new CThostFtdcFrontStatusField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#FrontID(*args) ⇒ Object
32415 32416 32417 32418 32419 32420 32421 32422 32423 32424 32425 32426 32427 32428 32429 32430 32431 32432 32433 32434 32435 32436 |
# File 'ext/ctp/ctp.cxx', line 32415
SWIGINTERN VALUE
_wrap_CThostFtdcFrontStatusField_FrontID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcFrontIDType 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_CThostFtdcFrontStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","FrontID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1);
result = (TThostFtdcFrontIDType) ((arg1)->FrontID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#FrontID=(*args) ⇒ Object
32386 32387 32388 32389 32390 32391 32392 32393 32394 32395 32396 32397 32398 32399 32400 32401 32402 32403 32404 32405 32406 32407 32408 32409 32410 32411 32412 |
# File 'ext/ctp/ctp.cxx', line 32386
SWIGINTERN VALUE
_wrap_CThostFtdcFrontStatusField_FrontID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 0 ;
TThostFtdcFrontIDType 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_CThostFtdcFrontStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","FrontID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcFrontIDType >(val2);
if (arg1) (arg1)->FrontID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#IsActive(*args) ⇒ Object
32588 32589 32590 32591 32592 32593 32594 32595 32596 32597 32598 32599 32600 32601 32602 32603 32604 32605 32606 32607 32608 32609 |
# File 'ext/ctp/ctp.cxx', line 32588
SWIGINTERN VALUE
_wrap_CThostFtdcFrontStatusField_IsActive_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcBoolType 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_CThostFtdcFrontStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1);
result = (TThostFtdcBoolType) ((arg1)->IsActive);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#IsActive=(*args) ⇒ Object
32559 32560 32561 32562 32563 32564 32565 32566 32567 32568 32569 32570 32571 32572 32573 32574 32575 32576 32577 32578 32579 32580 32581 32582 32583 32584 32585 |
# File 'ext/ctp/ctp.cxx', line 32559
SWIGINTERN VALUE
_wrap_CThostFtdcFrontStatusField_IsActive_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 0 ;
TThostFtdcBoolType 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_CThostFtdcFrontStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBoolType >(val2);
if (arg1) (arg1)->IsActive = arg2;
return Qnil;
fail:
return Qnil;
}
|
#LastReportDate(*args) ⇒ Object
32469 32470 32471 32472 32473 32474 32475 32476 32477 32478 32479 32480 32481 32482 32483 32484 32485 32486 32487 32488 32489 32490 32491 32492 32493 32494 32495 32496 |
# File 'ext/ctp/ctp.cxx', line 32469
SWIGINTERN VALUE
_wrap_CThostFtdcFrontStatusField_LastReportDate_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 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_CThostFtdcFrontStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","LastReportDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1);
result = (char *) ((arg1)->LastReportDate);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#LastReportDate=(*args) ⇒ Object
32439 32440 32441 32442 32443 32444 32445 32446 32447 32448 32449 32450 32451 32452 32453 32454 32455 32456 32457 32458 32459 32460 32461 32462 32463 32464 32465 32466 |
# File 'ext/ctp/ctp.cxx', line 32439
SWIGINTERN VALUE
_wrap_CThostFtdcFrontStatusField_LastReportDate_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 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_CThostFtdcFrontStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","LastReportDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LastReportDate", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->LastReportDate,arg2,9*sizeof(char));
else memset(arg1->LastReportDate,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#LastReportTime(*args) ⇒ Object
32529 32530 32531 32532 32533 32534 32535 32536 32537 32538 32539 32540 32541 32542 32543 32544 32545 32546 32547 32548 32549 32550 32551 32552 32553 32554 32555 32556 |
# File 'ext/ctp/ctp.cxx', line 32529
SWIGINTERN VALUE
_wrap_CThostFtdcFrontStatusField_LastReportTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 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_CThostFtdcFrontStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","LastReportTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1);
result = (char *) ((arg1)->LastReportTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#LastReportTime=(*args) ⇒ Object
32499 32500 32501 32502 32503 32504 32505 32506 32507 32508 32509 32510 32511 32512 32513 32514 32515 32516 32517 32518 32519 32520 32521 32522 32523 32524 32525 32526 |
# File 'ext/ctp/ctp.cxx', line 32499
SWIGINTERN VALUE
_wrap_CThostFtdcFrontStatusField_LastReportTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcFrontStatusField *arg1 = (CThostFtdcFrontStatusField *) 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_CThostFtdcFrontStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcFrontStatusField *","LastReportTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcFrontStatusField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LastReportTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->LastReportTime,arg2,9*sizeof(char));
else memset(arg1->LastReportTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|