Class: Ctp::CThostFtdcSyncDepositField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcSyncDepositField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CurrencyID(*args) ⇒ Object
- #CurrencyID=(*args) ⇒ Object
- #Deposit(*args) ⇒ Object
- #Deposit=(*args) ⇒ Object
- #DepositSeqNo(*args) ⇒ Object
- #DepositSeqNo=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #IsForce(*args) ⇒ Object
- #IsForce=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
48939 48940 48941 48942 48943 48944 48945 48946 48947 48948 48949 48950 48951 48952 |
# File 'ext/ctp/ctp.cxx', line 48939
SWIGINTERN VALUE
_wrap_new_CThostFtdcSyncDepositField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncDepositField";
CThostFtdcSyncDepositField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcSyncDepositField *)new CThostFtdcSyncDepositField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
48668 48669 48670 48671 48672 48673 48674 48675 48676 48677 48678 48679 48680 48681 48682 48683 48684 48685 48686 48687 48688 48689 48690 48691 48692 48693 48694 48695 |
# File 'ext/ctp/ctp.cxx', line 48668
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(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
48638 48639 48640 48641 48642 48643 48644 48645 48646 48647 48648 48649 48650 48651 48652 48653 48654 48655 48656 48657 48658 48659 48660 48661 48662 48663 48664 48665 |
# File 'ext/ctp/ctp.cxx', line 48638
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(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
48894 48895 48896 48897 48898 48899 48900 48901 48902 48903 48904 48905 48906 48907 48908 48909 48910 48911 48912 48913 48914 48915 48916 48917 48918 48919 48920 48921 |
# File 'ext/ctp/ctp.cxx', line 48894
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_CurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(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
48864 48865 48866 48867 48868 48869 48870 48871 48872 48873 48874 48875 48876 48877 48878 48879 48880 48881 48882 48883 48884 48885 48886 48887 48888 48889 48890 48891 |
# File 'ext/ctp/ctp.cxx', line 48864
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_CurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(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;
}
|
#Deposit(*args) ⇒ Object
48787 48788 48789 48790 48791 48792 48793 48794 48795 48796 48797 48798 48799 48800 48801 48802 48803 48804 48805 48806 48807 48808 |
# File 'ext/ctp/ctp.cxx', line 48787
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_Deposit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcMoneyType 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","Deposit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Deposit);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Deposit=(*args) ⇒ Object
48758 48759 48760 48761 48762 48763 48764 48765 48766 48767 48768 48769 48770 48771 48772 48773 48774 48775 48776 48777 48778 48779 48780 48781 48782 48783 48784 |
# File 'ext/ctp/ctp.cxx', line 48758
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_Deposit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 0 ;
TThostFtdcMoneyType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","Deposit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Deposit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Deposit = arg2;
return Qnil;
fail:
return Qnil;
}
|
#DepositSeqNo(*args) ⇒ Object
48608 48609 48610 48611 48612 48613 48614 48615 48616 48617 48618 48619 48620 48621 48622 48623 48624 48625 48626 48627 48628 48629 48630 48631 48632 48633 48634 48635 |
# File 'ext/ctp/ctp.cxx', line 48608
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_DepositSeqNo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","DepositSeqNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1);
result = (char *) ((arg1)->DepositSeqNo);
{
size_t size = SWIG_strnlen(result, 15);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#DepositSeqNo=(*args) ⇒ Object
48578 48579 48580 48581 48582 48583 48584 48585 48586 48587 48588 48589 48590 48591 48592 48593 48594 48595 48596 48597 48598 48599 48600 48601 48602 48603 48604 48605 |
# File 'ext/ctp/ctp.cxx', line 48578
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_DepositSeqNo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[15] ;
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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","DepositSeqNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 15);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [15]","DepositSeqNo", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->DepositSeqNo,arg2,15*sizeof(char));
else memset(arg1->DepositSeqNo,0,15*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#InvestorID(*args) ⇒ Object
48728 48729 48730 48731 48732 48733 48734 48735 48736 48737 48738 48739 48740 48741 48742 48743 48744 48745 48746 48747 48748 48749 48750 48751 48752 48753 48754 48755 |
# File 'ext/ctp/ctp.cxx', line 48728
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(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
48698 48699 48700 48701 48702 48703 48704 48705 48706 48707 48708 48709 48710 48711 48712 48713 48714 48715 48716 48717 48718 48719 48720 48721 48722 48723 48724 48725 |
# File 'ext/ctp/ctp.cxx', line 48698
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(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;
}
|
#IsForce(*args) ⇒ Object
48840 48841 48842 48843 48844 48845 48846 48847 48848 48849 48850 48851 48852 48853 48854 48855 48856 48857 48858 48859 48860 48861 |
# File 'ext/ctp/ctp.cxx', line 48840
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_IsForce_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","IsForce", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1);
result = (TThostFtdcBoolType) ((arg1)->IsForce);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#IsForce=(*args) ⇒ Object
48811 48812 48813 48814 48815 48816 48817 48818 48819 48820 48821 48822 48823 48824 48825 48826 48827 48828 48829 48830 48831 48832 48833 48834 48835 48836 48837 |
# File 'ext/ctp/ctp.cxx', line 48811
SWIGINTERN VALUE
_wrap_CThostFtdcSyncDepositField_IsForce_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncDepositField *arg1 = (CThostFtdcSyncDepositField *) 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_CThostFtdcSyncDepositField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncDepositField *","IsForce", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncDepositField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","IsForce", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBoolType >(val2);
if (arg1) (arg1)->IsForce = arg2;
return Qnil;
fail:
return Qnil;
}
|