Class: Ctp::CThostFtdcQryTraderField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryTraderField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
- #TraderID(*args) ⇒ Object
- #TraderID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
60169 60170 60171 60172 60173 60174 60175 60176 60177 60178 60179 60180 60181 60182 |
# File 'ext/ctp/ctp.cxx', line 60169
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryTraderField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryTraderField";
CThostFtdcQryTraderField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryTraderField *)new CThostFtdcQryTraderField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#ExchangeID(*args) ⇒ Object
60004 60005 60006 60007 60008 60009 60010 60011 60012 60013 60014 60015 60016 60017 60018 60019 60020 60021 60022 60023 60024 60025 60026 60027 60028 60029 60030 60031 |
# File 'ext/ctp/ctp.cxx', line 60004
SWIGINTERN VALUE
_wrap_CThostFtdcQryTraderField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(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
59974 59975 59976 59977 59978 59979 59980 59981 59982 59983 59984 59985 59986 59987 59988 59989 59990 59991 59992 59993 59994 59995 59996 59997 59998 59999 60000 60001 |
# File 'ext/ctp/ctp.cxx', line 59974
SWIGINTERN VALUE
_wrap_CThostFtdcQryTraderField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(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;
}
|
#ParticipantID(*args) ⇒ Object
60064 60065 60066 60067 60068 60069 60070 60071 60072 60073 60074 60075 60076 60077 60078 60079 60080 60081 60082 60083 60084 60085 60086 60087 60088 60089 60090 60091 |
# File 'ext/ctp/ctp.cxx', line 60064
SWIGINTERN VALUE
_wrap_CThostFtdcQryTraderField_ParticipantID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(argp1);
result = (char *) ((arg1)->ParticipantID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ParticipantID=(*args) ⇒ Object
60034 60035 60036 60037 60038 60039 60040 60041 60042 60043 60044 60045 60046 60047 60048 60049 60050 60051 60052 60053 60054 60055 60056 60057 60058 60059 60060 60061 |
# File 'ext/ctp/ctp.cxx', line 60034
SWIGINTERN VALUE
_wrap_CThostFtdcQryTraderField_ParticipantID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ParticipantID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ParticipantID,arg2,11*sizeof(char));
else memset(arg1->ParticipantID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TraderID(*args) ⇒ Object
60124 60125 60126 60127 60128 60129 60130 60131 60132 60133 60134 60135 60136 60137 60138 60139 60140 60141 60142 60143 60144 60145 60146 60147 60148 60149 60150 60151 |
# File 'ext/ctp/ctp.cxx', line 60124
SWIGINTERN VALUE
_wrap_CThostFtdcQryTraderField_TraderID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","TraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(argp1);
result = (char *) ((arg1)->TraderID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TraderID=(*args) ⇒ Object
60094 60095 60096 60097 60098 60099 60100 60101 60102 60103 60104 60105 60106 60107 60108 60109 60110 60111 60112 60113 60114 60115 60116 60117 60118 60119 60120 60121 |
# File 'ext/ctp/ctp.cxx', line 60094
SWIGINTERN VALUE
_wrap_CThostFtdcQryTraderField_TraderID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryTraderField *arg1 = (CThostFtdcQryTraderField *) 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_CThostFtdcQryTraderField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryTraderField *","TraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryTraderField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TraderID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TraderID,arg2,21*sizeof(char));
else memset(arg1->TraderID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|