Class: Ctp::CThostFtdcInstrumentStatusField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcInstrumentStatusField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #EnterReason(*args) ⇒ Object
- #EnterReason=(*args) ⇒ Object
- #EnterTime(*args) ⇒ Object
- #EnterTime=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #ExchangeInstID(*args) ⇒ Object
- #ExchangeInstID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InstrumentStatus(*args) ⇒ Object
- #InstrumentStatus=(*args) ⇒ Object
- #SettlementGroupID(*args) ⇒ Object
- #SettlementGroupID=(*args) ⇒ Object
- #TradingSegmentSN(*args) ⇒ Object
- #TradingSegmentSN=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
102115 102116 102117 102118 102119 102120 102121 102122 102123 102124 102125 102126 102127 102128 |
# File 'ext/ctp/ctp.cxx', line 102115
SWIGINTERN VALUE
_wrap_new_CThostFtdcInstrumentStatusField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcInstrumentStatusField";
CThostFtdcInstrumentStatusField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcInstrumentStatusField *)new CThostFtdcInstrumentStatusField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#EnterReason(*args) ⇒ Object
102076 102077 102078 102079 102080 102081 102082 102083 102084 102085 102086 102087 102088 102089 102090 102091 102092 102093 102094 102095 102096 102097 |
# File 'ext/ctp/ctp.cxx', line 102076
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_EnterReason_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcInstStatusEnterReasonType 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","EnterReason", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
result = (TThostFtdcInstStatusEnterReasonType) ((arg1)->EnterReason);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#EnterReason=(*args) ⇒ Object
102047 102048 102049 102050 102051 102052 102053 102054 102055 102056 102057 102058 102059 102060 102061 102062 102063 102064 102065 102066 102067 102068 102069 102070 102071 102072 102073 |
# File 'ext/ctp/ctp.cxx', line 102047
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_EnterReason_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ;
TThostFtdcInstStatusEnterReasonType 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","EnterReason", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstStatusEnterReasonType","EnterReason", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcInstStatusEnterReasonType >(val2);
if (arg1) (arg1)->EnterReason = arg2;
return Qnil;
fail:
return Qnil;
}
|
#EnterTime(*args) ⇒ Object
102017 102018 102019 102020 102021 102022 102023 102024 102025 102026 102027 102028 102029 102030 102031 102032 102033 102034 102035 102036 102037 102038 102039 102040 102041 102042 102043 102044 |
# File 'ext/ctp/ctp.cxx', line 102017
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_EnterTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","EnterTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
result = (char *) ((arg1)->EnterTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#EnterTime=(*args) ⇒ Object
101987 101988 101989 101990 101991 101992 101993 101994 101995 101996 101997 101998 101999 102000 102001 102002 102003 102004 102005 102006 102007 102008 102009 102010 102011 102012 102013 102014 |
# File 'ext/ctp/ctp.cxx', line 101987
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_EnterTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","EnterTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","EnterTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->EnterTime,arg2,9*sizeof(char));
else memset(arg1->EnterTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ExchangeID(*args) ⇒ Object
101671 101672 101673 101674 101675 101676 101677 101678 101679 101680 101681 101682 101683 101684 101685 101686 101687 101688 101689 101690 101691 101692 101693 101694 101695 101696 101697 101698 |
# File 'ext/ctp/ctp.cxx', line 101671
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(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
101641 101642 101643 101644 101645 101646 101647 101648 101649 101650 101651 101652 101653 101654 101655 101656 101657 101658 101659 101660 101661 101662 101663 101664 101665 101666 101667 101668 |
# File 'ext/ctp/ctp.cxx', line 101641
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(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;
}
|
#ExchangeInstID(*args) ⇒ Object
101731 101732 101733 101734 101735 101736 101737 101738 101739 101740 101741 101742 101743 101744 101745 101746 101747 101748 101749 101750 101751 101752 101753 101754 101755 101756 101757 101758 |
# File 'ext/ctp/ctp.cxx', line 101731
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","ExchangeInstID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
result = (char *) ((arg1)->ExchangeInstID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ExchangeInstID=(*args) ⇒ Object
101701 101702 101703 101704 101705 101706 101707 101708 101709 101710 101711 101712 101713 101714 101715 101716 101717 101718 101719 101720 101721 101722 101723 101724 101725 101726 101727 101728 |
# File 'ext/ctp/ctp.cxx', line 101701
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","ExchangeInstID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ExchangeInstID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ExchangeInstID,arg2,31*sizeof(char));
else memset(arg1->ExchangeInstID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
101851 101852 101853 101854 101855 101856 101857 101858 101859 101860 101861 101862 101863 101864 101865 101866 101867 101868 101869 101870 101871 101872 101873 101874 101875 101876 101877 101878 |
# File 'ext/ctp/ctp.cxx', line 101851
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
result = (char *) ((arg1)->InstrumentID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#InstrumentID=(*args) ⇒ Object
101821 101822 101823 101824 101825 101826 101827 101828 101829 101830 101831 101832 101833 101834 101835 101836 101837 101838 101839 101840 101841 101842 101843 101844 101845 101846 101847 101848 |
# File 'ext/ctp/ctp.cxx', line 101821
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char));
else memset(arg1->InstrumentID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InstrumentStatus(*args) ⇒ Object
101910 101911 101912 101913 101914 101915 101916 101917 101918 101919 101920 101921 101922 101923 101924 101925 101926 101927 101928 101929 101930 101931 |
# File 'ext/ctp/ctp.cxx', line 101910
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_InstrumentStatus_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcInstrumentStatusType 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","InstrumentStatus", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
result = (TThostFtdcInstrumentStatusType) ((arg1)->InstrumentStatus);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#InstrumentStatus=(*args) ⇒ Object
101881 101882 101883 101884 101885 101886 101887 101888 101889 101890 101891 101892 101893 101894 101895 101896 101897 101898 101899 101900 101901 101902 101903 101904 101905 101906 101907 |
# File 'ext/ctp/ctp.cxx', line 101881
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_InstrumentStatus_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ;
TThostFtdcInstrumentStatusType 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","InstrumentStatus", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstrumentStatusType","InstrumentStatus", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcInstrumentStatusType >(val2);
if (arg1) (arg1)->InstrumentStatus = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SettlementGroupID(*args) ⇒ Object
101791 101792 101793 101794 101795 101796 101797 101798 101799 101800 101801 101802 101803 101804 101805 101806 101807 101808 101809 101810 101811 101812 101813 101814 101815 101816 101817 101818 |
# File 'ext/ctp/ctp.cxx', line 101791
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_SettlementGroupID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","SettlementGroupID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
result = (char *) ((arg1)->SettlementGroupID);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#SettlementGroupID=(*args) ⇒ Object
101761 101762 101763 101764 101765 101766 101767 101768 101769 101770 101771 101772 101773 101774 101775 101776 101777 101778 101779 101780 101781 101782 101783 101784 101785 101786 101787 101788 |
# File 'ext/ctp/ctp.cxx', line 101761
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_SettlementGroupID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","SettlementGroupID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","SettlementGroupID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->SettlementGroupID,arg2,9*sizeof(char));
else memset(arg1->SettlementGroupID,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradingSegmentSN(*args) ⇒ Object
101963 101964 101965 101966 101967 101968 101969 101970 101971 101972 101973 101974 101975 101976 101977 101978 101979 101980 101981 101982 101983 101984 |
# File 'ext/ctp/ctp.cxx', line 101963
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_TradingSegmentSN_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTradingSegmentSNType 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","TradingSegmentSN", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
result = (TThostFtdcTradingSegmentSNType) ((arg1)->TradingSegmentSN);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#TradingSegmentSN=(*args) ⇒ Object
101934 101935 101936 101937 101938 101939 101940 101941 101942 101943 101944 101945 101946 101947 101948 101949 101950 101951 101952 101953 101954 101955 101956 101957 101958 101959 101960 |
# File 'ext/ctp/ctp.cxx', line 101934
SWIGINTERN VALUE
_wrap_CThostFtdcInstrumentStatusField_TradingSegmentSN_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcInstrumentStatusField *arg1 = (CThostFtdcInstrumentStatusField *) 0 ;
TThostFtdcTradingSegmentSNType 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_CThostFtdcInstrumentStatusField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInstrumentStatusField *","TradingSegmentSN", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcInstrumentStatusField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradingSegmentSNType","TradingSegmentSN", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTradingSegmentSNType >(val2);
if (arg1) (arg1)->TradingSegmentSN = arg2;
return Qnil;
fail:
return Qnil;
}
|