Class: Ctp::CThostFtdcQueryBrokerDepositField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQueryBrokerDepositField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
Constructor Details
#initialize(*args) ⇒ Object
128111 128112 128113 128114 128115 128116 128117 128118 128119 128120 128121 128122 128123 128124 |
# File 'ext/ctp/ctp.cxx', line 128111 SWIGINTERN VALUE _wrap_new_CThostFtdcQueryBrokerDepositField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcQueryBrokerDepositField"; CThostFtdcQueryBrokerDepositField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcQueryBrokerDepositField *)new CThostFtdcQueryBrokerDepositField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#BrokerID(*args) ⇒ Object
128006 128007 128008 128009 128010 128011 128012 128013 128014 128015 128016 128017 128018 128019 128020 128021 128022 128023 128024 128025 128026 128027 128028 128029 128030 128031 128032 128033 |
# File 'ext/ctp/ctp.cxx', line 128006 SWIGINTERN VALUE _wrap_CThostFtdcQueryBrokerDepositField_BrokerID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryBrokerDepositField *arg1 = (CThostFtdcQueryBrokerDepositField *) 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_CThostFtdcQueryBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryBrokerDepositField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryBrokerDepositField * >(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
127976 127977 127978 127979 127980 127981 127982 127983 127984 127985 127986 127987 127988 127989 127990 127991 127992 127993 127994 127995 127996 127997 127998 127999 128000 128001 128002 128003 |
# File 'ext/ctp/ctp.cxx', line 127976 SWIGINTERN VALUE _wrap_CThostFtdcQueryBrokerDepositField_BrokerID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryBrokerDepositField *arg1 = (CThostFtdcQueryBrokerDepositField *) 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_CThostFtdcQueryBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryBrokerDepositField *","BrokerID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryBrokerDepositField * >(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; } |
#ExchangeID(*args) ⇒ Object
128066 128067 128068 128069 128070 128071 128072 128073 128074 128075 128076 128077 128078 128079 128080 128081 128082 128083 128084 128085 128086 128087 128088 128089 128090 128091 128092 128093 |
# File 'ext/ctp/ctp.cxx', line 128066 SWIGINTERN VALUE _wrap_CThostFtdcQueryBrokerDepositField_ExchangeID_get(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryBrokerDepositField *arg1 = (CThostFtdcQueryBrokerDepositField *) 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_CThostFtdcQueryBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryBrokerDepositField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryBrokerDepositField * >(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
128036 128037 128038 128039 128040 128041 128042 128043 128044 128045 128046 128047 128048 128049 128050 128051 128052 128053 128054 128055 128056 128057 128058 128059 128060 128061 128062 128063 |
# File 'ext/ctp/ctp.cxx', line 128036 SWIGINTERN VALUE _wrap_CThostFtdcQueryBrokerDepositField_ExchangeID_set(int argc, VALUE *argv, VALUE self) { CThostFtdcQueryBrokerDepositField *arg1 = (CThostFtdcQueryBrokerDepositField *) 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_CThostFtdcQueryBrokerDepositField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQueryBrokerDepositField *","ExchangeID", 1, self )); } arg1 = reinterpret_cast< CThostFtdcQueryBrokerDepositField * >(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; } |