Class: Ctp::CThostFtdcQryOptionInstrCommRateField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryOptionInstrCommRateField
- 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
Constructor Details
#initialize(*args) ⇒ Object
67602 67603 67604 67605 67606 67607 67608 67609 67610 67611 67612 67613 67614 67615 |
# File 'ext/ctp/ctp.cxx', line 67602
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryOptionInstrCommRateField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryOptionInstrCommRateField";
CThostFtdcQryOptionInstrCommRateField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryOptionInstrCommRateField *)new CThostFtdcQryOptionInstrCommRateField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
67437 67438 67439 67440 67441 67442 67443 67444 67445 67446 67447 67448 67449 67450 67451 67452 67453 67454 67455 67456 67457 67458 67459 67460 67461 67462 67463 67464 |
# File 'ext/ctp/ctp.cxx', line 67437
SWIGINTERN VALUE
_wrap_CThostFtdcQryOptionInstrCommRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(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
67407 67408 67409 67410 67411 67412 67413 67414 67415 67416 67417 67418 67419 67420 67421 67422 67423 67424 67425 67426 67427 67428 67429 67430 67431 67432 67433 67434 |
# File 'ext/ctp/ctp.cxx', line 67407
SWIGINTERN VALUE
_wrap_CThostFtdcQryOptionInstrCommRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(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
67557 67558 67559 67560 67561 67562 67563 67564 67565 67566 67567 67568 67569 67570 67571 67572 67573 67574 67575 67576 67577 67578 67579 67580 67581 67582 67583 67584 |
# File 'ext/ctp/ctp.cxx', line 67557
SWIGINTERN VALUE
_wrap_CThostFtdcQryOptionInstrCommRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(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
67527 67528 67529 67530 67531 67532 67533 67534 67535 67536 67537 67538 67539 67540 67541 67542 67543 67544 67545 67546 67547 67548 67549 67550 67551 67552 67553 67554 |
# File 'ext/ctp/ctp.cxx', line 67527
SWIGINTERN VALUE
_wrap_CThostFtdcQryOptionInstrCommRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(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
67497 67498 67499 67500 67501 67502 67503 67504 67505 67506 67507 67508 67509 67510 67511 67512 67513 67514 67515 67516 67517 67518 67519 67520 67521 67522 67523 67524 |
# File 'ext/ctp/ctp.cxx', line 67497
SWIGINTERN VALUE
_wrap_CThostFtdcQryOptionInstrCommRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(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
67467 67468 67469 67470 67471 67472 67473 67474 67475 67476 67477 67478 67479 67480 67481 67482 67483 67484 67485 67486 67487 67488 67489 67490 67491 67492 67493 67494 |
# File 'ext/ctp/ctp.cxx', line 67467
SWIGINTERN VALUE
_wrap_CThostFtdcQryOptionInstrCommRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryOptionInstrCommRateField *arg1 = (CThostFtdcQryOptionInstrCommRateField *) 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_CThostFtdcQryOptionInstrCommRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(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;
}
|