Class: Ctp::CThostFtdcRspUserLoginField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcRspUserLoginField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CZCETime(*args) ⇒ Object
- #CZCETime=(*args) ⇒ Object
- #DCETime(*args) ⇒ Object
- #DCETime=(*args) ⇒ Object
- #FFEXTime(*args) ⇒ Object
- #FFEXTime=(*args) ⇒ Object
- #FrontID(*args) ⇒ Object
- #FrontID=(*args) ⇒ Object
- #INETime(*args) ⇒ Object
- #INETime=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #LoginTime(*args) ⇒ Object
- #LoginTime=(*args) ⇒ Object
- #MaxOrderRef(*args) ⇒ Object
- #MaxOrderRef=(*args) ⇒ Object
- #SessionID(*args) ⇒ Object
- #SessionID=(*args) ⇒ Object
- #SHFETime(*args) ⇒ Object
- #SHFETime=(*args) ⇒ Object
- #SystemName(*args) ⇒ Object
- #SystemName=(*args) ⇒ Object
- #TradingDay(*args) ⇒ Object
- #TradingDay=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 |
# File 'ext/ctp/ctp.cxx', line 5975
SWIGINTERN VALUE
_wrap_new_CThostFtdcRspUserLoginField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcRspUserLoginField";
CThostFtdcRspUserLoginField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcRspUserLoginField *)new CThostFtdcRspUserLoginField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 |
# File 'ext/ctp/ctp.cxx', line 5344
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(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
5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 |
# File 'ext/ctp/ctp.cxx', line 5314
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(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;
}
|
#CZCETime(*args) ⇒ Object
5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 |
# File 'ext/ctp/ctp.cxx', line 5810
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_CZCETime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","CZCETime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
result = (char *) ((arg1)->CZCETime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CZCETime=(*args) ⇒ Object
5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 |
# File 'ext/ctp/ctp.cxx', line 5780
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_CZCETime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","CZCETime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","CZCETime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CZCETime,arg2,9*sizeof(char));
else memset(arg1->CZCETime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#DCETime(*args) ⇒ Object
5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 |
# File 'ext/ctp/ctp.cxx', line 5750
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_DCETime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","DCETime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
result = (char *) ((arg1)->DCETime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#DCETime=(*args) ⇒ Object
5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 |
# File 'ext/ctp/ctp.cxx', line 5720
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_DCETime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","DCETime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","DCETime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->DCETime,arg2,9*sizeof(char));
else memset(arg1->DCETime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#FFEXTime(*args) ⇒ Object
5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 |
# File 'ext/ctp/ctp.cxx', line 5870
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_FFEXTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","FFEXTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
result = (char *) ((arg1)->FFEXTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#FFEXTime=(*args) ⇒ Object
5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 |
# File 'ext/ctp/ctp.cxx', line 5840
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_FFEXTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","FFEXTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","FFEXTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->FFEXTime,arg2,9*sizeof(char));
else memset(arg1->FFEXTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#FrontID(*args) ⇒ Object
5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 |
# File 'ext/ctp/ctp.cxx', line 5523
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_FrontID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcFrontIDType 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","FrontID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
result = (TThostFtdcFrontIDType) ((arg1)->FrontID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#FrontID=(*args) ⇒ Object
5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 |
# File 'ext/ctp/ctp.cxx', line 5494
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_FrontID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 0 ;
TThostFtdcFrontIDType 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","FrontID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcFrontIDType","FrontID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcFrontIDType >(val2);
if (arg1) (arg1)->FrontID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#INETime(*args) ⇒ Object
5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 |
# File 'ext/ctp/ctp.cxx', line 5930
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_INETime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","INETime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
result = (char *) ((arg1)->INETime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#INETime=(*args) ⇒ Object
5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 |
# File 'ext/ctp/ctp.cxx', line 5900
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_INETime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","INETime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","INETime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->INETime,arg2,9*sizeof(char));
else memset(arg1->INETime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#LoginTime(*args) ⇒ Object
5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 |
# File 'ext/ctp/ctp.cxx', line 5284
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_LoginTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","LoginTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
result = (char *) ((arg1)->LoginTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#LoginTime=(*args) ⇒ Object
5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 |
# File 'ext/ctp/ctp.cxx', line 5254
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_LoginTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","LoginTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","LoginTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->LoginTime,arg2,9*sizeof(char));
else memset(arg1->LoginTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#MaxOrderRef(*args) ⇒ Object
5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 |
# File 'ext/ctp/ctp.cxx', line 5630
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_MaxOrderRef_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","MaxOrderRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
result = (char *) ((arg1)->MaxOrderRef);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#MaxOrderRef=(*args) ⇒ Object
5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 |
# File 'ext/ctp/ctp.cxx', line 5600
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_MaxOrderRef_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","MaxOrderRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","MaxOrderRef", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->MaxOrderRef,arg2,13*sizeof(char));
else memset(arg1->MaxOrderRef,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#SessionID(*args) ⇒ Object
5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 |
# File 'ext/ctp/ctp.cxx', line 5576
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_SessionID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SessionID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
result = (TThostFtdcSessionIDType) ((arg1)->SessionID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SessionID=(*args) ⇒ Object
5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 |
# File 'ext/ctp/ctp.cxx', line 5547
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_SessionID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SessionID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(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;
}
|
#SHFETime(*args) ⇒ Object
5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 |
# File 'ext/ctp/ctp.cxx', line 5690
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_SHFETime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SHFETime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
result = (char *) ((arg1)->SHFETime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#SHFETime=(*args) ⇒ Object
5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 |
# File 'ext/ctp/ctp.cxx', line 5660
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_SHFETime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SHFETime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SHFETime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->SHFETime,arg2,9*sizeof(char));
else memset(arg1->SHFETime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#SystemName(*args) ⇒ Object
5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 |
# File 'ext/ctp/ctp.cxx', line 5464
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_SystemName_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SystemName", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
result = (char *) ((arg1)->SystemName);
{
size_t size = SWIG_strnlen(result, 41);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#SystemName=(*args) ⇒ Object
5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 |
# File 'ext/ctp/ctp.cxx', line 5434
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_SystemName_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[41] ;
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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","SystemName", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 41);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [41]","SystemName", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->SystemName,arg2,41*sizeof(char));
else memset(arg1->SystemName,0,41*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradingDay(*args) ⇒ Object
5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 |
# File 'ext/ctp/ctp.cxx', line 5224
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_TradingDay_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(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
5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 |
# File 'ext/ctp/ctp.cxx', line 5194
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_TradingDay_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(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
5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 |
# File 'ext/ctp/ctp.cxx', line 5404
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(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
5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 |
# File 'ext/ctp/ctp.cxx', line 5374
SWIGINTERN VALUE
_wrap_CThostFtdcRspUserLoginField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcRspUserLoginField *arg1 = (CThostFtdcRspUserLoginField *) 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_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcRspUserLoginField * >(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;
}
|