Class: Ctp::CThostFtdcInputForQuoteField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcInputForQuoteField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #ForQuoteRef(*args) ⇒ Object
- #ForQuoteRef=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
79832 79833 79834 79835 79836 79837 79838 79839 79840 79841 79842 79843 79844 79845 |
# File 'ext/ctp/ctp.cxx', line 79832
SWIGINTERN VALUE
_wrap_new_CThostFtdcInputForQuoteField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputForQuoteField";
CThostFtdcInputForQuoteField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcInputForQuoteField *)new CThostFtdcInputForQuoteField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
79547 79548 79549 79550 79551 79552 79553 79554 79555 79556 79557 79558 79559 79560 79561 79562 79563 79564 79565 79566 79567 79568 79569 79570 79571 79572 79573 79574 |
# File 'ext/ctp/ctp.cxx', line 79547
SWIGINTERN VALUE
_wrap_CThostFtdcInputForQuoteField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(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
79517 79518 79519 79520 79521 79522 79523 79524 79525 79526 79527 79528 79529 79530 79531 79532 79533 79534 79535 79536 79537 79538 79539 79540 79541 79542 79543 79544 |
# File 'ext/ctp/ctp.cxx', line 79517
SWIGINTERN VALUE
_wrap_CThostFtdcInputForQuoteField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(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;
}
|
#ForQuoteRef(*args) ⇒ Object
79727 79728 79729 79730 79731 79732 79733 79734 79735 79736 79737 79738 79739 79740 79741 79742 79743 79744 79745 79746 79747 79748 79749 79750 79751 79752 79753 79754 |
# File 'ext/ctp/ctp.cxx', line 79727
SWIGINTERN VALUE
_wrap_CThostFtdcInputForQuoteField_ForQuoteRef_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","ForQuoteRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1);
result = (char *) ((arg1)->ForQuoteRef);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ForQuoteRef=(*args) ⇒ Object
79697 79698 79699 79700 79701 79702 79703 79704 79705 79706 79707 79708 79709 79710 79711 79712 79713 79714 79715 79716 79717 79718 79719 79720 79721 79722 79723 79724 |
# File 'ext/ctp/ctp.cxx', line 79697
SWIGINTERN VALUE
_wrap_CThostFtdcInputForQuoteField_ForQuoteRef_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","ForQuoteRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ForQuoteRef", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ForQuoteRef,arg2,13*sizeof(char));
else memset(arg1->ForQuoteRef,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
79667 79668 79669 79670 79671 79672 79673 79674 79675 79676 79677 79678 79679 79680 79681 79682 79683 79684 79685 79686 79687 79688 79689 79690 79691 79692 79693 79694 |
# File 'ext/ctp/ctp.cxx', line 79667
SWIGINTERN VALUE
_wrap_CThostFtdcInputForQuoteField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(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
79637 79638 79639 79640 79641 79642 79643 79644 79645 79646 79647 79648 79649 79650 79651 79652 79653 79654 79655 79656 79657 79658 79659 79660 79661 79662 79663 79664 |
# File 'ext/ctp/ctp.cxx', line 79637
SWIGINTERN VALUE
_wrap_CThostFtdcInputForQuoteField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(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;
}
|
#InvestorID(*args) ⇒ Object
79607 79608 79609 79610 79611 79612 79613 79614 79615 79616 79617 79618 79619 79620 79621 79622 79623 79624 79625 79626 79627 79628 79629 79630 79631 79632 79633 79634 |
# File 'ext/ctp/ctp.cxx', line 79607
SWIGINTERN VALUE
_wrap_CThostFtdcInputForQuoteField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1);
result = (char *) ((arg1)->InvestorID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InvestorID=(*args) ⇒ Object
79577 79578 79579 79580 79581 79582 79583 79584 79585 79586 79587 79588 79589 79590 79591 79592 79593 79594 79595 79596 79597 79598 79599 79600 79601 79602 79603 79604 |
# File 'ext/ctp/ctp.cxx', line 79577
SWIGINTERN VALUE
_wrap_CThostFtdcInputForQuoteField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char));
else memset(arg1->InvestorID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
79787 79788 79789 79790 79791 79792 79793 79794 79795 79796 79797 79798 79799 79800 79801 79802 79803 79804 79805 79806 79807 79808 79809 79810 79811 79812 79813 79814 |
# File 'ext/ctp/ctp.cxx', line 79787
SWIGINTERN VALUE
_wrap_CThostFtdcInputForQuoteField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(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
79757 79758 79759 79760 79761 79762 79763 79764 79765 79766 79767 79768 79769 79770 79771 79772 79773 79774 79775 79776 79777 79778 79779 79780 79781 79782 79783 79784 |
# File 'ext/ctp/ctp.cxx', line 79757
SWIGINTERN VALUE
_wrap_CThostFtdcInputForQuoteField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputForQuoteField *arg1 = (CThostFtdcInputForQuoteField *) 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_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputForQuoteField * >(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;
}
|