Class: Ctp::CThostFtdcInstrumentTradingRightField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcInstrumentTradingRightField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #InvestorRange(*args) ⇒ Object
- #InvestorRange=(*args) ⇒ Object
- #TradingRight(*args) ⇒ Object
- #TradingRight=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
25750 25751 25752 25753 25754 25755 25756 25757 25758 25759 25760 25761 25762 25763 |
# File 'ext/ctp/ctp.cxx', line 25750
SWIGINTERN VALUE
_wrap_new_CThostFtdcInstrumentTradingRightField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcInstrumentTradingRightField";
CThostFtdcInstrumentTradingRightField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcInstrumentTradingRightField *)new CThostFtdcInstrumentTradingRightField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
25592 25593 25594 25595 25596 25597 25598 25599 25600 25601 25602 25603 25604 25605 25606 25607 25608 25609 25610 25611 25612 25613 25614 25615 25616 25617 25618 25619 |
# File 'ext/ctp/ctp.cxx', line 25592
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentTradingRightField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(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
25562 25563 25564 25565 25566 25567 25568 25569 25570 25571 25572 25573 25574 25575 25576 25577 25578 25579 25580 25581 25582 25583 25584 25585 25586 25587 25588 25589 |
# File 'ext/ctp/ctp.cxx', line 25562
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentTradingRightField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(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;
}
|
#InstrumentID(*args) ⇒ Object
25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 |
# File 'ext/ctp/ctp.cxx', line 25479
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentTradingRightField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(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
25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 |
# File 'ext/ctp/ctp.cxx', line 25449
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentTradingRightField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(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
25652 25653 25654 25655 25656 25657 25658 25659 25660 25661 25662 25663 25664 25665 25666 25667 25668 25669 25670 25671 25672 25673 25674 25675 25676 25677 25678 25679 |
# File 'ext/ctp/ctp.cxx', line 25652
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentTradingRightField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(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
25622 25623 25624 25625 25626 25627 25628 25629 25630 25631 25632 25633 25634 25635 25636 25637 25638 25639 25640 25641 25642 25643 25644 25645 25646 25647 25648 25649 |
# File 'ext/ctp/ctp.cxx', line 25622
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentTradingRightField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 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_CThostFtdcInstrumentTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(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;
}
|
#InvestorRange(*args) ⇒ Object
25538 25539 25540 25541 25542 25543 25544 25545 25546 25547 25548 25549 25550 25551 25552 25553 25554 25555 25556 25557 25558 25559 |
# File 'ext/ctp/ctp.cxx', line 25538
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentTradingRightField_InvestorRange_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcInvestorRangeType 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_CThostFtdcInstrumentTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InvestorRange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1);
result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#InvestorRange=(*args) ⇒ Object
25509 25510 25511 25512 25513 25514 25515 25516 25517 25518 25519 25520 25521 25522 25523 25524 25525 25526 25527 25528 25529 25530 25531 25532 25533 25534 25535 |
# File 'ext/ctp/ctp.cxx', line 25509
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentTradingRightField_InvestorRange_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 0 ;
TThostFtdcInvestorRangeType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char 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_CThostFtdcInstrumentTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","InvestorRange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcInvestorRangeType >(val2);
if (arg1) (arg1)->InvestorRange = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TradingRight(*args) ⇒ Object
25711 25712 25713 25714 25715 25716 25717 25718 25719 25720 25721 25722 25723 25724 25725 25726 25727 25728 25729 25730 25731 25732 |
# File 'ext/ctp/ctp.cxx', line 25711
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentTradingRightField_TradingRight_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTradingRightType 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_CThostFtdcInstrumentTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","TradingRight", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1);
result = (TThostFtdcTradingRightType) ((arg1)->TradingRight);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#TradingRight=(*args) ⇒ Object
25682 25683 25684 25685 25686 25687 25688 25689 25690 25691 25692 25693 25694 25695 25696 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 25707 25708 |
# File 'ext/ctp/ctp.cxx', line 25682
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentTradingRightField_TradingRight_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentTradingRightField *arg1 = (CThostFtdcInstrumentTradingRightField *) 0 ;
TThostFtdcTradingRightType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char 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_CThostFtdcInstrumentTradingRightField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentTradingRightField *","TradingRight", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentTradingRightField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradingRightType","TradingRight", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTradingRightType >(val2);
if (arg1) (arg1)->TradingRight = arg2;
return Qnil;
fail:
return Qnil;
}
|