Class: Ctp::CThostFtdcCommPhaseField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcCommPhaseField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #CommPhaseNo(*args) ⇒ Object
- #CommPhaseNo=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #SystemID(*args) ⇒ Object
- #SystemID=(*args) ⇒ Object
- #TradingDay(*args) ⇒ Object
- #TradingDay=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
30932 30933 30934 30935 30936 30937 30938 30939 30940 30941 30942 30943 30944 30945 |
# File 'ext/ctp/ctp.cxx', line 30932
SWIGINTERN VALUE
_wrap_new_CThostFtdcCommPhaseField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcCommPhaseField";
CThostFtdcCommPhaseField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcCommPhaseField *)new CThostFtdcCommPhaseField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#CommPhaseNo(*args) ⇒ Object
30833 30834 30835 30836 30837 30838 30839 30840 30841 30842 30843 30844 30845 30846 30847 30848 30849 30850 30851 30852 30853 30854 |
# File 'ext/ctp/ctp.cxx', line 30833
SWIGINTERN VALUE
_wrap_CThostFtdcCommPhaseField_CommPhaseNo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcCommPhaseNoType 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_CThostFtdcCommPhaseField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","CommPhaseNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(argp1);
result = (TThostFtdcCommPhaseNoType) ((arg1)->CommPhaseNo);
vresult = SWIG_From_short(static_cast< short >(result));
return vresult;
fail:
return Qnil;
}
|
#CommPhaseNo=(*args) ⇒ Object
30804 30805 30806 30807 30808 30809 30810 30811 30812 30813 30814 30815 30816 30817 30818 30819 30820 30821 30822 30823 30824 30825 30826 30827 30828 30829 30830 |
# File 'ext/ctp/ctp.cxx', line 30804
SWIGINTERN VALUE
_wrap_CThostFtdcCommPhaseField_CommPhaseNo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 0 ;
TThostFtdcCommPhaseNoType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
short 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_CThostFtdcCommPhaseField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","CommPhaseNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(argp1);
ecode2 = SWIG_AsVal_short(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcCommPhaseNoType","CommPhaseNo", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcCommPhaseNoType >(val2);
if (arg1) (arg1)->CommPhaseNo = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SystemID(*args) ⇒ Object
30887 30888 30889 30890 30891 30892 30893 30894 30895 30896 30897 30898 30899 30900 30901 30902 30903 30904 30905 30906 30907 30908 30909 30910 30911 30912 30913 30914 |
# File 'ext/ctp/ctp.cxx', line 30887
SWIGINTERN VALUE
_wrap_CThostFtdcCommPhaseField_SystemID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 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_CThostFtdcCommPhaseField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","SystemID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(argp1);
result = (char *) ((arg1)->SystemID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#SystemID=(*args) ⇒ Object
30857 30858 30859 30860 30861 30862 30863 30864 30865 30866 30867 30868 30869 30870 30871 30872 30873 30874 30875 30876 30877 30878 30879 30880 30881 30882 30883 30884 |
# File 'ext/ctp/ctp.cxx', line 30857
SWIGINTERN VALUE
_wrap_CThostFtdcCommPhaseField_SystemID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[21] ;
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_CThostFtdcCommPhaseField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","SystemID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","SystemID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->SystemID,arg2,21*sizeof(char));
else memset(arg1->SystemID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradingDay(*args) ⇒ Object
30774 30775 30776 30777 30778 30779 30780 30781 30782 30783 30784 30785 30786 30787 30788 30789 30790 30791 30792 30793 30794 30795 30796 30797 30798 30799 30800 30801 |
# File 'ext/ctp/ctp.cxx', line 30774
SWIGINTERN VALUE
_wrap_CThostFtdcCommPhaseField_TradingDay_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 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_CThostFtdcCommPhaseField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(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
30744 30745 30746 30747 30748 30749 30750 30751 30752 30753 30754 30755 30756 30757 30758 30759 30760 30761 30762 30763 30764 30765 30766 30767 30768 30769 30770 30771 |
# File 'ext/ctp/ctp.cxx', line 30744
SWIGINTERN VALUE
_wrap_CThostFtdcCommPhaseField_TradingDay_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcCommPhaseField *arg1 = (CThostFtdcCommPhaseField *) 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_CThostFtdcCommPhaseField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcCommPhaseField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcCommPhaseField * >(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;
}
|