Class: Ctp::CThostFtdcBrokerUserRightAssignField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcBrokerUserRightAssignField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #DRIdentityID(*args) ⇒ Object
- #DRIdentityID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #Tradeable(*args) ⇒ Object
- #Tradeable=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
190155 190156 190157 190158 190159 190160 190161 190162 190163 190164 190165 190166 190167 190168 |
# File 'ext/ctp/ctp.cxx', line 190155
SWIGINTERN VALUE
_wrap_new_CThostFtdcBrokerUserRightAssignField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcBrokerUserRightAssignField";
CThostFtdcBrokerUserRightAssignField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcBrokerUserRightAssignField *)new CThostFtdcBrokerUserRightAssignField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
190004 190005 190006 190007 190008 190009 190010 190011 190012 190013 190014 190015 190016 190017 190018 190019 190020 190021 190022 190023 190024 190025 190026 190027 190028 190029 190030 190031 |
# File 'ext/ctp/ctp.cxx', line 190004
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserRightAssignField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(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
189974 189975 189976 189977 189978 189979 189980 189981 189982 189983 189984 189985 189986 189987 189988 189989 189990 189991 189992 189993 189994 189995 189996 189997 189998 189999 190000 190001 |
# File 'ext/ctp/ctp.cxx', line 189974
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserRightAssignField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(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;
}
|
#DRIdentityID(*args) ⇒ Object
190063 190064 190065 190066 190067 190068 190069 190070 190071 190072 190073 190074 190075 190076 190077 190078 190079 190080 190081 190082 190083 190084 |
# File 'ext/ctp/ctp.cxx', line 190063
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserRightAssignField_DRIdentityID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcDRIdentityIDType 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","DRIdentityID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(argp1);
result = (TThostFtdcDRIdentityIDType) ((arg1)->DRIdentityID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#DRIdentityID=(*args) ⇒ Object
190034 190035 190036 190037 190038 190039 190040 190041 190042 190043 190044 190045 190046 190047 190048 190049 190050 190051 190052 190053 190054 190055 190056 190057 190058 190059 190060 |
# File 'ext/ctp/ctp.cxx', line 190034
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserRightAssignField_DRIdentityID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 0 ;
TThostFtdcDRIdentityIDType 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","DRIdentityID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcDRIdentityIDType","DRIdentityID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcDRIdentityIDType >(val2);
if (arg1) (arg1)->DRIdentityID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Tradeable(*args) ⇒ Object
190116 190117 190118 190119 190120 190121 190122 190123 190124 190125 190126 190127 190128 190129 190130 190131 190132 190133 190134 190135 190136 190137 |
# File 'ext/ctp/ctp.cxx', line 190116
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserRightAssignField_Tradeable_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","Tradeable", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(argp1);
result = (TThostFtdcBoolType) ((arg1)->Tradeable);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#Tradeable=(*args) ⇒ Object
190087 190088 190089 190090 190091 190092 190093 190094 190095 190096 190097 190098 190099 190100 190101 190102 190103 190104 190105 190106 190107 190108 190109 190110 190111 190112 190113 |
# File 'ext/ctp/ctp.cxx', line 190087
SWIGINTERN VALUE
_wrap_CThostFtdcBrokerUserRightAssignField_Tradeable_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcBrokerUserRightAssignField *arg1 = (CThostFtdcBrokerUserRightAssignField *) 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_CThostFtdcBrokerUserRightAssignField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcBrokerUserRightAssignField *","Tradeable", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcBrokerUserRightAssignField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcBoolType","Tradeable", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcBoolType >(val2);
if (arg1) (arg1)->Tradeable = arg2;
return Qnil;
fail:
return Qnil;
}
|