Class: Ctp::CThostFtdcQrySuperUserFunctionField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQrySuperUserFunctionField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
60268 60269 60270 60271 60272 60273 60274 60275 60276 60277 60278 60279 60280 60281 |
# File 'ext/ctp/ctp.cxx', line 60268
SWIGINTERN VALUE
_wrap_new_CThostFtdcQrySuperUserFunctionField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQrySuperUserFunctionField";
CThostFtdcQrySuperUserFunctionField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQrySuperUserFunctionField *)new CThostFtdcQrySuperUserFunctionField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#UserID(*args) ⇒ Object
60223 60224 60225 60226 60227 60228 60229 60230 60231 60232 60233 60234 60235 60236 60237 60238 60239 60240 60241 60242 60243 60244 60245 60246 60247 60248 60249 60250 |
# File 'ext/ctp/ctp.cxx', line 60223
SWIGINTERN VALUE
_wrap_CThostFtdcQrySuperUserFunctionField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQrySuperUserFunctionField *arg1 = (CThostFtdcQrySuperUserFunctionField *) 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_CThostFtdcQrySuperUserFunctionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySuperUserFunctionField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQrySuperUserFunctionField * >(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
60193 60194 60195 60196 60197 60198 60199 60200 60201 60202 60203 60204 60205 60206 60207 60208 60209 60210 60211 60212 60213 60214 60215 60216 60217 60218 60219 60220 |
# File 'ext/ctp/ctp.cxx', line 60193
SWIGINTERN VALUE
_wrap_CThostFtdcQrySuperUserFunctionField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQrySuperUserFunctionField *arg1 = (CThostFtdcQrySuperUserFunctionField *) 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_CThostFtdcQrySuperUserFunctionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQrySuperUserFunctionField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQrySuperUserFunctionField * >(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;
}
|