Class: Ctp::CThostFtdcCFMMCBrokerKeyField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcCFMMCBrokerKeyField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CreateDate(*args) ⇒ Object
- #CreateDate=(*args) ⇒ Object
- #CreateTime(*args) ⇒ Object
- #CreateTime=(*args) ⇒ Object
- #CurrentKey(*args) ⇒ Object
- #CurrentKey=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #KeyID(*args) ⇒ Object
- #KeyID=(*args) ⇒ Object
- #KeyKind(*args) ⇒ Object
- #KeyKind=(*args) ⇒ Object
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
129411 129412 129413 129414 129415 129416 129417 129418 129419 129420 129421 129422 129423 129424 |
# File 'ext/ctp/ctp.cxx', line 129411
SWIGINTERN VALUE
_wrap_new_CThostFtdcCFMMCBrokerKeyField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcCFMMCBrokerKeyField";
CThostFtdcCFMMCBrokerKeyField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcCFMMCBrokerKeyField *)new CThostFtdcCFMMCBrokerKeyField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
129020 129021 129022 129023 129024 129025 129026 129027 129028 129029 129030 129031 129032 129033 129034 129035 129036 129037 129038 129039 129040 129041 129042 129043 129044 129045 129046 129047 |
# File 'ext/ctp/ctp.cxx', line 129020
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(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
128990 128991 128992 128993 128994 128995 128996 128997 128998 128999 129000 129001 129002 129003 129004 129005 129006 129007 129008 129009 129010 129011 129012 129013 129014 129015 129016 129017 |
# File 'ext/ctp/ctp.cxx', line 128990
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(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;
}
|
#CreateDate(*args) ⇒ Object
129140 129141 129142 129143 129144 129145 129146 129147 129148 129149 129150 129151 129152 129153 129154 129155 129156 129157 129158 129159 129160 129161 129162 129163 129164 129165 129166 129167 |
# File 'ext/ctp/ctp.cxx', line 129140
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_CreateDate_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CreateDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1);
result = (char *) ((arg1)->CreateDate);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CreateDate=(*args) ⇒ Object
129110 129111 129112 129113 129114 129115 129116 129117 129118 129119 129120 129121 129122 129123 129124 129125 129126 129127 129128 129129 129130 129131 129132 129133 129134 129135 129136 129137 |
# File 'ext/ctp/ctp.cxx', line 129110
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_CreateDate_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CreateDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CreateDate", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CreateDate,arg2,9*sizeof(char));
else memset(arg1->CreateDate,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CreateTime(*args) ⇒ Object
129200 129201 129202 129203 129204 129205 129206 129207 129208 129209 129210 129211 129212 129213 129214 129215 129216 129217 129218 129219 129220 129221 129222 129223 129224 129225 129226 129227 |
# File 'ext/ctp/ctp.cxx', line 129200
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_CreateTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CreateTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1);
result = (char *) ((arg1)->CreateTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CreateTime=(*args) ⇒ Object
129170 129171 129172 129173 129174 129175 129176 129177 129178 129179 129180 129181 129182 129183 129184 129185 129186 129187 129188 129189 129190 129191 129192 129193 129194 129195 129196 129197 |
# File 'ext/ctp/ctp.cxx', line 129170
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_CreateTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CreateTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CreateTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CreateTime,arg2,9*sizeof(char));
else memset(arg1->CreateTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CurrentKey(*args) ⇒ Object
129313 129314 129315 129316 129317 129318 129319 129320 129321 129322 129323 129324 129325 129326 129327 129328 129329 129330 129331 129332 129333 129334 129335 129336 129337 129338 129339 129340 |
# File 'ext/ctp/ctp.cxx', line 129313
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_CurrentKey_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CurrentKey", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1);
result = (char *) ((arg1)->CurrentKey);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CurrentKey=(*args) ⇒ Object
129283 129284 129285 129286 129287 129288 129289 129290 129291 129292 129293 129294 129295 129296 129297 129298 129299 129300 129301 129302 129303 129304 129305 129306 129307 129308 129309 129310 |
# File 'ext/ctp/ctp.cxx', line 129283
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_CurrentKey_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[21] ;
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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","CurrentKey", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","CurrentKey", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CurrentKey,arg2,21*sizeof(char));
else memset(arg1->CurrentKey,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#KeyID(*args) ⇒ Object
129259 129260 129261 129262 129263 129264 129265 129266 129267 129268 129269 129270 129271 129272 129273 129274 129275 129276 129277 129278 129279 129280 |
# File 'ext/ctp/ctp.cxx', line 129259
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_KeyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","KeyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1);
result = (TThostFtdcSequenceNoType) ((arg1)->KeyID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#KeyID=(*args) ⇒ Object
129230 129231 129232 129233 129234 129235 129236 129237 129238 129239 129240 129241 129242 129243 129244 129245 129246 129247 129248 129249 129250 129251 129252 129253 129254 129255 129256 |
# File 'ext/ctp/ctp.cxx', line 129230
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_KeyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","KeyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","KeyID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSequenceNoType >(val2);
if (arg1) (arg1)->KeyID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#KeyKind(*args) ⇒ Object
129372 129373 129374 129375 129376 129377 129378 129379 129380 129381 129382 129383 129384 129385 129386 129387 129388 129389 129390 129391 129392 129393 |
# File 'ext/ctp/ctp.cxx', line 129372
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_KeyKind_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcCFMMCKeyKindType 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","KeyKind", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1);
result = (TThostFtdcCFMMCKeyKindType) ((arg1)->KeyKind);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#KeyKind=(*args) ⇒ Object
129343 129344 129345 129346 129347 129348 129349 129350 129351 129352 129353 129354 129355 129356 129357 129358 129359 129360 129361 129362 129363 129364 129365 129366 129367 129368 129369 |
# File 'ext/ctp/ctp.cxx', line 129343
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_KeyKind_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 0 ;
TThostFtdcCFMMCKeyKindType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","KeyKind", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCFMMCKeyKindType","KeyKind", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcCFMMCKeyKindType >(val2);
if (arg1) (arg1)->KeyKind = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ParticipantID(*args) ⇒ Object
129080 129081 129082 129083 129084 129085 129086 129087 129088 129089 129090 129091 129092 129093 129094 129095 129096 129097 129098 129099 129100 129101 129102 129103 129104 129105 129106 129107 |
# File 'ext/ctp/ctp.cxx', line 129080
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_ParticipantID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(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
129050 129051 129052 129053 129054 129055 129056 129057 129058 129059 129060 129061 129062 129063 129064 129065 129066 129067 129068 129069 129070 129071 129072 129073 129074 129075 129076 129077 |
# File 'ext/ctp/ctp.cxx', line 129050
SWIGINTERN VALUE
_wrap_CThostFtdcCFMMCBrokerKeyField_ParticipantID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCFMMCBrokerKeyField *arg1 = (CThostFtdcCFMMCBrokerKeyField *) 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_CThostFtdcCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCFMMCBrokerKeyField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCFMMCBrokerKeyField * >(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;
}
|