Class: Ctp::CThostFtdcQryNoticeField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryNoticeField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
107035 107036 107037 107038 107039 107040 107041 107042 107043 107044 107045 107046 107047 107048 |
# File 'ext/ctp/ctp.cxx', line 107035
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryNoticeField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryNoticeField";
CThostFtdcQryNoticeField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryNoticeField *)new CThostFtdcQryNoticeField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
106990 106991 106992 106993 106994 106995 106996 106997 106998 106999 107000 107001 107002 107003 107004 107005 107006 107007 107008 107009 107010 107011 107012 107013 107014 107015 107016 107017 |
# File 'ext/ctp/ctp.cxx', line 106990
SWIGINTERN VALUE
_wrap_CThostFtdcQryNoticeField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryNoticeField *arg1 = (CThostFtdcQryNoticeField *) 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_CThostFtdcQryNoticeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryNoticeField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryNoticeField * >(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
106960 106961 106962 106963 106964 106965 106966 106967 106968 106969 106970 106971 106972 106973 106974 106975 106976 106977 106978 106979 106980 106981 106982 106983 106984 106985 106986 106987 |
# File 'ext/ctp/ctp.cxx', line 106960
SWIGINTERN VALUE
_wrap_CThostFtdcQryNoticeField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryNoticeField *arg1 = (CThostFtdcQryNoticeField *) 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_CThostFtdcQryNoticeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryNoticeField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryNoticeField * >(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;
}
|