Class: Ctp::CThostFtdcTradingCodeField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcTradingCodeField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #ClientID(*args) ⇒ Object
- #ClientID=(*args) ⇒ Object
- #ClientIDType(*args) ⇒ Object
- #ClientIDType=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #IsActive(*args) ⇒ Object
- #IsActive=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 |
# File 'ext/ctp/ctp.cxx', line 16066
SWIGINTERN VALUE
_wrap_new_CThostFtdcTradingCodeField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradingCodeField";
CThostFtdcTradingCodeField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcTradingCodeField *)new CThostFtdcTradingCodeField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 |
# File 'ext/ctp/ctp.cxx', line 15795
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(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
15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 |
# File 'ext/ctp/ctp.cxx', line 15765
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(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;
}
|
#ClientID(*args) ⇒ Object
15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 |
# File 'ext/ctp/ctp.cxx', line 15915
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_ClientID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ClientID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1);
result = (char *) ((arg1)->ClientID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ClientID=(*args) ⇒ Object
15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 |
# File 'ext/ctp/ctp.cxx', line 15885
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_ClientID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ClientID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClientID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ClientID,arg2,11*sizeof(char));
else memset(arg1->ClientID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ClientIDType(*args) ⇒ Object
16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 |
# File 'ext/ctp/ctp.cxx', line 16027
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_ClientIDType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcClientIDTypeType 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ClientIDType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1);
result = (TThostFtdcClientIDTypeType) ((arg1)->ClientIDType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#ClientIDType=(*args) ⇒ Object
15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 |
# File 'ext/ctp/ctp.cxx', line 15998
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_ClientIDType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 0 ;
TThostFtdcClientIDTypeType 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ClientIDType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcClientIDTypeType","ClientIDType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcClientIDTypeType >(val2);
if (arg1) (arg1)->ClientIDType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ExchangeID(*args) ⇒ Object
15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 |
# File 'ext/ctp/ctp.cxx', line 15855
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1);
result = (char *) ((arg1)->ExchangeID);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ExchangeID=(*args) ⇒ Object
15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 |
# File 'ext/ctp/ctp.cxx', line 15825
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ExchangeID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ExchangeID,arg2,9*sizeof(char));
else memset(arg1->ExchangeID,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorID(*args) ⇒ Object
15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 |
# File 'ext/ctp/ctp.cxx', line 15735
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(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
15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 |
# File 'ext/ctp/ctp.cxx', line 15705
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(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;
}
|
#IsActive(*args) ⇒ Object
15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 |
# File 'ext/ctp/ctp.cxx', line 15974
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_IsActive_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcBoolType 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1);
result = (TThostFtdcBoolType) ((arg1)->IsActive);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#IsActive=(*args) ⇒ Object
15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 |
# File 'ext/ctp/ctp.cxx', line 15945
SWIGINTERN VALUE
_wrap_CThostFtdcTradingCodeField_IsActive_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradingCodeField *arg1 = (CThostFtdcTradingCodeField *) 0 ;
TThostFtdcBoolType 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_CThostFtdcTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradingCodeField *","IsActive", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradingCodeField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsActive", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBoolType >(val2);
if (arg1) (arg1)->IsActive = arg2;
return Qnil;
fail:
return Qnil;
}
|