Class: Ctp::CThostFtdcForQuoteRspField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcForQuoteRspField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ActionDay(*args) ⇒ Object
- #ActionDay=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #ForQuoteSysID(*args) ⇒ Object
- #ForQuoteSysID=(*args) ⇒ Object
- #ForQuoteTime(*args) ⇒ Object
- #ForQuoteTime=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #TradingDay(*args) ⇒ Object
- #TradingDay=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
92774 92775 92776 92777 92778 92779 92780 92781 92782 92783 92784 92785 92786 92787 |
# File 'ext/ctp/ctp.cxx', line 92774
SWIGINTERN VALUE
_wrap_new_CThostFtdcForQuoteRspField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcForQuoteRspField";
CThostFtdcForQuoteRspField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcForQuoteRspField *)new CThostFtdcForQuoteRspField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#ActionDay(*args) ⇒ Object
92669 92670 92671 92672 92673 92674 92675 92676 92677 92678 92679 92680 92681 92682 92683 92684 92685 92686 92687 92688 92689 92690 92691 92692 92693 92694 92695 92696 |
# File 'ext/ctp/ctp.cxx', line 92669
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_ActionDay_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ActionDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1);
result = (char *) ((arg1)->ActionDay);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ActionDay=(*args) ⇒ Object
92639 92640 92641 92642 92643 92644 92645 92646 92647 92648 92649 92650 92651 92652 92653 92654 92655 92656 92657 92658 92659 92660 92661 92662 92663 92664 92665 92666 |
# File 'ext/ctp/ctp.cxx', line 92639
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_ActionDay_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ActionDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDay", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ActionDay,arg2,9*sizeof(char));
else memset(arg1->ActionDay,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ExchangeID(*args) ⇒ Object
92729 92730 92731 92732 92733 92734 92735 92736 92737 92738 92739 92740 92741 92742 92743 92744 92745 92746 92747 92748 92749 92750 92751 92752 92753 92754 92755 92756 |
# File 'ext/ctp/ctp.cxx', line 92729
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1);
result = (char *) ((arg1)->ExchangeID);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ExchangeID=(*args) ⇒ Object
92699 92700 92701 92702 92703 92704 92705 92706 92707 92708 92709 92710 92711 92712 92713 92714 92715 92716 92717 92718 92719 92720 92721 92722 92723 92724 92725 92726 |
# File 'ext/ctp/ctp.cxx', line 92699
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ExchangeID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ExchangeID,arg2,9*sizeof(char));
else memset(arg1->ExchangeID,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ForQuoteSysID(*args) ⇒ Object
92549 92550 92551 92552 92553 92554 92555 92556 92557 92558 92559 92560 92561 92562 92563 92564 92565 92566 92567 92568 92569 92570 92571 92572 92573 92574 92575 92576 |
# File 'ext/ctp/ctp.cxx', line 92549
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_ForQuoteSysID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ForQuoteSysID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1);
result = (char *) ((arg1)->ForQuoteSysID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ForQuoteSysID=(*args) ⇒ Object
92519 92520 92521 92522 92523 92524 92525 92526 92527 92528 92529 92530 92531 92532 92533 92534 92535 92536 92537 92538 92539 92540 92541 92542 92543 92544 92545 92546 |
# File 'ext/ctp/ctp.cxx', line 92519
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_ForQuoteSysID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[21] ;
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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ForQuoteSysID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","ForQuoteSysID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ForQuoteSysID,arg2,21*sizeof(char));
else memset(arg1->ForQuoteSysID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ForQuoteTime(*args) ⇒ Object
92609 92610 92611 92612 92613 92614 92615 92616 92617 92618 92619 92620 92621 92622 92623 92624 92625 92626 92627 92628 92629 92630 92631 92632 92633 92634 92635 92636 |
# File 'ext/ctp/ctp.cxx', line 92609
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_ForQuoteTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ForQuoteTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1);
result = (char *) ((arg1)->ForQuoteTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ForQuoteTime=(*args) ⇒ Object
92579 92580 92581 92582 92583 92584 92585 92586 92587 92588 92589 92590 92591 92592 92593 92594 92595 92596 92597 92598 92599 92600 92601 92602 92603 92604 92605 92606 |
# File 'ext/ctp/ctp.cxx', line 92579
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_ForQuoteTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","ForQuoteTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ForQuoteTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ForQuoteTime,arg2,9*sizeof(char));
else memset(arg1->ForQuoteTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
92489 92490 92491 92492 92493 92494 92495 92496 92497 92498 92499 92500 92501 92502 92503 92504 92505 92506 92507 92508 92509 92510 92511 92512 92513 92514 92515 92516 |
# File 'ext/ctp/ctp.cxx', line 92489
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1);
result = (char *) ((arg1)->InstrumentID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InstrumentID=(*args) ⇒ Object
92459 92460 92461 92462 92463 92464 92465 92466 92467 92468 92469 92470 92471 92472 92473 92474 92475 92476 92477 92478 92479 92480 92481 92482 92483 92484 92485 92486 |
# File 'ext/ctp/ctp.cxx', line 92459
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char));
else memset(arg1->InstrumentID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradingDay(*args) ⇒ Object
92429 92430 92431 92432 92433 92434 92435 92436 92437 92438 92439 92440 92441 92442 92443 92444 92445 92446 92447 92448 92449 92450 92451 92452 92453 92454 92455 92456 |
# File 'ext/ctp/ctp.cxx', line 92429
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_TradingDay_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(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
92399 92400 92401 92402 92403 92404 92405 92406 92407 92408 92409 92410 92411 92412 92413 92414 92415 92416 92417 92418 92419 92420 92421 92422 92423 92424 92425 92426 |
# File 'ext/ctp/ctp.cxx', line 92399
SWIGINTERN VALUE
_wrap_CThostFtdcForQuoteRspField_TradingDay_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcForQuoteRspField *arg1 = (CThostFtdcForQuoteRspField *) 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_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcForQuoteRspField * >(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;
}
|