Class: Ctp::CThostFtdcQryInstrumentField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryInstrumentField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #ExchangeInstID(*args) ⇒ Object
- #ExchangeInstID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #ProductID(*args) ⇒ Object
- #ProductID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
62310 62311 62312 62313 62314 62315 62316 62317 62318 62319 62320 62321 62322 62323 |
# File 'ext/ctp/ctp.cxx', line 62310
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryInstrumentField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInstrumentField";
CThostFtdcQryInstrumentField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryInstrumentField *)new CThostFtdcQryInstrumentField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#ExchangeID(*args) ⇒ Object
62145 62146 62147 62148 62149 62150 62151 62152 62153 62154 62155 62156 62157 62158 62159 62160 62161 62162 62163 62164 62165 62166 62167 62168 62169 62170 62171 62172 |
# File 'ext/ctp/ctp.cxx', line 62145
SWIGINTERN VALUE
_wrap_CThostFtdcQryInstrumentField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(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
62115 62116 62117 62118 62119 62120 62121 62122 62123 62124 62125 62126 62127 62128 62129 62130 62131 62132 62133 62134 62135 62136 62137 62138 62139 62140 62141 62142 |
# File 'ext/ctp/ctp.cxx', line 62115
SWIGINTERN VALUE
_wrap_CThostFtdcQryInstrumentField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(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;
}
|
#ExchangeInstID(*args) ⇒ Object
62205 62206 62207 62208 62209 62210 62211 62212 62213 62214 62215 62216 62217 62218 62219 62220 62221 62222 62223 62224 62225 62226 62227 62228 62229 62230 62231 62232 |
# File 'ext/ctp/ctp.cxx', line 62205
SWIGINTERN VALUE
_wrap_CThostFtdcQryInstrumentField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ExchangeInstID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp1);
result = (char *) ((arg1)->ExchangeInstID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ExchangeInstID=(*args) ⇒ Object
62175 62176 62177 62178 62179 62180 62181 62182 62183 62184 62185 62186 62187 62188 62189 62190 62191 62192 62193 62194 62195 62196 62197 62198 62199 62200 62201 62202 |
# File 'ext/ctp/ctp.cxx', line 62175
SWIGINTERN VALUE
_wrap_CThostFtdcQryInstrumentField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ExchangeInstID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ExchangeInstID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ExchangeInstID,arg2,31*sizeof(char));
else memset(arg1->ExchangeInstID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
62085 62086 62087 62088 62089 62090 62091 62092 62093 62094 62095 62096 62097 62098 62099 62100 62101 62102 62103 62104 62105 62106 62107 62108 62109 62110 62111 62112 |
# File 'ext/ctp/ctp.cxx', line 62085
SWIGINTERN VALUE
_wrap_CThostFtdcQryInstrumentField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(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
62055 62056 62057 62058 62059 62060 62061 62062 62063 62064 62065 62066 62067 62068 62069 62070 62071 62072 62073 62074 62075 62076 62077 62078 62079 62080 62081 62082 |
# File 'ext/ctp/ctp.cxx', line 62055
SWIGINTERN VALUE
_wrap_CThostFtdcQryInstrumentField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(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;
}
|
#ProductID(*args) ⇒ Object
62265 62266 62267 62268 62269 62270 62271 62272 62273 62274 62275 62276 62277 62278 62279 62280 62281 62282 62283 62284 62285 62286 62287 62288 62289 62290 62291 62292 |
# File 'ext/ctp/ctp.cxx', line 62265
SWIGINTERN VALUE
_wrap_CThostFtdcQryInstrumentField_ProductID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ProductID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp1);
result = (char *) ((arg1)->ProductID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ProductID=(*args) ⇒ Object
62235 62236 62237 62238 62239 62240 62241 62242 62243 62244 62245 62246 62247 62248 62249 62250 62251 62252 62253 62254 62255 62256 62257 62258 62259 62260 62261 62262 |
# File 'ext/ctp/ctp.cxx', line 62235
SWIGINTERN VALUE
_wrap_CThostFtdcQryInstrumentField_ProductID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryInstrumentField *arg1 = (CThostFtdcQryInstrumentField *) 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_CThostFtdcQryInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ProductID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ProductID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ProductID,arg2,31*sizeof(char));
else memset(arg1->ProductID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|