Class: Ctp::CThostFtdcInputExecOrderField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcInputExecOrderField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ActionType(*args) ⇒ Object
- #ActionType=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #BusinessUnit(*args) ⇒ Object
- #BusinessUnit=(*args) ⇒ Object
- #CloseFlag(*args) ⇒ Object
- #CloseFlag=(*args) ⇒ Object
- #ExecOrderRef(*args) ⇒ Object
- #ExecOrderRef=(*args) ⇒ Object
- #HedgeFlag(*args) ⇒ Object
- #HedgeFlag=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #OffsetFlag(*args) ⇒ Object
- #OffsetFlag=(*args) ⇒ Object
- #PosiDirection(*args) ⇒ Object
- #PosiDirection=(*args) ⇒ Object
- #RequestID(*args) ⇒ Object
- #RequestID=(*args) ⇒ Object
- #ReservePositionFlag(*args) ⇒ Object
- #ReservePositionFlag=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
- #Volume(*args) ⇒ Object
- #Volume=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
68637 68638 68639 68640 68641 68642 68643 68644 68645 68646 68647 68648 68649 68650 |
# File 'ext/ctp/ctp.cxx', line 68637
SWIGINTERN VALUE
_wrap_new_CThostFtdcInputExecOrderField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcInputExecOrderField";
CThostFtdcInputExecOrderField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcInputExecOrderField *)new CThostFtdcInputExecOrderField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#ActionType(*args) ⇒ Object
68439 68440 68441 68442 68443 68444 68445 68446 68447 68448 68449 68450 68451 68452 68453 68454 68455 68456 68457 68458 68459 68460 |
# File 'ext/ctp/ctp.cxx', line 68439
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_ActionType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcActionTypeType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ActionType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
result = (TThostFtdcActionTypeType) ((arg1)->ActionType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#ActionType=(*args) ⇒ Object
68410 68411 68412 68413 68414 68415 68416 68417 68418 68419 68420 68421 68422 68423 68424 68425 68426 68427 68428 68429 68430 68431 68432 68433 68434 68435 68436 |
# File 'ext/ctp/ctp.cxx', line 68410
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_ActionType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
TThostFtdcActionTypeType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ActionType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcActionTypeType","ActionType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcActionTypeType >(val2);
if (arg1) (arg1)->ActionType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BrokerID(*args) ⇒ Object
67868 67869 67870 67871 67872 67873 67874 67875 67876 67877 67878 67879 67880 67881 67882 67883 67884 67885 67886 67887 67888 67889 67890 67891 67892 67893 67894 67895 |
# File 'ext/ctp/ctp.cxx', line 67868
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(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
67838 67839 67840 67841 67842 67843 67844 67845 67846 67847 67848 67849 67850 67851 67852 67853 67854 67855 67856 67857 67858 67859 67860 67861 67862 67863 67864 67865 |
# File 'ext/ctp/ctp.cxx', line 67838
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(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;
}
|
#BusinessUnit(*args) ⇒ Object
68274 68275 68276 68277 68278 68279 68280 68281 68282 68283 68284 68285 68286 68287 68288 68289 68290 68291 68292 68293 68294 68295 68296 68297 68298 68299 68300 68301 |
# File 'ext/ctp/ctp.cxx', line 68274
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","BusinessUnit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
result = (char *) ((arg1)->BusinessUnit);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BusinessUnit=(*args) ⇒ Object
68244 68245 68246 68247 68248 68249 68250 68251 68252 68253 68254 68255 68256 68257 68258 68259 68260 68261 68262 68263 68264 68265 68266 68267 68268 68269 68270 68271 |
# File 'ext/ctp/ctp.cxx', line 68244
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[21] ;
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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","BusinessUnit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char));
else memset(arg1->BusinessUnit,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CloseFlag(*args) ⇒ Object
68598 68599 68600 68601 68602 68603 68604 68605 68606 68607 68608 68609 68610 68611 68612 68613 68614 68615 68616 68617 68618 68619 |
# File 'ext/ctp/ctp.cxx', line 68598
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_CloseFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcExecOrderCloseFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","CloseFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
result = (TThostFtdcExecOrderCloseFlagType) ((arg1)->CloseFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#CloseFlag=(*args) ⇒ Object
68569 68570 68571 68572 68573 68574 68575 68576 68577 68578 68579 68580 68581 68582 68583 68584 68585 68586 68587 68588 68589 68590 68591 68592 68593 68594 68595 |
# File 'ext/ctp/ctp.cxx', line 68569
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_CloseFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
TThostFtdcExecOrderCloseFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","CloseFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderCloseFlagType","CloseFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcExecOrderCloseFlagType >(val2);
if (arg1) (arg1)->CloseFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ExecOrderRef(*args) ⇒ Object
68048 68049 68050 68051 68052 68053 68054 68055 68056 68057 68058 68059 68060 68061 68062 68063 68064 68065 68066 68067 68068 68069 68070 68071 68072 68073 68074 68075 |
# File 'ext/ctp/ctp.cxx', line 68048
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_ExecOrderRef_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ExecOrderRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
result = (char *) ((arg1)->ExecOrderRef);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ExecOrderRef=(*args) ⇒ Object
68018 68019 68020 68021 68022 68023 68024 68025 68026 68027 68028 68029 68030 68031 68032 68033 68034 68035 68036 68037 68038 68039 68040 68041 68042 68043 68044 68045 |
# File 'ext/ctp/ctp.cxx', line 68018
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_ExecOrderRef_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ExecOrderRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","ExecOrderRef", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ExecOrderRef,arg2,13*sizeof(char));
else memset(arg1->ExecOrderRef,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#HedgeFlag(*args) ⇒ Object
68386 68387 68388 68389 68390 68391 68392 68393 68394 68395 68396 68397 68398 68399 68400 68401 68402 68403 68404 68405 68406 68407 |
# File 'ext/ctp/ctp.cxx', line 68386
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcHedgeFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","HedgeFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#HedgeFlag=(*args) ⇒ Object
68357 68358 68359 68360 68361 68362 68363 68364 68365 68366 68367 68368 68369 68370 68371 68372 68373 68374 68375 68376 68377 68378 68379 68380 68381 68382 68383 |
# File 'ext/ctp/ctp.cxx', line 68357
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
TThostFtdcHedgeFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","HedgeFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcHedgeFlagType >(val2);
if (arg1) (arg1)->HedgeFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
67988 67989 67990 67991 67992 67993 67994 67995 67996 67997 67998 67999 68000 68001 68002 68003 68004 68005 68006 68007 68008 68009 68010 68011 68012 68013 68014 68015 |
# File 'ext/ctp/ctp.cxx', line 67988
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(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
67958 67959 67960 67961 67962 67963 67964 67965 67966 67967 67968 67969 67970 67971 67972 67973 67974 67975 67976 67977 67978 67979 67980 67981 67982 67983 67984 67985 |
# File 'ext/ctp/ctp.cxx', line 67958
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(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;
}
|
#InvestorID(*args) ⇒ Object
67928 67929 67930 67931 67932 67933 67934 67935 67936 67937 67938 67939 67940 67941 67942 67943 67944 67945 67946 67947 67948 67949 67950 67951 67952 67953 67954 67955 |
# File 'ext/ctp/ctp.cxx', line 67928
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(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
67898 67899 67900 67901 67902 67903 67904 67905 67906 67907 67908 67909 67910 67911 67912 67913 67914 67915 67916 67917 67918 67919 67920 67921 67922 67923 67924 67925 |
# File 'ext/ctp/ctp.cxx', line 67898
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(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;
}
|
#OffsetFlag(*args) ⇒ Object
68333 68334 68335 68336 68337 68338 68339 68340 68341 68342 68343 68344 68345 68346 68347 68348 68349 68350 68351 68352 68353 68354 |
# File 'ext/ctp/ctp.cxx', line 68333
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcOffsetFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","OffsetFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#OffsetFlag=(*args) ⇒ Object
68304 68305 68306 68307 68308 68309 68310 68311 68312 68313 68314 68315 68316 68317 68318 68319 68320 68321 68322 68323 68324 68325 68326 68327 68328 68329 68330 |
# File 'ext/ctp/ctp.cxx', line 68304
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
TThostFtdcOffsetFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","OffsetFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcOffsetFlagType >(val2);
if (arg1) (arg1)->OffsetFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#PosiDirection(*args) ⇒ Object
68492 68493 68494 68495 68496 68497 68498 68499 68500 68501 68502 68503 68504 68505 68506 68507 68508 68509 68510 68511 68512 68513 |
# File 'ext/ctp/ctp.cxx', line 68492
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_PosiDirection_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPosiDirectionType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","PosiDirection", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
result = (TThostFtdcPosiDirectionType) ((arg1)->PosiDirection);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#PosiDirection=(*args) ⇒ Object
68463 68464 68465 68466 68467 68468 68469 68470 68471 68472 68473 68474 68475 68476 68477 68478 68479 68480 68481 68482 68483 68484 68485 68486 68487 68488 68489 |
# File 'ext/ctp/ctp.cxx', line 68463
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_PosiDirection_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
TThostFtdcPosiDirectionType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","PosiDirection", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPosiDirectionType","PosiDirection", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPosiDirectionType >(val2);
if (arg1) (arg1)->PosiDirection = arg2;
return Qnil;
fail:
return Qnil;
}
|
#RequestID(*args) ⇒ Object
68220 68221 68222 68223 68224 68225 68226 68227 68228 68229 68230 68231 68232 68233 68234 68235 68236 68237 68238 68239 68240 68241 |
# File 'ext/ctp/ctp.cxx', line 68220
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_RequestID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRequestIDType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","RequestID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
result = (TThostFtdcRequestIDType) ((arg1)->RequestID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#RequestID=(*args) ⇒ Object
68191 68192 68193 68194 68195 68196 68197 68198 68199 68200 68201 68202 68203 68204 68205 68206 68207 68208 68209 68210 68211 68212 68213 68214 68215 68216 68217 |
# File 'ext/ctp/ctp.cxx', line 68191
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_RequestID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
TThostFtdcRequestIDType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","RequestID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRequestIDType >(val2);
if (arg1) (arg1)->RequestID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ReservePositionFlag(*args) ⇒ Object
68545 68546 68547 68548 68549 68550 68551 68552 68553 68554 68555 68556 68557 68558 68559 68560 68561 68562 68563 68564 68565 68566 |
# File 'ext/ctp/ctp.cxx', line 68545
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_ReservePositionFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcExecOrderPositionFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ReservePositionFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
result = (TThostFtdcExecOrderPositionFlagType) ((arg1)->ReservePositionFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#ReservePositionFlag=(*args) ⇒ Object
68516 68517 68518 68519 68520 68521 68522 68523 68524 68525 68526 68527 68528 68529 68530 68531 68532 68533 68534 68535 68536 68537 68538 68539 68540 68541 68542 |
# File 'ext/ctp/ctp.cxx', line 68516
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_ReservePositionFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
TThostFtdcExecOrderPositionFlagType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ReservePositionFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcExecOrderPositionFlagType","ReservePositionFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcExecOrderPositionFlagType >(val2);
if (arg1) (arg1)->ReservePositionFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
68108 68109 68110 68111 68112 68113 68114 68115 68116 68117 68118 68119 68120 68121 68122 68123 68124 68125 68126 68127 68128 68129 68130 68131 68132 68133 68134 68135 |
# File 'ext/ctp/ctp.cxx', line 68108
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(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
68078 68079 68080 68081 68082 68083 68084 68085 68086 68087 68088 68089 68090 68091 68092 68093 68094 68095 68096 68097 68098 68099 68100 68101 68102 68103 68104 68105 |
# File 'ext/ctp/ctp.cxx', line 68078
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(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;
}
|
#Volume(*args) ⇒ Object
68167 68168 68169 68170 68171 68172 68173 68174 68175 68176 68177 68178 68179 68180 68181 68182 68183 68184 68185 68186 68187 68188 |
# File 'ext/ctp/ctp.cxx', line 68167
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_Volume_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcVolumeType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","Volume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
result = (TThostFtdcVolumeType) ((arg1)->Volume);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#Volume=(*args) ⇒ Object
68138 68139 68140 68141 68142 68143 68144 68145 68146 68147 68148 68149 68150 68151 68152 68153 68154 68155 68156 68157 68158 68159 68160 68161 68162 68163 68164 |
# File 'ext/ctp/ctp.cxx', line 68138
SWIGINTERN VALUE
_wrap_CThostFtdcInputExecOrderField_Volume_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInputExecOrderField *arg1 = (CThostFtdcInputExecOrderField *) 0 ;
TThostFtdcVolumeType 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_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","Volume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcVolumeType >(val2);
if (arg1) (arg1)->Volume = arg2;
return Qnil;
fail:
return Qnil;
}
|