Class: Ctp::CThostFtdcQryCFMMCBrokerKeyField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryCFMMCBrokerKeyField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
128966 128967 128968 128969 128970 128971 128972 128973 128974 128975 128976 128977 128978 128979 |
# File 'ext/ctp/ctp.cxx', line 128966
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryCFMMCBrokerKeyField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryCFMMCBrokerKeyField";
CThostFtdcQryCFMMCBrokerKeyField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryCFMMCBrokerKeyField *)new CThostFtdcQryCFMMCBrokerKeyField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
128921 128922 128923 128924 128925 128926 128927 128928 128929 128930 128931 128932 128933 128934 128935 128936 128937 128938 128939 128940 128941 128942 128943 128944 128945 128946 128947 128948 |
# File 'ext/ctp/ctp.cxx', line 128921
SWIGINTERN VALUE
_wrap_CThostFtdcQryCFMMCBrokerKeyField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryCFMMCBrokerKeyField *arg1 = (CThostFtdcQryCFMMCBrokerKeyField *) 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_CThostFtdcQryCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCFMMCBrokerKeyField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryCFMMCBrokerKeyField * >(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
128891 128892 128893 128894 128895 128896 128897 128898 128899 128900 128901 128902 128903 128904 128905 128906 128907 128908 128909 128910 128911 128912 128913 128914 128915 128916 128917 128918 |
# File 'ext/ctp/ctp.cxx', line 128891
SWIGINTERN VALUE
_wrap_CThostFtdcQryCFMMCBrokerKeyField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryCFMMCBrokerKeyField *arg1 = (CThostFtdcQryCFMMCBrokerKeyField *) 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_CThostFtdcQryCFMMCBrokerKeyField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryCFMMCBrokerKeyField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryCFMMCBrokerKeyField * >(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;
}
|