Class: Ctp::CThostFtdcCombInstrumentGuardField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcCombInstrumentGuardField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #GuarantRatio(*args) ⇒ Object
- #GuarantRatio=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
93530 93531 93532 93533 93534 93535 93536 93537 93538 93539 93540 93541 93542 93543 |
# File 'ext/ctp/ctp.cxx', line 93530
SWIGINTERN VALUE
_wrap_new_CThostFtdcCombInstrumentGuardField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcCombInstrumentGuardField";
CThostFtdcCombInstrumentGuardField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcCombInstrumentGuardField *)new CThostFtdcCombInstrumentGuardField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
93372 93373 93374 93375 93376 93377 93378 93379 93380 93381 93382 93383 93384 93385 93386 93387 93388 93389 93390 93391 93392 93393 93394 93395 93396 93397 93398 93399 |
# File 'ext/ctp/ctp.cxx', line 93372
SWIGINTERN VALUE
_wrap_CThostFtdcCombInstrumentGuardField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 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_CThostFtdcCombInstrumentGuardField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(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
93342 93343 93344 93345 93346 93347 93348 93349 93350 93351 93352 93353 93354 93355 93356 93357 93358 93359 93360 93361 93362 93363 93364 93365 93366 93367 93368 93369 |
# File 'ext/ctp/ctp.cxx', line 93342
SWIGINTERN VALUE
_wrap_CThostFtdcCombInstrumentGuardField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 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_CThostFtdcCombInstrumentGuardField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(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;
}
|
#GuarantRatio(*args) ⇒ Object
93491 93492 93493 93494 93495 93496 93497 93498 93499 93500 93501 93502 93503 93504 93505 93506 93507 93508 93509 93510 93511 93512 |
# File 'ext/ctp/ctp.cxx', line 93491
SWIGINTERN VALUE
_wrap_CThostFtdcCombInstrumentGuardField_GuarantRatio_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRatioType 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_CThostFtdcCombInstrumentGuardField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","GuarantRatio", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->GuarantRatio);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#GuarantRatio=(*args) ⇒ Object
93462 93463 93464 93465 93466 93467 93468 93469 93470 93471 93472 93473 93474 93475 93476 93477 93478 93479 93480 93481 93482 93483 93484 93485 93486 93487 93488 |
# File 'ext/ctp/ctp.cxx', line 93462
SWIGINTERN VALUE
_wrap_CThostFtdcCombInstrumentGuardField_GuarantRatio_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 0 ;
TThostFtdcRatioType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double 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_CThostFtdcCombInstrumentGuardField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","GuarantRatio", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","GuarantRatio", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->GuarantRatio = arg2;
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
93432 93433 93434 93435 93436 93437 93438 93439 93440 93441 93442 93443 93444 93445 93446 93447 93448 93449 93450 93451 93452 93453 93454 93455 93456 93457 93458 93459 |
# File 'ext/ctp/ctp.cxx', line 93432
SWIGINTERN VALUE
_wrap_CThostFtdcCombInstrumentGuardField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 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_CThostFtdcCombInstrumentGuardField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(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
93402 93403 93404 93405 93406 93407 93408 93409 93410 93411 93412 93413 93414 93415 93416 93417 93418 93419 93420 93421 93422 93423 93424 93425 93426 93427 93428 93429 |
# File 'ext/ctp/ctp.cxx', line 93402
SWIGINTERN VALUE
_wrap_CThostFtdcCombInstrumentGuardField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCombInstrumentGuardField *arg1 = (CThostFtdcCombInstrumentGuardField *) 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_CThostFtdcCombInstrumentGuardField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCombInstrumentGuardField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCombInstrumentGuardField * >(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;
}
|