Class: Ctp::CThostFtdcQryExchangeRateField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryExchangeRateField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #FromCurrencyID(*args) ⇒ Object
- #FromCurrencyID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #ToCurrencyID(*args) ⇒ Object
- #ToCurrencyID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
63967 63968 63969 63970 63971 63972 63973 63974 63975 63976 63977 63978 63979 63980 |
# File 'ext/ctp/ctp.cxx', line 63967
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryExchangeRateField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeRateField";
CThostFtdcQryExchangeRateField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryExchangeRateField *)new CThostFtdcQryExchangeRateField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
63802 63803 63804 63805 63806 63807 63808 63809 63810 63811 63812 63813 63814 63815 63816 63817 63818 63819 63820 63821 63822 63823 63824 63825 63826 63827 63828 63829 |
# File 'ext/ctp/ctp.cxx', line 63802
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 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_CThostFtdcQryExchangeRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(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
63772 63773 63774 63775 63776 63777 63778 63779 63780 63781 63782 63783 63784 63785 63786 63787 63788 63789 63790 63791 63792 63793 63794 63795 63796 63797 63798 63799 |
# File 'ext/ctp/ctp.cxx', line 63772
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 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_CThostFtdcQryExchangeRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(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;
}
|
#FromCurrencyID(*args) ⇒ Object
63862 63863 63864 63865 63866 63867 63868 63869 63870 63871 63872 63873 63874 63875 63876 63877 63878 63879 63880 63881 63882 63883 63884 63885 63886 63887 63888 63889 |
# File 'ext/ctp/ctp.cxx', line 63862
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeRateField_FromCurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 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_CThostFtdcQryExchangeRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","FromCurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp1);
result = (char *) ((arg1)->FromCurrencyID);
{
size_t size = SWIG_strnlen(result, 4);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#FromCurrencyID=(*args) ⇒ Object
63832 63833 63834 63835 63836 63837 63838 63839 63840 63841 63842 63843 63844 63845 63846 63847 63848 63849 63850 63851 63852 63853 63854 63855 63856 63857 63858 63859 |
# File 'ext/ctp/ctp.cxx', line 63832
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeRateField_FromCurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 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_CThostFtdcQryExchangeRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","FromCurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","FromCurrencyID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->FromCurrencyID,arg2,4*sizeof(char));
else memset(arg1->FromCurrencyID,0,4*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ToCurrencyID(*args) ⇒ Object
63922 63923 63924 63925 63926 63927 63928 63929 63930 63931 63932 63933 63934 63935 63936 63937 63938 63939 63940 63941 63942 63943 63944 63945 63946 63947 63948 63949 |
# File 'ext/ctp/ctp.cxx', line 63922
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeRateField_ToCurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 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_CThostFtdcQryExchangeRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","ToCurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp1);
result = (char *) ((arg1)->ToCurrencyID);
{
size_t size = SWIG_strnlen(result, 4);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ToCurrencyID=(*args) ⇒ Object
63892 63893 63894 63895 63896 63897 63898 63899 63900 63901 63902 63903 63904 63905 63906 63907 63908 63909 63910 63911 63912 63913 63914 63915 63916 63917 63918 63919 |
# File 'ext/ctp/ctp.cxx', line 63892
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeRateField_ToCurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeRateField *arg1 = (CThostFtdcQryExchangeRateField *) 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_CThostFtdcQryExchangeRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","ToCurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","ToCurrencyID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ToCurrencyID,arg2,4*sizeof(char));
else memset(arg1->ToCurrencyID,0,4*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|