Class: Ctp::CThostFtdcExchangeOrderInsertErrorField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcExchangeOrderInsertErrorField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ErrorID(*args) ⇒ Object
- #ErrorID=(*args) ⇒ Object
- #ErrorMsg(*args) ⇒ Object
- #ErrorMsg=(*args) ⇒ Object
- #ExchangeID(*args) ⇒ Object
- #ExchangeID=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstallID(*args) ⇒ Object
- #InstallID=(*args) ⇒ Object
- #OrderLocalID(*args) ⇒ Object
- #OrderLocalID=(*args) ⇒ Object
- #ParticipantID(*args) ⇒ Object
- #ParticipantID=(*args) ⇒ Object
- #TraderID(*args) ⇒ Object
- #TraderID=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
40340 40341 40342 40343 40344 40345 40346 40347 40348 40349 40350 40351 40352 40353 |
# File 'ext/ctp/ctp.cxx', line 40340
SWIGINTERN VALUE
_wrap_new_CThostFtdcExchangeOrderInsertErrorField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcExchangeOrderInsertErrorField";
CThostFtdcExchangeOrderInsertErrorField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcExchangeOrderInsertErrorField *)new CThostFtdcExchangeOrderInsertErrorField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#ErrorID(*args) ⇒ Object
40241 40242 40243 40244 40245 40246 40247 40248 40249 40250 40251 40252 40253 40254 40255 40256 40257 40258 40259 40260 40261 40262 |
# File 'ext/ctp/ctp.cxx', line 40241
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_ErrorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcErrorIDType result;
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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","ErrorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(argp1);
result = (TThostFtdcErrorIDType) ((arg1)->ErrorID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ErrorID=(*args) ⇒ Object
40212 40213 40214 40215 40216 40217 40218 40219 40220 40221 40222 40223 40224 40225 40226 40227 40228 40229 40230 40231 40232 40233 40234 40235 40236 40237 40238 |
# File 'ext/ctp/ctp.cxx', line 40212
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_ErrorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 0 ;
TThostFtdcErrorIDType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","ErrorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcErrorIDType","ErrorID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcErrorIDType >(val2);
if (arg1) (arg1)->ErrorID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ErrorMsg(*args) ⇒ Object
40295 40296 40297 40298 40299 40300 40301 40302 40303 40304 40305 40306 40307 40308 40309 40310 40311 40312 40313 40314 40315 40316 40317 40318 40319 40320 40321 40322 |
# File 'ext/ctp/ctp.cxx', line 40295
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_ErrorMsg_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","ErrorMsg", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(argp1);
result = (char *) ((arg1)->ErrorMsg);
{
size_t size = SWIG_strnlen(result, 81);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#ErrorMsg=(*args) ⇒ Object
40265 40266 40267 40268 40269 40270 40271 40272 40273 40274 40275 40276 40277 40278 40279 40280 40281 40282 40283 40284 40285 40286 40287 40288 40289 40290 40291 40292 |
# File 'ext/ctp/ctp.cxx', line 40265
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_ErrorMsg_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[81] ;
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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","ErrorMsg", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 81);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [81]","ErrorMsg", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->ErrorMsg,arg2,81*sizeof(char));
else memset(arg1->ErrorMsg,0,81*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ExchangeID(*args) ⇒ Object
39949 39950 39951 39952 39953 39954 39955 39956 39957 39958 39959 39960 39961 39962 39963 39964 39965 39966 39967 39968 39969 39970 39971 39972 39973 39974 39975 39976 |
# File 'ext/ctp/ctp.cxx', line 39949
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(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
39919 39920 39921 39922 39923 39924 39925 39926 39927 39928 39929 39930 39931 39932 39933 39934 39935 39936 39937 39938 39939 39940 39941 39942 39943 39944 39945 39946 |
# File 'ext/ctp/ctp.cxx', line 39919
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","ExchangeID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(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;
}
|
#InstallID(*args) ⇒ Object
40128 40129 40130 40131 40132 40133 40134 40135 40136 40137 40138 40139 40140 40141 40142 40143 40144 40145 40146 40147 40148 40149 |
# File 'ext/ctp/ctp.cxx', line 40128
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_InstallID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcInstallIDType result;
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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","InstallID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(argp1);
result = (TThostFtdcInstallIDType) ((arg1)->InstallID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#InstallID=(*args) ⇒ Object
40099 40100 40101 40102 40103 40104 40105 40106 40107 40108 40109 40110 40111 40112 40113 40114 40115 40116 40117 40118 40119 40120 40121 40122 40123 40124 40125 |
# File 'ext/ctp/ctp.cxx', line 40099
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_InstallID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 0 ;
TThostFtdcInstallIDType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","InstallID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInstallIDType","InstallID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcInstallIDType >(val2);
if (arg1) (arg1)->InstallID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OrderLocalID(*args) ⇒ Object
40182 40183 40184 40185 40186 40187 40188 40189 40190 40191 40192 40193 40194 40195 40196 40197 40198 40199 40200 40201 40202 40203 40204 40205 40206 40207 40208 40209 |
# File 'ext/ctp/ctp.cxx', line 40182
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_OrderLocalID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","OrderLocalID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(argp1);
result = (char *) ((arg1)->OrderLocalID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#OrderLocalID=(*args) ⇒ Object
40152 40153 40154 40155 40156 40157 40158 40159 40160 40161 40162 40163 40164 40165 40166 40167 40168 40169 40170 40171 40172 40173 40174 40175 40176 40177 40178 40179 |
# File 'ext/ctp/ctp.cxx', line 40152
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_OrderLocalID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","OrderLocalID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","OrderLocalID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->OrderLocalID,arg2,13*sizeof(char));
else memset(arg1->OrderLocalID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#ParticipantID(*args) ⇒ Object
40009 40010 40011 40012 40013 40014 40015 40016 40017 40018 40019 40020 40021 40022 40023 40024 40025 40026 40027 40028 40029 40030 40031 40032 40033 40034 40035 40036 |
# File 'ext/ctp/ctp.cxx', line 40009
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_ParticipantID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(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
39979 39980 39981 39982 39983 39984 39985 39986 39987 39988 39989 39990 39991 39992 39993 39994 39995 39996 39997 39998 39999 40000 40001 40002 40003 40004 40005 40006 |
# File 'ext/ctp/ctp.cxx', line 39979
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_ParticipantID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","ParticipantID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(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
40069 40070 40071 40072 40073 40074 40075 40076 40077 40078 40079 40080 40081 40082 40083 40084 40085 40086 40087 40088 40089 40090 40091 40092 40093 40094 40095 40096 |
# File 'ext/ctp/ctp.cxx', line 40069
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_TraderID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","TraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(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
40039 40040 40041 40042 40043 40044 40045 40046 40047 40048 40049 40050 40051 40052 40053 40054 40055 40056 40057 40058 40059 40060 40061 40062 40063 40064 40065 40066 |
# File 'ext/ctp/ctp.cxx', line 40039
SWIGINTERN VALUE
_wrap_CThostFtdcExchangeOrderInsertErrorField_TraderID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcExchangeOrderInsertErrorField *arg1 = (CThostFtdcExchangeOrderInsertErrorField *) 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_CThostFtdcExchangeOrderInsertErrorField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcExchangeOrderInsertErrorField *","TraderID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcExchangeOrderInsertErrorField * >(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;
}
|