Class: Ctp::CThostFtdcQryInvestorGroupField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryInvestorGroupField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
59141 59142 59143 59144 59145 59146 59147 59148 59149 59150 59151 59152 59153 59154 |
# File 'ext/ctp/ctp.cxx', line 59141
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryInvestorGroupField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryInvestorGroupField";
CThostFtdcQryInvestorGroupField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryInvestorGroupField *)new CThostFtdcQryInvestorGroupField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
59096 59097 59098 59099 59100 59101 59102 59103 59104 59105 59106 59107 59108 59109 59110 59111 59112 59113 59114 59115 59116 59117 59118 59119 59120 59121 59122 59123 |
# File 'ext/ctp/ctp.cxx', line 59096
SWIGINTERN VALUE
_wrap_CThostFtdcQryInvestorGroupField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryInvestorGroupField *arg1 = (CThostFtdcQryInvestorGroupField *) 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_CThostFtdcQryInvestorGroupField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorGroupField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryInvestorGroupField * >(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
59066 59067 59068 59069 59070 59071 59072 59073 59074 59075 59076 59077 59078 59079 59080 59081 59082 59083 59084 59085 59086 59087 59088 59089 59090 59091 59092 59093 |
# File 'ext/ctp/ctp.cxx', line 59066
SWIGINTERN VALUE
_wrap_CThostFtdcQryInvestorGroupField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryInvestorGroupField *arg1 = (CThostFtdcQryInvestorGroupField *) 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_CThostFtdcQryInvestorGroupField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorGroupField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryInvestorGroupField * >(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;
}
|