Class: Ctp::CThostFtdcQryExchangeCombActionField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcQryExchangeCombActionField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ClientID(*args) ⇒ Object
- #ClientID=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #ExchangeInstID(*args) ⇒ Object
- #ExchangeInstID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
- #TraderID(*args) ⇒ Object
- #TraderID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
97256 97257 97258 97259 97260 97261 97262 97263 97264 97265 97266 97267 97268 97269 |
# File 'ext/ctp/ctp.cxx', line 97256
SWIGINTERN VALUE
_wrap_new_CThostFtdcQryExchangeCombActionField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcQryExchangeCombActionField";
CThostFtdcQryExchangeCombActionField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcQryExchangeCombActionField *)new CThostFtdcQryExchangeCombActionField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#ClientID(*args) ⇒ Object
97031 97032 97033 97034 97035 97036 97037 97038 97039 97040 97041 97042 97043 97044 97045 97046 97047 97048 97049 97050 97051 97052 97053 97054 97055 97056 97057 97058 |
# File 'ext/ctp/ctp.cxx', line 97031
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeCombActionField_ClientID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *) 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_CThostFtdcQryExchangeCombActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeCombActionField *","ClientID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeCombActionField * >(argp1);
result = (char *) ((arg1)->ClientID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ClientID=(*args) ⇒ Object
97001 97002 97003 97004 97005 97006 97007 97008 97009 97010 97011 97012 97013 97014 97015 97016 97017 97018 97019 97020 97021 97022 97023 97024 97025 97026 97027 97028 |
# File 'ext/ctp/ctp.cxx', line 97001
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeCombActionField_ClientID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *) 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_CThostFtdcQryExchangeCombActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeCombActionField *","ClientID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeCombActionField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ClientID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ClientID,arg2,11*sizeof(char));
else memset(arg1->ClientID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ExchangeID(*args) ⇒ Object
97151 97152 97153 97154 97155 97156 97157 97158 97159 97160 97161 97162 97163 97164 97165 97166 97167 97168 97169 97170 97171 97172 97173 97174 97175 97176 97177 97178 |
# File 'ext/ctp/ctp.cxx', line 97151
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeCombActionField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *) 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_CThostFtdcQryExchangeCombActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeCombActionField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeCombActionField * >(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
97121 97122 97123 97124 97125 97126 97127 97128 97129 97130 97131 97132 97133 97134 97135 97136 97137 97138 97139 97140 97141 97142 97143 97144 97145 97146 97147 97148 |
# File 'ext/ctp/ctp.cxx', line 97121
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeCombActionField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *) 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_CThostFtdcQryExchangeCombActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeCombActionField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeCombActionField * >(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;
}
|
#ExchangeInstID(*args) ⇒ Object
97091 97092 97093 97094 97095 97096 97097 97098 97099 97100 97101 97102 97103 97104 97105 97106 97107 97108 97109 97110 97111 97112 97113 97114 97115 97116 97117 97118 |
# File 'ext/ctp/ctp.cxx', line 97091
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeCombActionField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *) 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_CThostFtdcQryExchangeCombActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeCombActionField *","ExchangeInstID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeCombActionField * >(argp1);
result = (char *) ((arg1)->ExchangeInstID);
{
size_t size = SWIG_strnlen(result, 31);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ExchangeInstID=(*args) ⇒ Object
97061 97062 97063 97064 97065 97066 97067 97068 97069 97070 97071 97072 97073 97074 97075 97076 97077 97078 97079 97080 97081 97082 97083 97084 97085 97086 97087 97088 |
# File 'ext/ctp/ctp.cxx', line 97061
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeCombActionField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[31] ;
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_CThostFtdcQryExchangeCombActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeCombActionField *","ExchangeInstID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeCombActionField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 31);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ExchangeInstID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ExchangeInstID,arg2,31*sizeof(char));
else memset(arg1->ExchangeInstID,0,31*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ParticipantID(*args) ⇒ Object
96971 96972 96973 96974 96975 96976 96977 96978 96979 96980 96981 96982 96983 96984 96985 96986 96987 96988 96989 96990 96991 96992 96993 96994 96995 96996 96997 96998 |
# File 'ext/ctp/ctp.cxx', line 96971
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeCombActionField_ParticipantID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *) 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_CThostFtdcQryExchangeCombActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeCombActionField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeCombActionField * >(argp1);
result = (char *) ((arg1)->ParticipantID);
{
size_t size = SWIG_strnlen(result, 11);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ParticipantID=(*args) ⇒ Object
96941 96942 96943 96944 96945 96946 96947 96948 96949 96950 96951 96952 96953 96954 96955 96956 96957 96958 96959 96960 96961 96962 96963 96964 96965 96966 96967 96968 |
# File 'ext/ctp/ctp.cxx', line 96941
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeCombActionField_ParticipantID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *) 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_CThostFtdcQryExchangeCombActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeCombActionField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeCombActionField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 11);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","ParticipantID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ParticipantID,arg2,11*sizeof(char));
else memset(arg1->ParticipantID,0,11*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#TraderID(*args) ⇒ Object
97211 97212 97213 97214 97215 97216 97217 97218 97219 97220 97221 97222 97223 97224 97225 97226 97227 97228 97229 97230 97231 97232 97233 97234 97235 97236 97237 97238 |
# File 'ext/ctp/ctp.cxx', line 97211
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeCombActionField_TraderID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *) 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_CThostFtdcQryExchangeCombActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeCombActionField *","TraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeCombActionField * >(argp1);
result = (char *) ((arg1)->TraderID);
{
size_t size = SWIG_strnlen(result, 21);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TraderID=(*args) ⇒ Object
97181 97182 97183 97184 97185 97186 97187 97188 97189 97190 97191 97192 97193 97194 97195 97196 97197 97198 97199 97200 97201 97202 97203 97204 97205 97206 97207 97208 |
# File 'ext/ctp/ctp.cxx', line 97181
SWIGINTERN VALUE
_wrap_CThostFtdcQryExchangeCombActionField_TraderID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcQryExchangeCombActionField *arg1 = (CThostFtdcQryExchangeCombActionField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[21] ;
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_CThostFtdcQryExchangeCombActionField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeCombActionField *","TraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcQryExchangeCombActionField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 21);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [21]","TraderID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TraderID,arg2,21*sizeof(char));
else memset(arg1->TraderID,0,21*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|