Class: Ctp::CThostFtdcSyncStatusField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcSyncStatusField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #DataSyncStatus(*args) ⇒ Object
- #DataSyncStatus=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #TradingDay(*args) ⇒ Object
- #TradingDay=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
109812 109813 109814 109815 109816 109817 109818 109819 109820 109821 109822 109823 109824 109825 |
# File 'ext/ctp/ctp.cxx', line 109812 SWIGINTERN VALUE _wrap_new_CThostFtdcSyncStatusField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncStatusField"; CThostFtdcSyncStatusField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcSyncStatusField *)new CThostFtdcSyncStatusField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#DataSyncStatus(*args) ⇒ Object
109773 109774 109775 109776 109777 109778 109779 109780 109781 109782 109783 109784 109785 109786 109787 109788 109789 109790 109791 109792 109793 109794 |
# File 'ext/ctp/ctp.cxx', line 109773 SWIGINTERN VALUE _wrap_CThostFtdcSyncStatusField_DataSyncStatus_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncStatusField *arg1 = (CThostFtdcSyncStatusField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcDataSyncStatusType 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_CThostFtdcSyncStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncStatusField *","DataSyncStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncStatusField * >(argp1); result = (TThostFtdcDataSyncStatusType) ((arg1)->DataSyncStatus); vresult = SWIG_From_char(static_cast< char >(result)); return vresult; fail: return Qnil; } |
#DataSyncStatus=(*args) ⇒ Object
109744 109745 109746 109747 109748 109749 109750 109751 109752 109753 109754 109755 109756 109757 109758 109759 109760 109761 109762 109763 109764 109765 109766 109767 109768 109769 109770 |
# File 'ext/ctp/ctp.cxx', line 109744 SWIGINTERN VALUE _wrap_CThostFtdcSyncStatusField_DataSyncStatus_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncStatusField *arg1 = (CThostFtdcSyncStatusField *) 0 ; TThostFtdcDataSyncStatusType 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_CThostFtdcSyncStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncStatusField *","DataSyncStatus", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncStatusField * >(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDataSyncStatusType","DataSyncStatus", 2, argv[0] )); } arg2 = static_cast< TThostFtdcDataSyncStatusType >(val2); if (arg1) (arg1)->DataSyncStatus = arg2; return Qnil; fail: return Qnil; } |
#TradingDay(*args) ⇒ Object
109714 109715 109716 109717 109718 109719 109720 109721 109722 109723 109724 109725 109726 109727 109728 109729 109730 109731 109732 109733 109734 109735 109736 109737 109738 109739 109740 109741 |
# File 'ext/ctp/ctp.cxx', line 109714 SWIGINTERN VALUE _wrap_CThostFtdcSyncStatusField_TradingDay_get(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncStatusField *arg1 = (CThostFtdcSyncStatusField *) 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_CThostFtdcSyncStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncStatusField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncStatusField * >(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
109684 109685 109686 109687 109688 109689 109690 109691 109692 109693 109694 109695 109696 109697 109698 109699 109700 109701 109702 109703 109704 109705 109706 109707 109708 109709 109710 109711 |
# File 'ext/ctp/ctp.cxx', line 109684 SWIGINTERN VALUE _wrap_CThostFtdcSyncStatusField_TradingDay_set(int argc, VALUE *argv, VALUE self) { CThostFtdcSyncStatusField *arg1 = (CThostFtdcSyncStatusField *) 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_CThostFtdcSyncStatusField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncStatusField *","TradingDay", 1, self )); } arg1 = reinterpret_cast< CThostFtdcSyncStatusField * >(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; } |