Class: Ctp::CThostFtdcPartBrokerField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcPartBrokerField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #IsActive(*args) ⇒ Object
- #IsActive=(*args) ⇒ Object
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 |
# File 'ext/ctp/ctp.cxx', line 16338
SWIGINTERN VALUE
_wrap_new_CThostFtdcPartBrokerField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcPartBrokerField";
CThostFtdcPartBrokerField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcPartBrokerField *)new CThostFtdcPartBrokerField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 |
# File 'ext/ctp/ctp.cxx', line 16120
SWIGINTERN VALUE
_wrap_CThostFtdcPartBrokerField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(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
16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 |
# File 'ext/ctp/ctp.cxx', line 16090
SWIGINTERN VALUE
_wrap_CThostFtdcPartBrokerField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(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;
}
|
#ExchangeID(*args) ⇒ Object
16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 |
# File 'ext/ctp/ctp.cxx', line 16180
SWIGINTERN VALUE
_wrap_CThostFtdcPartBrokerField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(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
16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 |
# File 'ext/ctp/ctp.cxx', line 16150
SWIGINTERN VALUE
_wrap_CThostFtdcPartBrokerField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(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;
}
|
#IsActive(*args) ⇒ Object
16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 |
# File 'ext/ctp/ctp.cxx', line 16299
SWIGINTERN VALUE
_wrap_CThostFtdcPartBrokerField_IsActive_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcBoolType result;
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_CThostFtdcPartBrokerField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(argp1);
result = (TThostFtdcBoolType) ((arg1)->IsActive);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#IsActive=(*args) ⇒ Object
16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 |
# File 'ext/ctp/ctp.cxx', line 16270
SWIGINTERN VALUE
_wrap_CThostFtdcPartBrokerField_IsActive_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 0 ;
TThostFtdcBoolType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
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_CThostFtdcPartBrokerField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBoolType >(val2);
if (arg1) (arg1)->IsActive = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ParticipantID(*args) ⇒ Object
16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 |
# File 'ext/ctp/ctp.cxx', line 16240
SWIGINTERN VALUE
_wrap_CThostFtdcPartBrokerField_ParticipantID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(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
16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 |
# File 'ext/ctp/ctp.cxx', line 16210
SWIGINTERN VALUE
_wrap_CThostFtdcPartBrokerField_ParticipantID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcPartBrokerField *arg1 = (CThostFtdcPartBrokerField *) 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_CThostFtdcPartBrokerField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcPartBrokerField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcPartBrokerField * >(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;
}
|