Class: Ctp::CThostFtdcQryDepthMarketDataField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryDepthMarketDataField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
62409 62410 62411 62412 62413 62414 62415 62416 62417 62418 62419 62420 62421 62422 |
# File 'ext/ctp/ctp.cxx', line 62409
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryDepthMarketDataField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryDepthMarketDataField";
CThostFtdcQryDepthMarketDataField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryDepthMarketDataField *)new CThostFtdcQryDepthMarketDataField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#InstrumentID(*args) ⇒ Object
62364 62365 62366 62367 62368 62369 62370 62371 62372 62373 62374 62375 62376 62377 62378 62379 62380 62381 62382 62383 62384 62385 62386 62387 62388 62389 62390 62391 |
# File 'ext/ctp/ctp.cxx', line 62364
SWIGINTERN VALUE
_wrap_CThostFtdcQryDepthMarketDataField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryDepthMarketDataField *arg1 = (CThostFtdcQryDepthMarketDataField *) 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_CThostFtdcQryDepthMarketDataField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryDepthMarketDataField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryDepthMarketDataField * >(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
62334 62335 62336 62337 62338 62339 62340 62341 62342 62343 62344 62345 62346 62347 62348 62349 62350 62351 62352 62353 62354 62355 62356 62357 62358 62359 62360 62361 |
# File 'ext/ctp/ctp.cxx', line 62334
SWIGINTERN VALUE
_wrap_CThostFtdcQryDepthMarketDataField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryDepthMarketDataField *arg1 = (CThostFtdcQryDepthMarketDataField *) 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_CThostFtdcQryDepthMarketDataField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryDepthMarketDataField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryDepthMarketDataField * >(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;
}
|