Class: Ctp::CThostFtdcSettlementInfoConfirmField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcSettlementInfoConfirmField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #ConfirmDate(*args) ⇒ Object
- #ConfirmDate=(*args) ⇒ Object
- #ConfirmTime(*args) ⇒ Object
- #ConfirmTime=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
48554 48555 48556 48557 48558 48559 48560 48561 48562 48563 48564 48565 48566 48567 |
# File 'ext/ctp/ctp.cxx', line 48554
SWIGINTERN VALUE
_wrap_new_CThostFtdcSettlementInfoConfirmField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcSettlementInfoConfirmField";
CThostFtdcSettlementInfoConfirmField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcSettlementInfoConfirmField *)new CThostFtdcSettlementInfoConfirmField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
48329 48330 48331 48332 48333 48334 48335 48336 48337 48338 48339 48340 48341 48342 48343 48344 48345 48346 48347 48348 48349 48350 48351 48352 48353 48354 48355 48356 |
# File 'ext/ctp/ctp.cxx', line 48329
SWIGINTERN VALUE
_wrap_CThostFtdcSettlementInfoConfirmField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(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
48299 48300 48301 48302 48303 48304 48305 48306 48307 48308 48309 48310 48311 48312 48313 48314 48315 48316 48317 48318 48319 48320 48321 48322 48323 48324 48325 48326 |
# File 'ext/ctp/ctp.cxx', line 48299
SWIGINTERN VALUE
_wrap_CThostFtdcSettlementInfoConfirmField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(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;
}
|
#ConfirmDate(*args) ⇒ Object
48449 48450 48451 48452 48453 48454 48455 48456 48457 48458 48459 48460 48461 48462 48463 48464 48465 48466 48467 48468 48469 48470 48471 48472 48473 48474 48475 48476 |
# File 'ext/ctp/ctp.cxx', line 48449
SWIGINTERN VALUE
_wrap_CThostFtdcSettlementInfoConfirmField_ConfirmDate_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","ConfirmDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1);
result = (char *) ((arg1)->ConfirmDate);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ConfirmDate=(*args) ⇒ Object
48419 48420 48421 48422 48423 48424 48425 48426 48427 48428 48429 48430 48431 48432 48433 48434 48435 48436 48437 48438 48439 48440 48441 48442 48443 48444 48445 48446 |
# File 'ext/ctp/ctp.cxx', line 48419
SWIGINTERN VALUE
_wrap_CThostFtdcSettlementInfoConfirmField_ConfirmDate_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","ConfirmDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConfirmDate", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ConfirmDate,arg2,9*sizeof(char));
else memset(arg1->ConfirmDate,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ConfirmTime(*args) ⇒ Object
48509 48510 48511 48512 48513 48514 48515 48516 48517 48518 48519 48520 48521 48522 48523 48524 48525 48526 48527 48528 48529 48530 48531 48532 48533 48534 48535 48536 |
# File 'ext/ctp/ctp.cxx', line 48509
SWIGINTERN VALUE
_wrap_CThostFtdcSettlementInfoConfirmField_ConfirmTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","ConfirmTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1);
result = (char *) ((arg1)->ConfirmTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ConfirmTime=(*args) ⇒ Object
48479 48480 48481 48482 48483 48484 48485 48486 48487 48488 48489 48490 48491 48492 48493 48494 48495 48496 48497 48498 48499 48500 48501 48502 48503 48504 48505 48506 |
# File 'ext/ctp/ctp.cxx', line 48479
SWIGINTERN VALUE
_wrap_CThostFtdcSettlementInfoConfirmField_ConfirmTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","ConfirmTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ConfirmTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ConfirmTime,arg2,9*sizeof(char));
else memset(arg1->ConfirmTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorID(*args) ⇒ Object
48389 48390 48391 48392 48393 48394 48395 48396 48397 48398 48399 48400 48401 48402 48403 48404 48405 48406 48407 48408 48409 48410 48411 48412 48413 48414 48415 48416 |
# File 'ext/ctp/ctp.cxx', line 48389
SWIGINTERN VALUE
_wrap_CThostFtdcSettlementInfoConfirmField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(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
48359 48360 48361 48362 48363 48364 48365 48366 48367 48368 48369 48370 48371 48372 48373 48374 48375 48376 48377 48378 48379 48380 48381 48382 48383 48384 48385 48386 |
# File 'ext/ctp/ctp.cxx', line 48359
SWIGINTERN VALUE
_wrap_CThostFtdcSettlementInfoConfirmField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSettlementInfoConfirmField *arg1 = (CThostFtdcSettlementInfoConfirmField *) 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_CThostFtdcSettlementInfoConfirmField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(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;
}
|