Class: Ctp::CThostFtdcSyncingTradingCodeField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcSyncingTradingCodeField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #ClientID(*args) ⇒ Object
- #ClientID=(*args) ⇒ Object
- #ClientIDType(*args) ⇒ Object
- #ClientIDType=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #IsActive(*args) ⇒ Object
- #IsActive=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
50620 50621 50622 50623 50624 50625 50626 50627 50628 50629 50630 50631 50632 50633 |
# File 'ext/ctp/ctp.cxx', line 50620
SWIGINTERN VALUE
_wrap_new_CThostFtdcSyncingTradingCodeField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingTradingCodeField";
CThostFtdcSyncingTradingCodeField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcSyncingTradingCodeField *)new CThostFtdcSyncingTradingCodeField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
50349 50350 50351 50352 50353 50354 50355 50356 50357 50358 50359 50360 50361 50362 50363 50364 50365 50366 50367 50368 50369 50370 50371 50372 50373 50374 50375 50376 |
# File 'ext/ctp/ctp.cxx', line 50349
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(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
50319 50320 50321 50322 50323 50324 50325 50326 50327 50328 50329 50330 50331 50332 50333 50334 50335 50336 50337 50338 50339 50340 50341 50342 50343 50344 50345 50346 |
# File 'ext/ctp/ctp.cxx', line 50319
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(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;
}
|
#ClientID(*args) ⇒ Object
50469 50470 50471 50472 50473 50474 50475 50476 50477 50478 50479 50480 50481 50482 50483 50484 50485 50486 50487 50488 50489 50490 50491 50492 50493 50494 50495 50496 |
# File 'ext/ctp/ctp.cxx', line 50469
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_ClientID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ClientID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1);
result = (char *) ((arg1)->ClientID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ClientID=(*args) ⇒ Object
50439 50440 50441 50442 50443 50444 50445 50446 50447 50448 50449 50450 50451 50452 50453 50454 50455 50456 50457 50458 50459 50460 50461 50462 50463 50464 50465 50466 |
# File 'ext/ctp/ctp.cxx', line 50439
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_ClientID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ClientID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClientID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ClientID,arg2,11*sizeof(char));
else memset(arg1->ClientID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ClientIDType(*args) ⇒ Object
50581 50582 50583 50584 50585 50586 50587 50588 50589 50590 50591 50592 50593 50594 50595 50596 50597 50598 50599 50600 50601 50602 |
# File 'ext/ctp/ctp.cxx', line 50581
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_ClientIDType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcClientIDTypeType 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ClientIDType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1);
result = (TThostFtdcClientIDTypeType) ((arg1)->ClientIDType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#ClientIDType=(*args) ⇒ Object
50552 50553 50554 50555 50556 50557 50558 50559 50560 50561 50562 50563 50564 50565 50566 50567 50568 50569 50570 50571 50572 50573 50574 50575 50576 50577 50578 |
# File 'ext/ctp/ctp.cxx', line 50552
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_ClientIDType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 0 ;
TThostFtdcClientIDTypeType 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ClientIDType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcClientIDTypeType","ClientIDType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcClientIDTypeType >(val2);
if (arg1) (arg1)->ClientIDType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ExchangeID(*args) ⇒ Object
50409 50410 50411 50412 50413 50414 50415 50416 50417 50418 50419 50420 50421 50422 50423 50424 50425 50426 50427 50428 50429 50430 50431 50432 50433 50434 50435 50436 |
# File 'ext/ctp/ctp.cxx', line 50409
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1);
result = (char *) ((arg1)->ExchangeID);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ExchangeID=(*args) ⇒ Object
50379 50380 50381 50382 50383 50384 50385 50386 50387 50388 50389 50390 50391 50392 50393 50394 50395 50396 50397 50398 50399 50400 50401 50402 50403 50404 50405 50406 |
# File 'ext/ctp/ctp.cxx', line 50379
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ExchangeID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ExchangeID,arg2,9*sizeof(char));
else memset(arg1->ExchangeID,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorID(*args) ⇒ Object
50289 50290 50291 50292 50293 50294 50295 50296 50297 50298 50299 50300 50301 50302 50303 50304 50305 50306 50307 50308 50309 50310 50311 50312 50313 50314 50315 50316 |
# File 'ext/ctp/ctp.cxx', line 50289
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(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
50259 50260 50261 50262 50263 50264 50265 50266 50267 50268 50269 50270 50271 50272 50273 50274 50275 50276 50277 50278 50279 50280 50281 50282 50283 50284 50285 50286 |
# File 'ext/ctp/ctp.cxx', line 50259
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(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;
}
|
#IsActive(*args) ⇒ Object
50528 50529 50530 50531 50532 50533 50534 50535 50536 50537 50538 50539 50540 50541 50542 50543 50544 50545 50546 50547 50548 50549 |
# File 'ext/ctp/ctp.cxx', line 50528
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_IsActive_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcBoolType 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1);
result = (TThostFtdcBoolType) ((arg1)->IsActive);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#IsActive=(*args) ⇒ Object
50499 50500 50501 50502 50503 50504 50505 50506 50507 50508 50509 50510 50511 50512 50513 50514 50515 50516 50517 50518 50519 50520 50521 50522 50523 50524 50525 |
# File 'ext/ctp/ctp.cxx', line 50499
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingCodeField_IsActive_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingCodeField *arg1 = (CThostFtdcSyncingTradingCodeField *) 0 ;
TThostFtdcBoolType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int 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_CThostFtdcSyncingTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingCodeField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingCodeField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBoolType >(val2);
if (arg1) (arg1)->IsActive = arg2;
return Qnil;
fail:
return Qnil;
}
|