Class: Ctp::CThostFtdcQryBrokerTradingParamsField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryBrokerTradingParamsField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CurrencyID(*args) ⇒ Object
- #CurrencyID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
126924 126925 126926 126927 126928 126929 126930 126931 126932 126933 126934 126935 126936 126937 |
# File 'ext/ctp/ctp.cxx', line 126924
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryBrokerTradingParamsField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryBrokerTradingParamsField";
CThostFtdcQryBrokerTradingParamsField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryBrokerTradingParamsField *)new CThostFtdcQryBrokerTradingParamsField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
126759 126760 126761 126762 126763 126764 126765 126766 126767 126768 126769 126770 126771 126772 126773 126774 126775 126776 126777 126778 126779 126780 126781 126782 126783 126784 126785 126786 |
# File 'ext/ctp/ctp.cxx', line 126759
SWIGINTERN VALUE
_wrap_CThostFtdcQryBrokerTradingParamsField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(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
126729 126730 126731 126732 126733 126734 126735 126736 126737 126738 126739 126740 126741 126742 126743 126744 126745 126746 126747 126748 126749 126750 126751 126752 126753 126754 126755 126756 |
# File 'ext/ctp/ctp.cxx', line 126729
SWIGINTERN VALUE
_wrap_CThostFtdcQryBrokerTradingParamsField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(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;
}
|
#CurrencyID(*args) ⇒ Object
126879 126880 126881 126882 126883 126884 126885 126886 126887 126888 126889 126890 126891 126892 126893 126894 126895 126896 126897 126898 126899 126900 126901 126902 126903 126904 126905 126906 |
# File 'ext/ctp/ctp.cxx', line 126879
SWIGINTERN VALUE
_wrap_CThostFtdcQryBrokerTradingParamsField_CurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp1);
result = (char *) ((arg1)->CurrencyID);
{
size_t size = SWIG_strnlen(result, 4);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CurrencyID=(*args) ⇒ Object
126849 126850 126851 126852 126853 126854 126855 126856 126857 126858 126859 126860 126861 126862 126863 126864 126865 126866 126867 126868 126869 126870 126871 126872 126873 126874 126875 126876 |
# File 'ext/ctp/ctp.cxx', line 126849
SWIGINTERN VALUE
_wrap_CThostFtdcQryBrokerTradingParamsField_CurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char));
else memset(arg1->CurrencyID,0,4*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorID(*args) ⇒ Object
126819 126820 126821 126822 126823 126824 126825 126826 126827 126828 126829 126830 126831 126832 126833 126834 126835 126836 126837 126838 126839 126840 126841 126842 126843 126844 126845 126846 |
# File 'ext/ctp/ctp.cxx', line 126819
SWIGINTERN VALUE
_wrap_CThostFtdcQryBrokerTradingParamsField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp1);
result = (char *) ((arg1)->InvestorID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InvestorID=(*args) ⇒ Object
126789 126790 126791 126792 126793 126794 126795 126796 126797 126798 126799 126800 126801 126802 126803 126804 126805 126806 126807 126808 126809 126810 126811 126812 126813 126814 126815 126816 |
# File 'ext/ctp/ctp.cxx', line 126789
SWIGINTERN VALUE
_wrap_CThostFtdcQryBrokerTradingParamsField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryBrokerTradingParamsField *arg1 = (CThostFtdcQryBrokerTradingParamsField *) 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_CThostFtdcQryBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char));
else memset(arg1->InvestorID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|