Class: Ctp::CThostFtdcBrokerUserFunctionField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcBrokerUserFunctionField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerFunctionCode(*args) ⇒ Object
- #BrokerFunctionCode=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
26559 26560 26561 26562 26563 26564 26565 26566 26567 26568 26569 26570 26571 26572 |
# File 'ext/ctp/ctp.cxx', line 26559
SWIGINTERN VALUE
_wrap_new_CThostFtdcBrokerUserFunctionField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerUserFunctionField";
CThostFtdcBrokerUserFunctionField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcBrokerUserFunctionField *)new CThostFtdcBrokerUserFunctionField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerFunctionCode(*args) ⇒ Object
26520 26521 26522 26523 26524 26525 26526 26527 26528 26529 26530 26531 26532 26533 26534 26535 26536 26537 26538 26539 26540 26541 |
# File 'ext/ctp/ctp.cxx', line 26520
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserFunctionField_BrokerFunctionCode_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcBrokerFunctionCodeType 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_CThostFtdcBrokerUserFunctionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","BrokerFunctionCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(argp1);
result = (TThostFtdcBrokerFunctionCodeType) ((arg1)->BrokerFunctionCode);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#BrokerFunctionCode=(*args) ⇒ Object
26491 26492 26493 26494 26495 26496 26497 26498 26499 26500 26501 26502 26503 26504 26505 26506 26507 26508 26509 26510 26511 26512 26513 26514 26515 26516 26517 |
# File 'ext/ctp/ctp.cxx', line 26491
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserFunctionField_BrokerFunctionCode_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 0 ;
TThostFtdcBrokerFunctionCodeType 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_CThostFtdcBrokerUserFunctionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","BrokerFunctionCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBrokerFunctionCodeType","BrokerFunctionCode", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBrokerFunctionCodeType >(val2);
if (arg1) (arg1)->BrokerFunctionCode = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BrokerID(*args) ⇒ Object
26401 26402 26403 26404 26405 26406 26407 26408 26409 26410 26411 26412 26413 26414 26415 26416 26417 26418 26419 26420 26421 26422 26423 26424 26425 26426 26427 26428 |
# File 'ext/ctp/ctp.cxx', line 26401
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserFunctionField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 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_CThostFtdcBrokerUserFunctionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(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
26371 26372 26373 26374 26375 26376 26377 26378 26379 26380 26381 26382 26383 26384 26385 26386 26387 26388 26389 26390 26391 26392 26393 26394 26395 26396 26397 26398 |
# File 'ext/ctp/ctp.cxx', line 26371
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserFunctionField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 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_CThostFtdcBrokerUserFunctionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(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;
}
|
#UserID(*args) ⇒ Object
26461 26462 26463 26464 26465 26466 26467 26468 26469 26470 26471 26472 26473 26474 26475 26476 26477 26478 26479 26480 26481 26482 26483 26484 26485 26486 26487 26488 |
# File 'ext/ctp/ctp.cxx', line 26461
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserFunctionField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 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_CThostFtdcBrokerUserFunctionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(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
26431 26432 26433 26434 26435 26436 26437 26438 26439 26440 26441 26442 26443 26444 26445 26446 26447 26448 26449 26450 26451 26452 26453 26454 26455 26456 26457 26458 |
# File 'ext/ctp/ctp.cxx', line 26431
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserFunctionField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserFunctionField *arg1 = (CThostFtdcBrokerUserFunctionField *) 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_CThostFtdcBrokerUserFunctionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserFunctionField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserFunctionField * >(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;
}
|