Class: Ctp::CThostFtdcReqSyncKeyField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcReqSyncKeyField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BankBranchID(*args) ⇒ Object
- #BankBranchID=(*args) ⇒ Object
- #BankID(*args) ⇒ Object
- #BankID=(*args) ⇒ Object
- #BankSerial(*args) ⇒ Object
- #BankSerial=(*args) ⇒ Object
- #BrokerBranchID(*args) ⇒ Object
- #BrokerBranchID=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #BrokerIDByBank(*args) ⇒ Object
- #BrokerIDByBank=(*args) ⇒ Object
- #DeviceID(*args) ⇒ Object
- #DeviceID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstallID(*args) ⇒ Object
- #InstallID=(*args) ⇒ Object
- #LastFragment(*args) ⇒ Object
- #LastFragment=(*args) ⇒ Object
- #Message(*args) ⇒ Object
- #Message=(*args) ⇒ Object
- #OperNo(*args) ⇒ Object
- #OperNo=(*args) ⇒ Object
- #PlateSerial(*args) ⇒ Object
- #PlateSerial=(*args) ⇒ Object
- #RequestID(*args) ⇒ Object
- #RequestID=(*args) ⇒ Object
- #SessionID(*args) ⇒ Object
- #SessionID=(*args) ⇒ Object
- #TID(*args) ⇒ Object
- #TID=(*args) ⇒ Object
- #TradeCode(*args) ⇒ Object
- #TradeCode=(*args) ⇒ Object
- #TradeDate(*args) ⇒ Object
- #TradeDate=(*args) ⇒ Object
- #TradeTime(*args) ⇒ Object
- #TradeTime=(*args) ⇒ Object
- #TradingDay(*args) ⇒ Object
- #TradingDay=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
170201 170202 170203 170204 170205 170206 170207 170208 170209 170210 170211 170212 170213 170214 |
# File 'ext/ctp/ctp.cxx', line 170201
SWIGINTERN VALUE
_wrap_new_CThostFtdcReqSyncKeyField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcReqSyncKeyField";
CThostFtdcReqSyncKeyField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcReqSyncKeyField *)new CThostFtdcReqSyncKeyField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BankBranchID(*args) ⇒ Object
169178 169179 169180 169181 169182 169183 169184 169185 169186 169187 169188 169189 169190 169191 169192 169193 169194 169195 169196 169197 169198 169199 169200 169201 169202 169203 169204 169205 |
# File 'ext/ctp/ctp.cxx', line 169178
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BankBranchID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankBranchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->BankBranchID);
{
size_t size = SWIG_strnlen(result, 5);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankBranchID=(*args) ⇒ Object
169148 169149 169150 169151 169152 169153 169154 169155 169156 169157 169158 169159 169160 169161 169162 169163 169164 169165 169166 169167 169168 169169 169170 169171 169172 169173 169174 169175 |
# File 'ext/ctp/ctp.cxx', line 169148
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BankBranchID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[5] ;
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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankBranchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 5);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [5]","BankBranchID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankBranchID,arg2,5*sizeof(char));
else memset(arg1->BankBranchID,0,5*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankID(*args) ⇒ Object
169118 169119 169120 169121 169122 169123 169124 169125 169126 169127 169128 169129 169130 169131 169132 169133 169134 169135 169136 169137 169138 169139 169140 169141 169142 169143 169144 169145 |
# File 'ext/ctp/ctp.cxx', line 169118
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BankID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->BankID);
{
size_t size = SWIG_strnlen(result, 4);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankID=(*args) ⇒ Object
169088 169089 169090 169091 169092 169093 169094 169095 169096 169097 169098 169099 169100 169101 169102 169103 169104 169105 169106 169107 169108 169109 169110 169111 169112 169113 169114 169115 |
# File 'ext/ctp/ctp.cxx', line 169088
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BankID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","BankID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankID,arg2,4*sizeof(char));
else memset(arg1->BankID,0,4*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BankSerial(*args) ⇒ Object
169478 169479 169480 169481 169482 169483 169484 169485 169486 169487 169488 169489 169490 169491 169492 169493 169494 169495 169496 169497 169498 169499 169500 169501 169502 169503 169504 169505 |
# File 'ext/ctp/ctp.cxx', line 169478
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BankSerial_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->BankSerial);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BankSerial=(*args) ⇒ Object
169448 169449 169450 169451 169452 169453 169454 169455 169456 169457 169458 169459 169460 169461 169462 169463 169464 169465 169466 169467 169468 169469 169470 169471 169472 169473 169474 169475 |
# File 'ext/ctp/ctp.cxx', line 169448
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BankSerial_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BankSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","BankSerial", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BankSerial,arg2,13*sizeof(char));
else memset(arg1->BankSerial,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BrokerBranchID(*args) ⇒ Object
169298 169299 169300 169301 169302 169303 169304 169305 169306 169307 169308 169309 169310 169311 169312 169313 169314 169315 169316 169317 169318 169319 169320 169321 169322 169323 169324 169325 |
# File 'ext/ctp/ctp.cxx', line 169298
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BrokerBranchID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerBranchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->BrokerBranchID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BrokerBranchID=(*args) ⇒ Object
169268 169269 169270 169271 169272 169273 169274 169275 169276 169277 169278 169279 169280 169281 169282 169283 169284 169285 169286 169287 169288 169289 169290 169291 169292 169293 169294 169295 |
# File 'ext/ctp/ctp.cxx', line 169268
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BrokerBranchID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[31] ;
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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerBranchID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","BrokerBranchID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BrokerBranchID,arg2,31*sizeof(char));
else memset(arg1->BrokerBranchID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#BrokerID(*args) ⇒ Object
169238 169239 169240 169241 169242 169243 169244 169245 169246 169247 169248 169249 169250 169251 169252 169253 169254 169255 169256 169257 169258 169259 169260 169261 169262 169263 169264 169265 |
# File 'ext/ctp/ctp.cxx', line 169238
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(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
169208 169209 169210 169211 169212 169213 169214 169215 169216 169217 169218 169219 169220 169221 169222 169223 169224 169225 169226 169227 169228 169229 169230 169231 169232 169233 169234 169235 |
# File 'ext/ctp/ctp.cxx', line 169208
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(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;
}
|
#BrokerIDByBank(*args) ⇒ Object
169990 169991 169992 169993 169994 169995 169996 169997 169998 169999 170000 170001 170002 170003 170004 170005 170006 170007 170008 170009 170010 170011 170012 170013 170014 170015 170016 170017 |
# File 'ext/ctp/ctp.cxx', line 169990
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BrokerIDByBank_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerIDByBank", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->BrokerIDByBank);
{
size_t size = SWIG_strnlen(result, 33);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BrokerIDByBank=(*args) ⇒ Object
169960 169961 169962 169963 169964 169965 169966 169967 169968 169969 169970 169971 169972 169973 169974 169975 169976 169977 169978 169979 169980 169981 169982 169983 169984 169985 169986 169987 |
# File 'ext/ctp/ctp.cxx', line 169960
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_BrokerIDByBank_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[33] ;
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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","BrokerIDByBank", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 33);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [33]","BrokerIDByBank", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BrokerIDByBank,arg2,33*sizeof(char));
else memset(arg1->BrokerIDByBank,0,33*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#DeviceID(*args) ⇒ Object
169930 169931 169932 169933 169934 169935 169936 169937 169938 169939 169940 169941 169942 169943 169944 169945 169946 169947 169948 169949 169950 169951 169952 169953 169954 169955 169956 169957 |
# File 'ext/ctp/ctp.cxx', line 169930
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_DeviceID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","DeviceID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->DeviceID);
{
size_t size = SWIG_strnlen(result, 3);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#DeviceID=(*args) ⇒ Object
169900 169901 169902 169903 169904 169905 169906 169907 169908 169909 169910 169911 169912 169913 169914 169915 169916 169917 169918 169919 169920 169921 169922 169923 169924 169925 169926 169927 |
# File 'ext/ctp/ctp.cxx', line 169900
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_DeviceID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[3] ;
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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","DeviceID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 3);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [3]","DeviceID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->DeviceID,arg2,3*sizeof(char));
else memset(arg1->DeviceID,0,3*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InstallID(*args) ⇒ Object
169756 169757 169758 169759 169760 169761 169762 169763 169764 169765 169766 169767 169768 169769 169770 169771 169772 169773 169774 169775 169776 169777 |
# File 'ext/ctp/ctp.cxx', line 169756
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_InstallID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcInstallIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","InstallID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (TThostFtdcInstallIDType) ((arg1)->InstallID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#InstallID=(*args) ⇒ Object
169727 169728 169729 169730 169731 169732 169733 169734 169735 169736 169737 169738 169739 169740 169741 169742 169743 169744 169745 169746 169747 169748 169749 169750 169751 169752 169753 |
# File 'ext/ctp/ctp.cxx', line 169727
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_InstallID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
TThostFtdcInstallIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","InstallID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstallIDType","InstallID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcInstallIDType >(val2);
if (arg1) (arg1)->InstallID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#LastFragment(*args) ⇒ Object
169650 169651 169652 169653 169654 169655 169656 169657 169658 169659 169660 169661 169662 169663 169664 169665 169666 169667 169668 169669 169670 169671 |
# File 'ext/ctp/ctp.cxx', line 169650
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_LastFragment_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcLastFragmentType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","LastFragment", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (TThostFtdcLastFragmentType) ((arg1)->LastFragment);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#LastFragment=(*args) ⇒ Object
169621 169622 169623 169624 169625 169626 169627 169628 169629 169630 169631 169632 169633 169634 169635 169636 169637 169638 169639 169640 169641 169642 169643 169644 169645 169646 169647 |
# File 'ext/ctp/ctp.cxx', line 169621
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_LastFragment_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
TThostFtdcLastFragmentType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","LastFragment", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLastFragmentType","LastFragment", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcLastFragmentType >(val2);
if (arg1) (arg1)->LastFragment = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Message(*args) ⇒ Object
169870 169871 169872 169873 169874 169875 169876 169877 169878 169879 169880 169881 169882 169883 169884 169885 169886 169887 169888 169889 169890 169891 169892 169893 169894 169895 169896 169897 |
# File 'ext/ctp/ctp.cxx', line 169870
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_Message_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","Message", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->Message);
{
size_t size = SWIG_strnlen(result, 129);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#Message=(*args) ⇒ Object
169840 169841 169842 169843 169844 169845 169846 169847 169848 169849 169850 169851 169852 169853 169854 169855 169856 169857 169858 169859 169860 169861 169862 169863 169864 169865 169866 169867 |
# File 'ext/ctp/ctp.cxx', line 169840
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_Message_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[129] ;
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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","Message", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 129);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [129]","Message", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->Message,arg2,129*sizeof(char));
else memset(arg1->Message,0,129*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#OperNo(*args) ⇒ Object
170050 170051 170052 170053 170054 170055 170056 170057 170058 170059 170060 170061 170062 170063 170064 170065 170066 170067 170068 170069 170070 170071 170072 170073 170074 170075 170076 170077 |
# File 'ext/ctp/ctp.cxx', line 170050
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_OperNo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","OperNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->OperNo);
{
size_t size = SWIG_strnlen(result, 17);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#OperNo=(*args) ⇒ Object
170020 170021 170022 170023 170024 170025 170026 170027 170028 170029 170030 170031 170032 170033 170034 170035 170036 170037 170038 170039 170040 170041 170042 170043 170044 170045 170046 170047 |
# File 'ext/ctp/ctp.cxx', line 170020
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_OperNo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[17] ;
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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","OperNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 17);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [17]","OperNo", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->OperNo,arg2,17*sizeof(char));
else memset(arg1->OperNo,0,17*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#PlateSerial(*args) ⇒ Object
169597 169598 169599 169600 169601 169602 169603 169604 169605 169606 169607 169608 169609 169610 169611 169612 169613 169614 169615 169616 169617 169618 |
# File 'ext/ctp/ctp.cxx', line 169597
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_PlateSerial_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSerialType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","PlateSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (TThostFtdcSerialType) ((arg1)->PlateSerial);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#PlateSerial=(*args) ⇒ Object
169568 169569 169570 169571 169572 169573 169574 169575 169576 169577 169578 169579 169580 169581 169582 169583 169584 169585 169586 169587 169588 169589 169590 169591 169592 169593 169594 |
# File 'ext/ctp/ctp.cxx', line 169568
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_PlateSerial_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
TThostFtdcSerialType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","PlateSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSerialType","PlateSerial", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSerialType >(val2);
if (arg1) (arg1)->PlateSerial = arg2;
return Qnil;
fail:
return Qnil;
}
|
#RequestID(*args) ⇒ Object
170109 170110 170111 170112 170113 170114 170115 170116 170117 170118 170119 170120 170121 170122 170123 170124 170125 170126 170127 170128 170129 170130 |
# File 'ext/ctp/ctp.cxx', line 170109
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_RequestID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRequestIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","RequestID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (TThostFtdcRequestIDType) ((arg1)->RequestID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#RequestID=(*args) ⇒ Object
170080 170081 170082 170083 170084 170085 170086 170087 170088 170089 170090 170091 170092 170093 170094 170095 170096 170097 170098 170099 170100 170101 170102 170103 170104 170105 170106 |
# File 'ext/ctp/ctp.cxx', line 170080
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_RequestID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
TThostFtdcRequestIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","RequestID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRequestIDType","RequestID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRequestIDType >(val2);
if (arg1) (arg1)->RequestID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SessionID(*args) ⇒ Object
169703 169704 169705 169706 169707 169708 169709 169710 169711 169712 169713 169714 169715 169716 169717 169718 169719 169720 169721 169722 169723 169724 |
# File 'ext/ctp/ctp.cxx', line 169703
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_SessionID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSessionIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","SessionID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (TThostFtdcSessionIDType) ((arg1)->SessionID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SessionID=(*args) ⇒ Object
169674 169675 169676 169677 169678 169679 169680 169681 169682 169683 169684 169685 169686 169687 169688 169689 169690 169691 169692 169693 169694 169695 169696 169697 169698 169699 169700 |
# File 'ext/ctp/ctp.cxx', line 169674
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_SessionID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
TThostFtdcSessionIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","SessionID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSessionIDType","SessionID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSessionIDType >(val2);
if (arg1) (arg1)->SessionID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TID(*args) ⇒ Object
170162 170163 170164 170165 170166 170167 170168 170169 170170 170171 170172 170173 170174 170175 170176 170177 170178 170179 170180 170181 170182 170183 |
# File 'ext/ctp/ctp.cxx', line 170162
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_TID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (TThostFtdcTIDType) ((arg1)->TID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#TID=(*args) ⇒ Object
170133 170134 170135 170136 170137 170138 170139 170140 170141 170142 170143 170144 170145 170146 170147 170148 170149 170150 170151 170152 170153 170154 170155 170156 170157 170158 170159 |
# File 'ext/ctp/ctp.cxx', line 170133
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_TID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
TThostFtdcTIDType 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTIDType","TID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTIDType >(val2);
if (arg1) (arg1)->TID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TradeCode(*args) ⇒ Object
169058 169059 169060 169061 169062 169063 169064 169065 169066 169067 169068 169069 169070 169071 169072 169073 169074 169075 169076 169077 169078 169079 169080 169081 169082 169083 169084 169085 |
# File 'ext/ctp/ctp.cxx', line 169058
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_TradeCode_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->TradeCode);
{
size_t size = SWIG_strnlen(result, 7);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradeCode=(*args) ⇒ Object
169028 169029 169030 169031 169032 169033 169034 169035 169036 169037 169038 169039 169040 169041 169042 169043 169044 169045 169046 169047 169048 169049 169050 169051 169052 169053 169054 169055 |
# File 'ext/ctp/ctp.cxx', line 169028
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_TradeCode_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[7] ;
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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 7);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [7]","TradeCode", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradeCode,arg2,7*sizeof(char));
else memset(arg1->TradeCode,0,7*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradeDate(*args) ⇒ Object
169358 169359 169360 169361 169362 169363 169364 169365 169366 169367 169368 169369 169370 169371 169372 169373 169374 169375 169376 169377 169378 169379 169380 169381 169382 169383 169384 169385 |
# File 'ext/ctp/ctp.cxx', line 169358
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_TradeDate_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->TradeDate);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradeDate=(*args) ⇒ Object
169328 169329 169330 169331 169332 169333 169334 169335 169336 169337 169338 169339 169340 169341 169342 169343 169344 169345 169346 169347 169348 169349 169350 169351 169352 169353 169354 169355 |
# File 'ext/ctp/ctp.cxx', line 169328
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_TradeDate_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char));
else memset(arg1->TradeDate,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradeTime(*args) ⇒ Object
169418 169419 169420 169421 169422 169423 169424 169425 169426 169427 169428 169429 169430 169431 169432 169433 169434 169435 169436 169437 169438 169439 169440 169441 169442 169443 169444 169445 |
# File 'ext/ctp/ctp.cxx', line 169418
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_TradeTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->TradeTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradeTime=(*args) ⇒ Object
169388 169389 169390 169391 169392 169393 169394 169395 169396 169397 169398 169399 169400 169401 169402 169403 169404 169405 169406 169407 169408 169409 169410 169411 169412 169413 169414 169415 |
# File 'ext/ctp/ctp.cxx', line 169388
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_TradeTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradeTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char));
else memset(arg1->TradeTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradingDay(*args) ⇒ Object
169538 169539 169540 169541 169542 169543 169544 169545 169546 169547 169548 169549 169550 169551 169552 169553 169554 169555 169556 169557 169558 169559 169560 169561 169562 169563 169564 169565 |
# File 'ext/ctp/ctp.cxx', line 169538
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_TradingDay_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
result = (char *) ((arg1)->TradingDay);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradingDay=(*args) ⇒ Object
169508 169509 169510 169511 169512 169513 169514 169515 169516 169517 169518 169519 169520 169521 169522 169523 169524 169525 169526 169527 169528 169529 169530 169531 169532 169533 169534 169535 |
# File 'ext/ctp/ctp.cxx', line 169508
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_TradingDay_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char));
else memset(arg1->TradingDay,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
169810 169811 169812 169813 169814 169815 169816 169817 169818 169819 169820 169821 169822 169823 169824 169825 169826 169827 169828 169829 169830 169831 169832 169833 169834 169835 169836 169837 |
# File 'ext/ctp/ctp.cxx', line 169810
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(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
169780 169781 169782 169783 169784 169785 169786 169787 169788 169789 169790 169791 169792 169793 169794 169795 169796 169797 169798 169799 169800 169801 169802 169803 169804 169805 169806 169807 |
# File 'ext/ctp/ctp.cxx', line 169780
SWIGINTERN VALUE
_wrap_CThostFtdcReqSyncKeyField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcReqSyncKeyField *arg1 = (CThostFtdcReqSyncKeyField *) 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_CThostFtdcReqSyncKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcReqSyncKeyField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcReqSyncKeyField * >(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;
}
|