Class: Ctp::CThostFtdcQueryCFMMCTradingAccountTokenField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQueryCFMMCTradingAccountTokenField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
134194 134195 134196 134197 134198 134199 134200 134201 134202 134203 134204 134205 134206 134207 |
# File 'ext/ctp/ctp.cxx', line 134194 SWIGINTERN VALUE _wrap_new_CThostFtdcQueryCFMMCTradingAccountTokenField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQueryCFMMCTradingAccountTokenField"; CThostFtdcQueryCFMMCTradingAccountTokenField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQueryCFMMCTradingAccountTokenField *)new CThostFtdcQueryCFMMCTradingAccountTokenField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
134089 134090 134091 134092 134093 134094 134095 134096 134097 134098 134099 134100 134101 134102 134103 134104 134105 134106 134107 134108 134109 134110 134111 134112 134113 134114 134115 134116 |
# File 'ext/ctp/ctp.cxx', line 134089 SWIGINTERN VALUE _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryCFMMCTradingAccountTokenField *arg1 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 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_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(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
134059 134060 134061 134062 134063 134064 134065 134066 134067 134068 134069 134070 134071 134072 134073 134074 134075 134076 134077 134078 134079 134080 134081 134082 134083 134084 134085 134086 |
# File 'ext/ctp/ctp.cxx', line 134059 SWIGINTERN VALUE _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryCFMMCTradingAccountTokenField *arg1 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 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_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(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; } |
#InvestorID(*args) ⇒ Object
134149 134150 134151 134152 134153 134154 134155 134156 134157 134158 134159 134160 134161 134162 134163 134164 134165 134166 134167 134168 134169 134170 134171 134172 134173 134174 134175 134176 |
# File 'ext/ctp/ctp.cxx', line 134149 SWIGINTERN VALUE _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_InvestorID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryCFMMCTradingAccountTokenField *arg1 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 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_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(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
134119 134120 134121 134122 134123 134124 134125 134126 134127 134128 134129 134130 134131 134132 134133 134134 134135 134136 134137 134138 134139 134140 134141 134142 134143 134144 134145 134146 |
# File 'ext/ctp/ctp.cxx', line 134119 SWIGINTERN VALUE _wrap_CThostFtdcQueryCFMMCTradingAccountTokenField_InvestorID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryCFMMCTradingAccountTokenField *arg1 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 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_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","InvestorID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(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; } |