Class: Ctp::CThostFtdcTradingNoticeInfoField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcTradingNoticeInfoField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #FieldContent(*args) ⇒ Object
- #FieldContent=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #SendTime(*args) ⇒ Object
- #SendTime=(*args) ⇒ Object
- #SequenceNo(*args) ⇒ Object
- #SequenceNo=(*args) ⇒ Object
- #SequenceSeries(*args) ⇒ Object
- #SequenceSeries=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
118543 118544 118545 118546 118547 118548 118549 118550 118551 118552 118553 118554 118555 118556 |
# File 'ext/ctp/ctp.cxx', line 118543
SWIGINTERN VALUE
_wrap_new_CThostFtdcTradingNoticeInfoField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingNoticeInfoField";
CThostFtdcTradingNoticeInfoField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcTradingNoticeInfoField *)new CThostFtdcTradingNoticeInfoField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
118212 118213 118214 118215 118216 118217 118218 118219 118220 118221 118222 118223 118224 118225 118226 118227 118228 118229 118230 118231 118232 118233 118234 118235 118236 118237 118238 118239 |
# File 'ext/ctp/ctp.cxx', line 118212
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(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
118182 118183 118184 118185 118186 118187 118188 118189 118190 118191 118192 118193 118194 118195 118196 118197 118198 118199 118200 118201 118202 118203 118204 118205 118206 118207 118208 118209 |
# File 'ext/ctp/ctp.cxx', line 118182
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(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;
}
|
#FieldContent(*args) ⇒ Object
118392 118393 118394 118395 118396 118397 118398 118399 118400 118401 118402 118403 118404 118405 118406 118407 118408 118409 118410 118411 118412 118413 118414 118415 118416 118417 118418 118419 |
# File 'ext/ctp/ctp.cxx', line 118392
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_FieldContent_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","FieldContent", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1);
result = (char *) ((arg1)->FieldContent);
{
size_t size = SWIG_strnlen(result, 501);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#FieldContent=(*args) ⇒ Object
118362 118363 118364 118365 118366 118367 118368 118369 118370 118371 118372 118373 118374 118375 118376 118377 118378 118379 118380 118381 118382 118383 118384 118385 118386 118387 118388 118389 |
# File 'ext/ctp/ctp.cxx', line 118362
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_FieldContent_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[501] ;
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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","FieldContent", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 501);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [501]","FieldContent", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->FieldContent,arg2,501*sizeof(char));
else memset(arg1->FieldContent,0,501*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorID(*args) ⇒ Object
118272 118273 118274 118275 118276 118277 118278 118279 118280 118281 118282 118283 118284 118285 118286 118287 118288 118289 118290 118291 118292 118293 118294 118295 118296 118297 118298 118299 |
# File 'ext/ctp/ctp.cxx', line 118272
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(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
118242 118243 118244 118245 118246 118247 118248 118249 118250 118251 118252 118253 118254 118255 118256 118257 118258 118259 118260 118261 118262 118263 118264 118265 118266 118267 118268 118269 |
# File 'ext/ctp/ctp.cxx', line 118242
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(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;
}
|
#SendTime(*args) ⇒ Object
118332 118333 118334 118335 118336 118337 118338 118339 118340 118341 118342 118343 118344 118345 118346 118347 118348 118349 118350 118351 118352 118353 118354 118355 118356 118357 118358 118359 |
# File 'ext/ctp/ctp.cxx', line 118332
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_SendTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SendTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1);
result = (char *) ((arg1)->SendTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#SendTime=(*args) ⇒ Object
118302 118303 118304 118305 118306 118307 118308 118309 118310 118311 118312 118313 118314 118315 118316 118317 118318 118319 118320 118321 118322 118323 118324 118325 118326 118327 118328 118329 |
# File 'ext/ctp/ctp.cxx', line 118302
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_SendTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SendTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SendTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->SendTime,arg2,9*sizeof(char));
else memset(arg1->SendTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#SequenceNo(*args) ⇒ Object
118504 118505 118506 118507 118508 118509 118510 118511 118512 118513 118514 118515 118516 118517 118518 118519 118520 118521 118522 118523 118524 118525 |
# File 'ext/ctp/ctp.cxx', line 118504
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_SequenceNo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SequenceNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1);
result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SequenceNo=(*args) ⇒ Object
118475 118476 118477 118478 118479 118480 118481 118482 118483 118484 118485 118486 118487 118488 118489 118490 118491 118492 118493 118494 118495 118496 118497 118498 118499 118500 118501 |
# File 'ext/ctp/ctp.cxx', line 118475
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_SequenceNo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SequenceNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSequenceNoType >(val2);
if (arg1) (arg1)->SequenceNo = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SequenceSeries(*args) ⇒ Object
118451 118452 118453 118454 118455 118456 118457 118458 118459 118460 118461 118462 118463 118464 118465 118466 118467 118468 118469 118470 118471 118472 |
# File 'ext/ctp/ctp.cxx', line 118451
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_SequenceSeries_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSequenceSeriesType 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SequenceSeries", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1);
result = (TThostFtdcSequenceSeriesType) ((arg1)->SequenceSeries);
vresult = SWIG_From_short(static_cast< short >(result));
return vresult;
fail:
return Qnil;
}
|
#SequenceSeries=(*args) ⇒ Object
118422 118423 118424 118425 118426 118427 118428 118429 118430 118431 118432 118433 118434 118435 118436 118437 118438 118439 118440 118441 118442 118443 118444 118445 118446 118447 118448 |
# File 'ext/ctp/ctp.cxx', line 118422
SWIGINTERN VALUE
_wrap_CThostFtdcTradingNoticeInfoField_SequenceSeries_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingNoticeInfoField *arg1 = (CThostFtdcTradingNoticeInfoField *) 0 ;
TThostFtdcSequenceSeriesType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
short 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_CThostFtdcTradingNoticeInfoField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingNoticeInfoField *","SequenceSeries", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingNoticeInfoField * >(argp1);
ecode2 = SWIG_AsVal_short(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceSeriesType","SequenceSeries", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSequenceSeriesType >(val2);
if (arg1) (arg1)->SequenceSeries = arg2;
return Qnil;
fail:
return Qnil;
}
|