Class: Ctp::CThostFtdcSecAgentACIDMapField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcSecAgentACIDMapField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #AccountID(*args) ⇒ Object
- #AccountID=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #BrokerSecAgentID(*args) ⇒ Object
- #BrokerSecAgentID=(*args) ⇒ Object
- #CurrencyID(*args) ⇒ Object
- #CurrencyID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
189459 189460 189461 189462 189463 189464 189465 189466 189467 189468 189469 189470 189471 189472 |
# File 'ext/ctp/ctp.cxx', line 189459
SWIGINTERN VALUE
_wrap_new_CThostFtdcSecAgentACIDMapField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcSecAgentACIDMapField";
CThostFtdcSecAgentACIDMapField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcSecAgentACIDMapField *)new CThostFtdcSecAgentACIDMapField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#AccountID(*args) ⇒ Object
189294 189295 189296 189297 189298 189299 189300 189301 189302 189303 189304 189305 189306 189307 189308 189309 189310 189311 189312 189313 189314 189315 189316 189317 189318 189319 189320 189321 |
# File 'ext/ctp/ctp.cxx', line 189294
SWIGINTERN VALUE
_wrap_CThostFtdcSecAgentACIDMapField_AccountID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","AccountID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1);
result = (char *) ((arg1)->AccountID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#AccountID=(*args) ⇒ Object
189264 189265 189266 189267 189268 189269 189270 189271 189272 189273 189274 189275 189276 189277 189278 189279 189280 189281 189282 189283 189284 189285 189286 189287 189288 189289 189290 189291 |
# File 'ext/ctp/ctp.cxx', line 189264
SWIGINTERN VALUE
_wrap_CThostFtdcSecAgentACIDMapField_AccountID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[13] ;
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_CThostFtdcSecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","AccountID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char));
else memset(arg1->AccountID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BrokerID(*args) ⇒ Object
189174 189175 189176 189177 189178 189179 189180 189181 189182 189183 189184 189185 189186 189187 189188 189189 189190 189191 189192 189193 189194 189195 189196 189197 189198 189199 189200 189201 |
# File 'ext/ctp/ctp.cxx', line 189174
SWIGINTERN VALUE
_wrap_CThostFtdcSecAgentACIDMapField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(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
189144 189145 189146 189147 189148 189149 189150 189151 189152 189153 189154 189155 189156 189157 189158 189159 189160 189161 189162 189163 189164 189165 189166 189167 189168 189169 189170 189171 |
# File 'ext/ctp/ctp.cxx', line 189144
SWIGINTERN VALUE
_wrap_CThostFtdcSecAgentACIDMapField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(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;
}
|
#BrokerSecAgentID(*args) ⇒ Object
189414 189415 189416 189417 189418 189419 189420 189421 189422 189423 189424 189425 189426 189427 189428 189429 189430 189431 189432 189433 189434 189435 189436 189437 189438 189439 189440 189441 |
# File 'ext/ctp/ctp.cxx', line 189414
SWIGINTERN VALUE
_wrap_CThostFtdcSecAgentACIDMapField_BrokerSecAgentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","BrokerSecAgentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1);
result = (char *) ((arg1)->BrokerSecAgentID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BrokerSecAgentID=(*args) ⇒ Object
189384 189385 189386 189387 189388 189389 189390 189391 189392 189393 189394 189395 189396 189397 189398 189399 189400 189401 189402 189403 189404 189405 189406 189407 189408 189409 189410 189411 |
# File 'ext/ctp/ctp.cxx', line 189384
SWIGINTERN VALUE
_wrap_CThostFtdcSecAgentACIDMapField_BrokerSecAgentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[13] ;
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_CThostFtdcSecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","BrokerSecAgentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BrokerSecAgentID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BrokerSecAgentID,arg2,13*sizeof(char));
else memset(arg1->BrokerSecAgentID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CurrencyID(*args) ⇒ Object
189354 189355 189356 189357 189358 189359 189360 189361 189362 189363 189364 189365 189366 189367 189368 189369 189370 189371 189372 189373 189374 189375 189376 189377 189378 189379 189380 189381 |
# File 'ext/ctp/ctp.cxx', line 189354
SWIGINTERN VALUE
_wrap_CThostFtdcSecAgentACIDMapField_CurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1);
result = (char *) ((arg1)->CurrencyID);
{
size_t size = SWIG_strnlen(result, 4);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CurrencyID=(*args) ⇒ Object
189324 189325 189326 189327 189328 189329 189330 189331 189332 189333 189334 189335 189336 189337 189338 189339 189340 189341 189342 189343 189344 189345 189346 189347 189348 189349 189350 189351 |
# File 'ext/ctp/ctp.cxx', line 189324
SWIGINTERN VALUE
_wrap_CThostFtdcSecAgentACIDMapField_CurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[4] ;
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_CThostFtdcSecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char));
else memset(arg1->CurrencyID,0,4*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
189234 189235 189236 189237 189238 189239 189240 189241 189242 189243 189244 189245 189246 189247 189248 189249 189250 189251 189252 189253 189254 189255 189256 189257 189258 189259 189260 189261 |
# File 'ext/ctp/ctp.cxx', line 189234
SWIGINTERN VALUE
_wrap_CThostFtdcSecAgentACIDMapField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(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
189204 189205 189206 189207 189208 189209 189210 189211 189212 189213 189214 189215 189216 189217 189218 189219 189220 189221 189222 189223 189224 189225 189226 189227 189228 189229 189230 189231 |
# File 'ext/ctp/ctp.cxx', line 189204
SWIGINTERN VALUE
_wrap_CThostFtdcSecAgentACIDMapField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSecAgentACIDMapField *arg1 = (CThostFtdcSecAgentACIDMapField *) 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_CThostFtdcSecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSecAgentACIDMapField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSecAgentACIDMapField * >(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;
}
|