Class: Ctp::CThostFtdcTradeField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcTradeField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #BrokerOrderSeq(*args) ⇒ Object
- #BrokerOrderSeq=(*args) ⇒ Object
- #BusinessUnit(*args) ⇒ Object
- #BusinessUnit=(*args) ⇒ Object
- #ClearingPartID(*args) ⇒ Object
- #ClearingPartID=(*args) ⇒ Object
- #ClientID(*args) ⇒ Object
- #ClientID=(*args) ⇒ Object
- #Direction(*args) ⇒ Object
- #Direction=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #ExchangeInstID(*args) ⇒ Object
- #ExchangeInstID=(*args) ⇒ Object
- #HedgeFlag(*args) ⇒ Object
- #HedgeFlag=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #OffsetFlag(*args) ⇒ Object
- #OffsetFlag=(*args) ⇒ Object
- #OrderLocalID(*args) ⇒ Object
- #OrderLocalID=(*args) ⇒ Object
- #OrderRef(*args) ⇒ Object
- #OrderRef=(*args) ⇒ Object
- #OrderSysID(*args) ⇒ Object
- #OrderSysID=(*args) ⇒ Object
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
- #Price(*args) ⇒ Object
- #Price=(*args) ⇒ Object
- #PriceSource(*args) ⇒ Object
- #PriceSource=(*args) ⇒ Object
- #SequenceNo(*args) ⇒ Object
- #SequenceNo=(*args) ⇒ Object
- #SettlementID(*args) ⇒ Object
- #SettlementID=(*args) ⇒ Object
- #TradeDate(*args) ⇒ Object
- #TradeDate=(*args) ⇒ Object
- #TradeID(*args) ⇒ Object
- #TradeID=(*args) ⇒ Object
- #TraderID(*args) ⇒ Object
- #TraderID=(*args) ⇒ Object
- #TradeSource(*args) ⇒ Object
- #TradeSource=(*args) ⇒ Object
- #TradeTime(*args) ⇒ Object
- #TradeTime=(*args) ⇒ Object
- #TradeType(*args) ⇒ Object
- #TradeType=(*args) ⇒ Object
- #TradingDay(*args) ⇒ Object
- #TradingDay=(*args) ⇒ Object
- #TradingRole(*args) ⇒ Object
- #TradingRole=(*args) ⇒ Object
- #UserID(*args) ⇒ Object
- #UserID=(*args) ⇒ Object
- #Volume(*args) ⇒ Object
- #Volume=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
47159 47160 47161 47162 47163 47164 47165 47166 47167 47168 47169 47170 47171 47172 |
# File 'ext/ctp/ctp.cxx', line 47159
SWIGINTERN VALUE
_wrap_new_CThostFtdcTradeField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcTradeField";
CThostFtdcTradeField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcTradeField *)new CThostFtdcTradeField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
45458 45459 45460 45461 45462 45463 45464 45465 45466 45467 45468 45469 45470 45471 45472 45473 45474 45475 45476 45477 45478 45479 45480 45481 45482 45483 45484 45485 |
# File 'ext/ctp/ctp.cxx', line 45458
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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
45428 45429 45430 45431 45432 45433 45434 45435 45436 45437 45438 45439 45440 45441 45442 45443 45444 45445 45446 45447 45448 45449 45450 45451 45452 45453 45454 45455 |
# File 'ext/ctp/ctp.cxx', line 45428
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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;
}
|
#BrokerOrderSeq(*args) ⇒ Object
47067 47068 47069 47070 47071 47072 47073 47074 47075 47076 47077 47078 47079 47080 47081 47082 47083 47084 47085 47086 47087 47088 |
# File 'ext/ctp/ctp.cxx', line 47067
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_BrokerOrderSeq_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BrokerOrderSeq", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcSequenceNoType) ((arg1)->BrokerOrderSeq);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#BrokerOrderSeq=(*args) ⇒ Object
47038 47039 47040 47041 47042 47043 47044 47045 47046 47047 47048 47049 47050 47051 47052 47053 47054 47055 47056 47057 47058 47059 47060 47061 47062 47063 47064 |
# File 'ext/ctp/ctp.cxx', line 47038
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_BrokerOrderSeq_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BrokerOrderSeq", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","BrokerOrderSeq", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSequenceNoType >(val2);
if (arg1) (arg1)->BrokerOrderSeq = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BusinessUnit(*args) ⇒ Object
46842 46843 46844 46845 46846 46847 46848 46849 46850 46851 46852 46853 46854 46855 46856 46857 46858 46859 46860 46861 46862 46863 46864 46865 46866 46867 46868 46869 |
# File 'ext/ctp/ctp.cxx', line 46842
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_BusinessUnit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BusinessUnit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->BusinessUnit);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#BusinessUnit=(*args) ⇒ Object
46812 46813 46814 46815 46816 46817 46818 46819 46820 46821 46822 46823 46824 46825 46826 46827 46828 46829 46830 46831 46832 46833 46834 46835 46836 46837 46838 46839 |
# File 'ext/ctp/ctp.cxx', line 46812
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_BusinessUnit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","BusinessUnit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","BusinessUnit", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->BusinessUnit,arg2,21*sizeof(char));
else memset(arg1->BusinessUnit,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ClearingPartID(*args) ⇒ Object
46782 46783 46784 46785 46786 46787 46788 46789 46790 46791 46792 46793 46794 46795 46796 46797 46798 46799 46800 46801 46802 46803 46804 46805 46806 46807 46808 46809 |
# File 'ext/ctp/ctp.cxx', line 46782
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_ClearingPartID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ClearingPartID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->ClearingPartID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ClearingPartID=(*args) ⇒ Object
46752 46753 46754 46755 46756 46757 46758 46759 46760 46761 46762 46763 46764 46765 46766 46767 46768 46769 46770 46771 46772 46773 46774 46775 46776 46777 46778 46779 |
# File 'ext/ctp/ctp.cxx', line 46752
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_ClearingPartID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ClearingPartID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClearingPartID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ClearingPartID,arg2,11*sizeof(char));
else memset(arg1->ClearingPartID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ClientID(*args) ⇒ Object
46051 46052 46053 46054 46055 46056 46057 46058 46059 46060 46061 46062 46063 46064 46065 46066 46067 46068 46069 46070 46071 46072 46073 46074 46075 46076 46077 46078 |
# File 'ext/ctp/ctp.cxx', line 46051
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_ClientID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ClientID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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
46021 46022 46023 46024 46025 46026 46027 46028 46029 46030 46031 46032 46033 46034 46035 46036 46037 46038 46039 46040 46041 46042 46043 46044 46045 46046 46047 46048 |
# File 'ext/ctp/ctp.cxx', line 46021
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_ClientID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ClientID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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;
}
|
#Direction(*args) ⇒ Object
45877 45878 45879 45880 45881 45882 45883 45884 45885 45886 45887 45888 45889 45890 45891 45892 45893 45894 45895 45896 45897 45898 |
# File 'ext/ctp/ctp.cxx', line 45877
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_Direction_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcDirectionType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Direction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcDirectionType) ((arg1)->Direction);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#Direction=(*args) ⇒ Object
45848 45849 45850 45851 45852 45853 45854 45855 45856 45857 45858 45859 45860 45861 45862 45863 45864 45865 45866 45867 45868 45869 45870 45871 45872 45873 45874 |
# File 'ext/ctp/ctp.cxx', line 45848
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_Direction_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcDirectionType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Direction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDirectionType","Direction", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcDirectionType >(val2);
if (arg1) (arg1)->Direction = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ExchangeID(*args) ⇒ Object
45758 45759 45760 45761 45762 45763 45764 45765 45766 45767 45768 45769 45770 45771 45772 45773 45774 45775 45776 45777 45778 45779 45780 45781 45782 45783 45784 45785 |
# File 'ext/ctp/ctp.cxx', line 45758
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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
45728 45729 45730 45731 45732 45733 45734 45735 45736 45737 45738 45739 45740 45741 45742 45743 45744 45745 45746 45747 45748 45749 45750 45751 45752 45753 45754 45755 |
# File 'ext/ctp/ctp.cxx', line 45728
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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
46164 46165 46166 46167 46168 46169 46170 46171 46172 46173 46174 46175 46176 46177 46178 46179 46180 46181 46182 46183 46184 46185 46186 46187 46188 46189 46190 46191 |
# File 'ext/ctp/ctp.cxx', line 46164
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ExchangeInstID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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
46134 46135 46136 46137 46138 46139 46140 46141 46142 46143 46144 46145 46146 46147 46148 46149 46150 46151 46152 46153 46154 46155 46156 46157 46158 46159 46160 46161 |
# File 'ext/ctp/ctp.cxx', line 46134
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ExchangeInstID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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;
}
|
#HedgeFlag(*args) ⇒ Object
46276 46277 46278 46279 46280 46281 46282 46283 46284 46285 46286 46287 46288 46289 46290 46291 46292 46293 46294 46295 46296 46297 |
# File 'ext/ctp/ctp.cxx', line 46276
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcHedgeFlagType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","HedgeFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#HedgeFlag=(*args) ⇒ Object
46247 46248 46249 46250 46251 46252 46253 46254 46255 46256 46257 46258 46259 46260 46261 46262 46263 46264 46265 46266 46267 46268 46269 46270 46271 46272 46273 |
# File 'ext/ctp/ctp.cxx', line 46247
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcHedgeFlagType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","HedgeFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcHedgeFlagType >(val2);
if (arg1) (arg1)->HedgeFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
45578 45579 45580 45581 45582 45583 45584 45585 45586 45587 45588 45589 45590 45591 45592 45593 45594 45595 45596 45597 45598 45599 45600 45601 45602 45603 45604 45605 |
# File 'ext/ctp/ctp.cxx', line 45578
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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
45548 45549 45550 45551 45552 45553 45554 45555 45556 45557 45558 45559 45560 45561 45562 45563 45564 45565 45566 45567 45568 45569 45570 45571 45572 45573 45574 45575 |
# File 'ext/ctp/ctp.cxx', line 45548
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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;
}
|
#InvestorID(*args) ⇒ Object
45518 45519 45520 45521 45522 45523 45524 45525 45526 45527 45528 45529 45530 45531 45532 45533 45534 45535 45536 45537 45538 45539 45540 45541 45542 45543 45544 45545 |
# File 'ext/ctp/ctp.cxx', line 45518
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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
45488 45489 45490 45491 45492 45493 45494 45495 45496 45497 45498 45499 45500 45501 45502 45503 45504 45505 45506 45507 45508 45509 45510 45511 45512 45513 45514 45515 |
# File 'ext/ctp/ctp.cxx', line 45488
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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;
}
|
#OffsetFlag(*args) ⇒ Object
46223 46224 46225 46226 46227 46228 46229 46230 46231 46232 46233 46234 46235 46236 46237 46238 46239 46240 46241 46242 46243 46244 |
# File 'ext/ctp/ctp.cxx', line 46223
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_OffsetFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcOffsetFlagType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OffsetFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcOffsetFlagType) ((arg1)->OffsetFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#OffsetFlag=(*args) ⇒ Object
46194 46195 46196 46197 46198 46199 46200 46201 46202 46203 46204 46205 46206 46207 46208 46209 46210 46211 46212 46213 46214 46215 46216 46217 46218 46219 46220 |
# File 'ext/ctp/ctp.cxx', line 46194
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_OffsetFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcOffsetFlagType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OffsetFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcOffsetFlagType","OffsetFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcOffsetFlagType >(val2);
if (arg1) (arg1)->OffsetFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OrderLocalID(*args) ⇒ Object
46722 46723 46724 46725 46726 46727 46728 46729 46730 46731 46732 46733 46734 46735 46736 46737 46738 46739 46740 46741 46742 46743 46744 46745 46746 46747 46748 46749 |
# File 'ext/ctp/ctp.cxx', line 46722
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderLocalID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->OrderLocalID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#OrderLocalID=(*args) ⇒ Object
46692 46693 46694 46695 46696 46697 46698 46699 46700 46701 46702 46703 46704 46705 46706 46707 46708 46709 46710 46711 46712 46713 46714 46715 46716 46717 46718 46719 |
# File 'ext/ctp/ctp.cxx', line 46692
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderLocalID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderLocalID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->OrderLocalID,arg2,13*sizeof(char));
else memset(arg1->OrderLocalID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#OrderRef(*args) ⇒ Object
45638 45639 45640 45641 45642 45643 45644 45645 45646 45647 45648 45649 45650 45651 45652 45653 45654 45655 45656 45657 45658 45659 45660 45661 45662 45663 45664 45665 |
# File 'ext/ctp/ctp.cxx', line 45638
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_OrderRef_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->OrderRef);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#OrderRef=(*args) ⇒ Object
45608 45609 45610 45611 45612 45613 45614 45615 45616 45617 45618 45619 45620 45621 45622 45623 45624 45625 45626 45627 45628 45629 45630 45631 45632 45633 45634 45635 |
# File 'ext/ctp/ctp.cxx', line 45608
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_OrderRef_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderRef", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderRef", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->OrderRef,arg2,13*sizeof(char));
else memset(arg1->OrderRef,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#OrderSysID(*args) ⇒ Object
45931 45932 45933 45934 45935 45936 45937 45938 45939 45940 45941 45942 45943 45944 45945 45946 45947 45948 45949 45950 45951 45952 45953 45954 45955 45956 45957 45958 |
# File 'ext/ctp/ctp.cxx', line 45931
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_OrderSysID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderSysID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->OrderSysID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#OrderSysID=(*args) ⇒ Object
45901 45902 45903 45904 45905 45906 45907 45908 45909 45910 45911 45912 45913 45914 45915 45916 45917 45918 45919 45920 45921 45922 45923 45924 45925 45926 45927 45928 |
# File 'ext/ctp/ctp.cxx', line 45901
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_OrderSysID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","OrderSysID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","OrderSysID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->OrderSysID,arg2,21*sizeof(char));
else memset(arg1->OrderSysID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ParticipantID(*args) ⇒ Object
45991 45992 45993 45994 45995 45996 45997 45998 45999 46000 46001 46002 46003 46004 46005 46006 46007 46008 46009 46010 46011 46012 46013 46014 46015 46016 46017 46018 |
# File 'ext/ctp/ctp.cxx', line 45991
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_ParticipantID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->ParticipantID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ParticipantID=(*args) ⇒ Object
45961 45962 45963 45964 45965 45966 45967 45968 45969 45970 45971 45972 45973 45974 45975 45976 45977 45978 45979 45980 45981 45982 45983 45984 45985 45986 45987 45988 |
# File 'ext/ctp/ctp.cxx', line 45961
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_ParticipantID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ParticipantID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ParticipantID,arg2,11*sizeof(char));
else memset(arg1->ParticipantID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#Price(*args) ⇒ Object
46329 46330 46331 46332 46333 46334 46335 46336 46337 46338 46339 46340 46341 46342 46343 46344 46345 46346 46347 46348 46349 46350 |
# File 'ext/ctp/ctp.cxx', line 46329
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_Price_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Price", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->Price);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Price=(*args) ⇒ Object
46300 46301 46302 46303 46304 46305 46306 46307 46308 46309 46310 46311 46312 46313 46314 46315 46316 46317 46318 46319 46320 46321 46322 46323 46324 46325 46326 |
# File 'ext/ctp/ctp.cxx', line 46300
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_Price_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcPriceType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Price", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","Price", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->Price = arg2;
return Qnil;
fail:
return Qnil;
}
|
#PriceSource(*args) ⇒ Object
46608 46609 46610 46611 46612 46613 46614 46615 46616 46617 46618 46619 46620 46621 46622 46623 46624 46625 46626 46627 46628 46629 |
# File 'ext/ctp/ctp.cxx', line 46608
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_PriceSource_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceSourceType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","PriceSource", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcPriceSourceType) ((arg1)->PriceSource);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#PriceSource=(*args) ⇒ Object
46579 46580 46581 46582 46583 46584 46585 46586 46587 46588 46589 46590 46591 46592 46593 46594 46595 46596 46597 46598 46599 46600 46601 46602 46603 46604 46605 |
# File 'ext/ctp/ctp.cxx', line 46579
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_PriceSource_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcPriceSourceType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","PriceSource", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceSourceType","PriceSource", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceSourceType >(val2);
if (arg1) (arg1)->PriceSource = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SequenceNo(*args) ⇒ Object
46901 46902 46903 46904 46905 46906 46907 46908 46909 46910 46911 46912 46913 46914 46915 46916 46917 46918 46919 46920 46921 46922 |
# File 'ext/ctp/ctp.cxx', line 46901
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_SequenceNo_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","SequenceNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcSequenceNoType) ((arg1)->SequenceNo);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SequenceNo=(*args) ⇒ Object
46872 46873 46874 46875 46876 46877 46878 46879 46880 46881 46882 46883 46884 46885 46886 46887 46888 46889 46890 46891 46892 46893 46894 46895 46896 46897 46898 |
# File 'ext/ctp/ctp.cxx', line 46872
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_SequenceNo_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcSequenceNoType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","SequenceNo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSequenceNoType","SequenceNo", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSequenceNoType >(val2);
if (arg1) (arg1)->SequenceNo = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SettlementID(*args) ⇒ Object
47014 47015 47016 47017 47018 47019 47020 47021 47022 47023 47024 47025 47026 47027 47028 47029 47030 47031 47032 47033 47034 47035 |
# File 'ext/ctp/ctp.cxx', line 47014
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_SettlementID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSettlementIDType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","SettlementID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SettlementID=(*args) ⇒ Object
46985 46986 46987 46988 46989 46990 46991 46992 46993 46994 46995 46996 46997 46998 46999 47000 47001 47002 47003 47004 47005 47006 47007 47008 47009 47010 47011 |
# File 'ext/ctp/ctp.cxx', line 46985
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_SettlementID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcSettlementIDType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","SettlementID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSettlementIDType >(val2);
if (arg1) (arg1)->SettlementID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TradeDate(*args) ⇒ Object
46436 46437 46438 46439 46440 46441 46442 46443 46444 46445 46446 46447 46448 46449 46450 46451 46452 46453 46454 46455 46456 46457 46458 46459 46460 46461 46462 46463 |
# File 'ext/ctp/ctp.cxx', line 46436
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradeDate_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->TradeDate);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradeDate=(*args) ⇒ Object
46406 46407 46408 46409 46410 46411 46412 46413 46414 46415 46416 46417 46418 46419 46420 46421 46422 46423 46424 46425 46426 46427 46428 46429 46430 46431 46432 46433 |
# File 'ext/ctp/ctp.cxx', line 46406
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradeDate_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeDate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeDate", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradeDate,arg2,9*sizeof(char));
else memset(arg1->TradeDate,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradeID(*args) ⇒ Object
45818 45819 45820 45821 45822 45823 45824 45825 45826 45827 45828 45829 45830 45831 45832 45833 45834 45835 45836 45837 45838 45839 45840 45841 45842 45843 45844 45845 |
# File 'ext/ctp/ctp.cxx', line 45818
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->TradeID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradeID=(*args) ⇒ Object
45788 45789 45790 45791 45792 45793 45794 45795 45796 45797 45798 45799 45800 45801 45802 45803 45804 45805 45806 45807 45808 45809 45810 45811 45812 45813 45814 45815 |
# File 'ext/ctp/ctp.cxx', line 45788
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TradeID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradeID,arg2,21*sizeof(char));
else memset(arg1->TradeID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TraderID(*args) ⇒ Object
46662 46663 46664 46665 46666 46667 46668 46669 46670 46671 46672 46673 46674 46675 46676 46677 46678 46679 46680 46681 46682 46683 46684 46685 46686 46687 46688 46689 |
# File 'ext/ctp/ctp.cxx', line 46662
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TraderID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->TraderID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TraderID=(*args) ⇒ Object
46632 46633 46634 46635 46636 46637 46638 46639 46640 46641 46642 46643 46644 46645 46646 46647 46648 46649 46650 46651 46652 46653 46654 46655 46656 46657 46658 46659 |
# File 'ext/ctp/ctp.cxx', line 46632
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TraderID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TraderID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TraderID,arg2,21*sizeof(char));
else memset(arg1->TraderID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradeSource(*args) ⇒ Object
47120 47121 47122 47123 47124 47125 47126 47127 47128 47129 47130 47131 47132 47133 47134 47135 47136 47137 47138 47139 47140 47141 |
# File 'ext/ctp/ctp.cxx', line 47120
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradeSource_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTradeSourceType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeSource", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcTradeSourceType) ((arg1)->TradeSource);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#TradeSource=(*args) ⇒ Object
47091 47092 47093 47094 47095 47096 47097 47098 47099 47100 47101 47102 47103 47104 47105 47106 47107 47108 47109 47110 47111 47112 47113 47114 47115 47116 47117 |
# File 'ext/ctp/ctp.cxx', line 47091
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradeSource_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcTradeSourceType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeSource", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeSourceType","TradeSource", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTradeSourceType >(val2);
if (arg1) (arg1)->TradeSource = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TradeTime(*args) ⇒ Object
46496 46497 46498 46499 46500 46501 46502 46503 46504 46505 46506 46507 46508 46509 46510 46511 46512 46513 46514 46515 46516 46517 46518 46519 46520 46521 46522 46523 |
# File 'ext/ctp/ctp.cxx', line 46496
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradeTime_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->TradeTime);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradeTime=(*args) ⇒ Object
46466 46467 46468 46469 46470 46471 46472 46473 46474 46475 46476 46477 46478 46479 46480 46481 46482 46483 46484 46485 46486 46487 46488 46489 46490 46491 46492 46493 |
# File 'ext/ctp/ctp.cxx', line 46466
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradeTime_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeTime", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradeTime", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradeTime,arg2,9*sizeof(char));
else memset(arg1->TradeTime,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TradeType(*args) ⇒ Object
46555 46556 46557 46558 46559 46560 46561 46562 46563 46564 46565 46566 46567 46568 46569 46570 46571 46572 46573 46574 46575 46576 |
# File 'ext/ctp/ctp.cxx', line 46555
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradeType_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTradeTypeType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcTradeTypeType) ((arg1)->TradeType);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#TradeType=(*args) ⇒ Object
46526 46527 46528 46529 46530 46531 46532 46533 46534 46535 46536 46537 46538 46539 46540 46541 46542 46543 46544 46545 46546 46547 46548 46549 46550 46551 46552 |
# File 'ext/ctp/ctp.cxx', line 46526
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradeType_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcTradeTypeType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradeType", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradeTypeType","TradeType", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTradeTypeType >(val2);
if (arg1) (arg1)->TradeType = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TradingDay(*args) ⇒ Object
46955 46956 46957 46958 46959 46960 46961 46962 46963 46964 46965 46966 46967 46968 46969 46970 46971 46972 46973 46974 46975 46976 46977 46978 46979 46980 46981 46982 |
# File 'ext/ctp/ctp.cxx', line 46955
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradingDay_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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
46925 46926 46927 46928 46929 46930 46931 46932 46933 46934 46935 46936 46937 46938 46939 46940 46941 46942 46943 46944 46945 46946 46947 46948 46949 46950 46951 46952 |
# File 'ext/ctp/ctp.cxx', line 46925
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradingDay_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(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;
}
|
#TradingRole(*args) ⇒ Object
46110 46111 46112 46113 46114 46115 46116 46117 46118 46119 46120 46121 46122 46123 46124 46125 46126 46127 46128 46129 46130 46131 |
# File 'ext/ctp/ctp.cxx', line 46110
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradingRole_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcTradingRoleType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradingRole", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcTradingRoleType) ((arg1)->TradingRole);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#TradingRole=(*args) ⇒ Object
46081 46082 46083 46084 46085 46086 46087 46088 46089 46090 46091 46092 46093 46094 46095 46096 46097 46098 46099 46100 46101 46102 46103 46104 46105 46106 46107 |
# File 'ext/ctp/ctp.cxx', line 46081
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_TradingRole_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcTradingRoleType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","TradingRole", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcTradingRoleType","TradingRole", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcTradingRoleType >(val2);
if (arg1) (arg1)->TradingRole = arg2;
return Qnil;
fail:
return Qnil;
}
|
#UserID(*args) ⇒ Object
45698 45699 45700 45701 45702 45703 45704 45705 45706 45707 45708 45709 45710 45711 45712 45713 45714 45715 45716 45717 45718 45719 45720 45721 45722 45723 45724 45725 |
# File 'ext/ctp/ctp.cxx', line 45698
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_UserID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (char *) ((arg1)->UserID);
{
size_t size = SWIG_strnlen(result, 16);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#UserID=(*args) ⇒ Object
45668 45669 45670 45671 45672 45673 45674 45675 45676 45677 45678 45679 45680 45681 45682 45683 45684 45685 45686 45687 45688 45689 45690 45691 45692 45693 45694 45695 |
# File 'ext/ctp/ctp.cxx', line 45668
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_UserID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[16] ;
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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","UserID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 16);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [16]","UserID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->UserID,arg2,16*sizeof(char));
else memset(arg1->UserID,0,16*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#Volume(*args) ⇒ Object
46382 46383 46384 46385 46386 46387 46388 46389 46390 46391 46392 46393 46394 46395 46396 46397 46398 46399 46400 46401 46402 46403 |
# File 'ext/ctp/ctp.cxx', line 46382
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_Volume_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcVolumeType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Volume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
result = (TThostFtdcVolumeType) ((arg1)->Volume);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#Volume=(*args) ⇒ Object
46353 46354 46355 46356 46357 46358 46359 46360 46361 46362 46363 46364 46365 46366 46367 46368 46369 46370 46371 46372 46373 46374 46375 46376 46377 46378 46379 |
# File 'ext/ctp/ctp.cxx', line 46353
SWIGINTERN VALUE
_wrap_CThostFtdcTradeField_Volume_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcTradeField *arg1 = (CThostFtdcTradeField *) 0 ;
TThostFtdcVolumeType 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_CThostFtdcTradeField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTradeField *","Volume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTradeField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcVolumeType >(val2);
if (arg1) (arg1)->Volume = arg2;
return Qnil;
fail:
return Qnil;
}
|